drm: Add mode_config .get_format_info() hook
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 21 Mar 2017 18:12:16 +0000 (20:12 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 22 Mar 2017 17:45:00 +0000 (19:45 +0200)
commit6a0f9ebfc5e753bb948c13353615324462d73795
tree1ccb2551fc4bd3293ce63a995c2f3301ee4690a9
parent33f673aa55e96ee37bb85200a24e4da12ba4d3f2
drm: Add mode_config .get_format_info() hook

Allow drivers to return a custom drm_format_info structure for special
fb layouts. We'll use this for the compression control surface in i915.

v2: Fix drm_get_format_info() kernel doc (Laurent)
    Don't pass 'dev' to the new hook (Laurent)
v3: s/compresssion/compression/ (Ben)

Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Ben Widawsky <ben@bwidawsk.net>
Cc: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Link: http://patchwork.freedesktop.org/patch/msgid/20170321181218.10042-4-ville.syrjala@linux.intel.com
drivers/gpu/drm/drm_fb_cma_helper.c
drivers/gpu/drm/drm_fourcc.c
drivers/gpu/drm/drm_framebuffer.c
drivers/gpu/drm/drm_modeset_helper.c
include/drm/drm_fourcc.h
include/drm/drm_mode_config.h