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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: vandita kulkarni <vandita.kulkarni@xxxxxxxxx>

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@xxxxxxxxx>
---
 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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux