接前一篇文章:DRM全解析 —— framebuffer详解(1)
本文继续对DRM中framebuffer的核心结构struct drm_framebuffer的成员进行释义。
3. drm_framebuffer结构释义
(8)unsigned int offsets[DRM_FORMAT_MAX_PLANES]
/**
* @offsets: Offset from buffer start to the actual pixel data in bytes,
* per buffer. For userspace created object this is copied from
* drm_mode_fb_cmd2.
*
* Note that this is a linear offset and does not take into account
* tiling or buffer layout per @modifier. It is meant to be used when
* the actual pixel data for this framebuffer plane starts at an offset,
* e.g. when multiple planes are allocated within th