From: Stanislav Vorobiov Date: Fri, 4 Jul 2014 13:31:29 +0000 (+0400) Subject: VIGS: Support YUV420 planar format X-Git-Tag: submit/tizen_common/20140905.094502~5^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=96f04f582a6f1adc64f42d55a2f7ec1d36fc2e27;p=sdk%2Femulator%2Femulator-kernel.git VIGS: Support YUV420 planar format Change-Id: If3e687d6e8a53fe0ab551475c90851b4e60ebf79 Signed-off-by: Stanislav Vorobiov --- diff --git a/drivers/gpu/drm/vigs/vigs_plane.c b/drivers/gpu/drm/vigs/vigs_plane.c index c95c2226694f..9c6b249f9ba4 100644 --- a/drivers/gpu/drm/vigs/vigs_plane.c +++ b/drivers/gpu/drm/vigs/vigs_plane.c @@ -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; diff --git a/drivers/gpu/drm/vigs/vigs_protocol.h b/drivers/gpu/drm/vigs/vigs_protocol.h index cf535ede2447..0ed02ccec62a 100644 --- a/drivers/gpu/drm/vigs/vigs_protocol.h +++ b/drivers/gpu/drm/vigs/vigs_protocol.h @@ -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)