From 5675590039ff621f01fac65ab6af1ead3c6b33a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Henrique?= Date: Sun, 14 Jan 2024 17:16:52 -0300 Subject: [PATCH] Fix DRM_FORMAT_A/XRGB8888 swizzle for libgo2. Previously this was defined as RK_FORMAT_BGRA_8888, which is the wrong layout for these formats. This commit fixes wrong color output on certain displays. --- src/display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display.c b/src/display.c index 52b2827..05e72df 100644 --- a/src/display.c +++ b/src/display.c @@ -554,7 +554,7 @@ static uint32_t go2_rkformat_get(uint32_t drm_fourcc) case DRM_FORMAT_ARGB8888: case DRM_FORMAT_XRGB8888: - return RK_FORMAT_BGRA_8888; + return RK_FORMAT_RGBX_8888; case DRM_FORMAT_RGB565: return RK_FORMAT_RGB_565;