From: Cho KyongHo Date: Wed, 31 May 2017 13:51:13 +0000 (+0900) Subject: [COMMON] g2d: fix RGB and Cb/Cr order X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a58c4d1acc12a34bdf717ae9e74cf2635c4bc8ff;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 --- 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)