mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
drm: Store a pointer to drm_format_info under drm_framebuffer
To avoid having to look up the format information struct every time, let's just store a pointer to it under drm_framebuffer. v2: Don't populate the fb->format pointer in drm_framebuffer_init(). instead we'll treat a NULL format as an error later Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v1) Link: http://patchwork.freedesktop.org/patch/msgid/1479498793-31021-20-git-send-email-ville.syrjala@linux.intel.com Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
95bce76015
commit
e14c23c647
2 changed files with 5 additions and 0 deletions
|
@ -121,6 +121,10 @@ struct drm_framebuffer {
|
|||
* @base: base modeset object structure, contains the reference count.
|
||||
*/
|
||||
struct drm_mode_object base;
|
||||
/**
|
||||
* @format: framebuffer format information
|
||||
*/
|
||||
const struct drm_format_info *format;
|
||||
/**
|
||||
* @funcs: framebuffer vfunc table
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue