render/gles2: add BGR161616F and BGR161616

This commit is contained in:
Simon Ser 2025-11-20 18:27:19 +01:00
parent d512c00791
commit 1723f851d2

View file

@ -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,