From 8abf59ff98863634321e3e0d60035277e58e92e8 Mon Sep 17 00:00:00 2001 From: Nanley Chery Date: Mon, 22 Jun 2020 15:19:38 -0700 Subject: dri_util: Update internal_format to GL_RGB8 for MESA_FORMAT_B8G8R8X8_UNORM MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Port the change done for RGBX8888 in 02a1f95386b43bf46cd1c8297d0955242f554fa2. If XR24 images are considered to be VIEW_CLASS_24_BITS-compatible, it's reasonable to assume that XB24 images would be as well. Fixes: bf576772ab4d ("dri_util: add driImageFormatToSizedInternalGLFormat function") Reviewed-by: Marek Olšák Part-of: --- src/mesa/drivers/dri/common/dri_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index c5e8091cf80..0d9290d15ae 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -890,7 +890,7 @@ static const struct { { .image_format = __DRI_IMAGE_FORMAT_XRGB8888, .mesa_format = MESA_FORMAT_B8G8R8X8_UNORM, - .internal_format = GL_RGBA8, + .internal_format = GL_RGB8, }, { .image_format = __DRI_IMAGE_FORMAT_ABGR16161616F, -- cgit v1.2.3