From a58c4d1acc12a34bdf717ae9e74cf2635c4bc8ff Mon Sep 17 00:00:00 2001 From: Cho KyongHo Date: Wed, 31 May 2017 22:51:13 +0900 Subject: [PATCH] [COMMON] g2d: fix RGB and Cb/Cr order The order of Cb and Cr was reversed in the format definition. R and B was also reversed for RGB565. Change-Id: Ifff9ad199cff5e889b844b3357a97619f152bd5f Signed-off-by: Cho KyongHo --- drivers/gpu/exynos/g2d/g2d_format.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/exynos/g2d/g2d_format.h b/drivers/gpu/exynos/g2d/g2d_format.h index 81f4ee7cd8f3..f72ea5d5e9b0 100644 --- a/drivers/gpu/exynos/g2d/g2d_format.h +++ b/drivers/gpu/exynos/g2d/g2d_format.h @@ -23,8 +23,8 @@ #define G2D_YUVORDER_MASK (0x3 << 24) -#define G2D_YUV_UV ((0 << 24) | G2D_SWZ_ARGB) -#define G2D_YUV_VU ((1 << 24) | G2D_SWZ_ARGB) +#define G2D_YUV_UV ((1 << 24) | G2D_SWZ_ARGB) +#define G2D_YUV_VU ((0 << 24) | G2D_SWZ_ARGB) #define G2D_YUV_YC (0 << 25) #define G2D_YUV_CY (1 << 25) @@ -52,7 +52,7 @@ #define G2D_FMT_XRGB8888 (G2D_DATAFMT_8888 | G2D_SWZ_xRGB) #define G2D_FMT_ARGB4444 (G2D_DATAFMT_4444 | G2D_SWZ_ARGB) #define G2D_FMT_ARGB1555 (G2D_DATAFMT_1555 | G2D_SWZ_ARGB) -#define G2D_FMT_RGB565 (G2D_DATAFMT_565 | G2D_SWZ_xBGR) +#define G2D_FMT_RGB565 (G2D_DATAFMT_565 | G2D_SWZ_xRGB) #define G2D_FMT_RGB888 (G2D_DATAFMT_888 | G2D_SWZ_xRGB) #define G2D_FMT_BGR888 (G2D_DATAFMT_888 | G2D_SWZ_BGR) #define G2D_FMT_NV12 (G2D_DATAFMT_YUV420SP | G2D_YUV_UV) -- 2.20.1