From a629d24dc3c857dc22a0101cbcd0bcc36082cd18 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 19 Apr 2023 17:30:40 +1000 Subject: [PATCH] [client] egl: fix fourcc for RGBA10 dmabuf --- client/renderers/EGL/texture_util.c | 2 +- client/renderers/EGL/texture_util.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/renderers/EGL/texture_util.c b/client/renderers/EGL/texture_util.c index 7146d5af..45e149fa 100644 --- a/client/renderers/EGL/texture_util.c +++ b/client/renderers/EGL/texture_util.c @@ -53,7 +53,7 @@ bool egl_texUtilGetFormat(const EGL_TexSetup * setup, EGL_TexFormat * fmt) fmt->format = GL_RGBA; fmt->intFormat = GL_RGB10_A2; fmt->dataType = GL_UNSIGNED_INT_2_10_10_10_REV; - fmt->fourcc = DRM_FORMAT_BGRA1010102; + fmt->fourcc = DRM_FORMAT_BGRA2101010; break; case EGL_PF_RGBA16F: diff --git a/client/renderers/EGL/texture_util.h b/client/renderers/EGL/texture_util.h index ae8e11b1..55903ab0 100644 --- a/client/renderers/EGL/texture_util.h +++ b/client/renderers/EGL/texture_util.h @@ -64,7 +64,7 @@ void egl_texUtilUnmapBuffer(EGL_TexBuffer * buffer); ((uint32_t)(c) << 16) | ((uint32_t)(d) << 24)) #define DRM_FORMAT_ARGB8888 fourcc_code('A', 'R', '2', '4') #define DRM_FORMAT_ABGR8888 fourcc_code('A', 'B', '2', '4') -#define DRM_FORMAT_BGRA1010102 fourcc_code('B', 'A', '3', '0') +#define DRM_FORMAT_BGRA2101010 fourcc_code('A', 'B', '3', '0') #define DRM_FORMAT_ABGR16161616F fourcc_code('A', 'B', '4', 'H') #define DRM_FORMAT_MOD_VENDOR_NONE 0