]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Share the code to compute color plane dimesions
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 21 Mar 2017 18:12:14 +0000 (20:12 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 22 Mar 2017 17:37:17 +0000 (19:37 +0200)
commit766b6a83c8350c2a6a6e5a3cd73c1ac722495d90
tree4f27e5e04429a36fe56f27f51e4d4a196c3b7b00
parent300041bcf8f6254df55090dd15de88648f6dabbc
drm: Share the code to compute color plane dimesions

framebuffer_check() has some hand rolled code to compute the color plane
dimensions based on the subsampled information. Let's share the code
between framebuffer_check() and drm_framebuffer_plane_{width,height}().

Cc: Ben Widawsky <ben@bwidawsk.net>
Cc: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170321181218.10042-2-ville.syrjala@linux.intel.com
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
drivers/gpu/drm/drm_framebuffer.c