VIGS: Support YUV420 planar format 49/26349/1
authorStanislav Vorobiov <s.vorobiov@samsung.com>
Fri, 4 Jul 2014 13:31:29 +0000 (17:31 +0400)
committerStanislav Vorobiov <s.vorobiov@samsung.com>
Tue, 19 Aug 2014 12:17:30 +0000 (16:17 +0400)
Change-Id: If3e687d6e8a53fe0ab551475c90851b4e60ebf79
Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com>
drivers/gpu/drm/vigs/vigs_plane.c
drivers/gpu/drm/vigs/vigs_protocol.h

index c95c2226694fda2ef2ab4858a54f83b14aabbf7a..9c6b249f9ba4b01d1edb01cce9b3ff147e961d4f 100644 (file)
@@ -11,7 +11,8 @@ static const uint32_t formats[] =
     DRM_FORMAT_ARGB8888,
     DRM_FORMAT_NV21,
     fourcc_code('N', 'V', '4', '2'),
-    DRM_FORMAT_NV61
+    DRM_FORMAT_NV61,
+    DRM_FORMAT_YUV420
 };
 
 static int vigs_plane_update(struct drm_plane *plane,
@@ -74,6 +75,9 @@ static int vigs_plane_update(struct drm_plane *plane,
     case DRM_FORMAT_NV61:
         format = vigsp_plane_nv61;
         break;
+    case DRM_FORMAT_YUV420:
+        format = vigsp_plane_yuv420;
+        break;
     default:
         BUG();
         format = vigsp_plane_bgrx8888;
index cf535ede244722c76c345195dc7820952d2468a3..0ed02ccec62a570fd6355b5e043221e196b321b8 100644 (file)
@@ -8,7 +8,7 @@
 /*
  * Bump this whenever protocol changes.
  */
-#define VIGS_PROTOCOL_VERSION 18
+#define VIGS_PROTOCOL_VERSION 19
 
 #define VIGS_MAX_PLANES 2
 
@@ -70,7 +70,8 @@ typedef enum
     vigsp_plane_bgra8888 = 0x1,
     vigsp_plane_nv21 = 0x2,
     vigsp_plane_nv42 = 0x3,
-    vigsp_plane_nv61 = 0x4
+    vigsp_plane_nv61 = 0x4,
+    vigsp_plane_yuv420 = 0x5
 } vigsp_plane_format;
 
 #pragma pack(1)