From 1723f851d249c997d3ce32b1fa671eb04645b501 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 20 Nov 2025 18:27:19 +0100 Subject: [PATCH] render/gles2: add BGR161616F and BGR161616 --- render/gles2/pixel_format.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/render/gles2/pixel_format.c b/render/gles2/pixel_format.c index e74cb29fa..fbc113817 100644 --- a/render/gles2/pixel_format.c +++ b/render/gles2/pixel_format.c @@ -70,6 +70,11 @@ static const struct wlr_gles2_pixel_format formats[] = { .gl_format = GL_RGBA, .gl_type = GL_UNSIGNED_INT_2_10_10_10_REV_EXT, }, + { + .drm_format = DRM_FORMAT_BGR161616F, + .gl_format = GL_RGB, + .gl_type = GL_HALF_FLOAT_OES, + }, { .drm_format = DRM_FORMAT_XBGR16161616F, .gl_format = GL_RGBA, @@ -80,6 +85,12 @@ static const struct wlr_gles2_pixel_format formats[] = { .gl_format = GL_RGBA, .gl_type = GL_HALF_FLOAT_OES, }, + { + .drm_format = DRM_FORMAT_BGR161616, + .gl_internalformat = GL_RGB16_EXT, + .gl_format = GL_RGB, + .gl_type = GL_UNSIGNED_SHORT, + }, { .drm_format = DRM_FORMAT_XBGR16161616, .gl_internalformat = GL_RGBA16_EXT,