[Intel-gfx] [PATCH 2/2] drm: Add AYUV format support in get_plane_cpp
Vandita Kulkarni
vandita.kulkarni at intel.com
Fri Nov 6 06:04:47 PST 2015
From: vandita kulkarni <vandita.kulkarni at intel.com>
This patch adds the missing DRM_FORMAT_AYUV
case in get_plane_cpp function.
AYUV has 4 bytes per pixel composition, that
is 8 bit samples for each component with 8 bit
alpha blend.
Signed-off-by: vandita kulkarni <vandita.kulkarni at intel.com>
---
drivers/gpu/drm/drm_crtc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index 720a153..1c26963 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -5578,6 +5578,8 @@ int drm_format_plane_cpp(uint32_t format, int plane)
case DRM_FORMAT_YUV444:
case DRM_FORMAT_YVU444:
return 1;
+ case DRM_FORMAT_AYUV:
+ return 4;
default:
drm_fb_get_bpp_depth(format, &depth, &bpp);
return bpp >> 3;
--
1.7.9.5
More information about the Intel-gfx
mailing list