rect_size
frames_size += struct_size((struct appletbdrm_frame *)0, buf, rect_size(&damage));
u32 buf_size = rect_size(&damage);