drm: Add drm_format_plane_cpp() utility function
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 5 Apr 2012 18:35:16 +0000 (21:35 +0300)
committerDave Airlie <airlied@redhat.com>
Fri, 20 Apr 2012 11:37:32 +0000 (12:37 +0100)
commit5a86bd552407bd6b3e0df4e88636797484d06430
tree1d8f6746b0381b599cb7e5c1afb0490a6a0d009f
parent141670e9b4356b59b5b39a99e10ac0118d12b16d
drm: Add drm_format_plane_cpp() utility function

This function returns the bytes per pixel value based on the pixel
format and plane index.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc.c
include/drm/drm_crtc.h