Fill out framebuffer metadata
void drm_helper_mode_fill_fb_struct(struct drm_framebuffer * fb, struct drm_mode_fb_cmd2 * mode_cmd);
fb
drm_framebuffer object to fill out
mode_cmd
metadata from the userspace fb creation request
This helper can be used in a drivers fb_create callback to pre-fill the fb's metadata fields.
Jesse Barnes <[email protected]>
Intel Corporation,
Initial version
Laurent Pinchart <[email protected]>
Ideas on board SPRL,
Driver internals
Daniel Vetter <[email protected]>
Intel Corporation,
Contributions all over the place