diff mbox

[2/2] drm: Add AYUV format support in get_plane_cpp

Message ID 1446818687-27050-3-git-send-email-vandita.kulkarni@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Kulkarni, Vandita Nov. 6, 2015, 2:04 p.m. UTC
From: vandita kulkarni <vandita.kulkarni@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@intel.com>
---
 drivers/gpu/drm/drm_crtc.c |    2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

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;