]> git.karo-electronics.de Git - linux-beck.git/commit
drm: Add drm_framebuffer_plane_{width,height}()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 18 Nov 2016 19:53:05 +0000 (21:53 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 15 Dec 2016 12:55:33 +0000 (14:55 +0200)
commit8f8f6a6c3cbe14406780a90e89d7d8742493913c
tree21b6e712c5e20593e460d09e47ed80a8fe55a44b
parent801c8fe8319582e424f44d07e8e511b1bf41cb35
drm: Add drm_framebuffer_plane_{width,height}()

Add variants of drm_format_plane_{width,height}() that take an entire fb
object instead of just the format. These should be more efficent as they
can just look up the format info from the fb->format pointer rather than
having to look it up (using a linear search based on the format).

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1479498793-31021-30-git-send-email-ville.syrjala@linux.intel.com
drivers/gpu/drm/drm_framebuffer.c
include/drm/drm_framebuffer.h