dri_util: Update internal_format to GL_RGB8 for MESA_FORMAT_B8G8R8X8_UNORM
authorNanley Chery <nanley.g.chery@intel.com>
Mon, 22 Jun 2020 22:19:38 +0000 (15:19 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 11 Aug 2020 19:35:03 +0000 (19:35 +0000)
commit8abf59ff98863634321e3e0d60035277e58e92e8
treee26700b16c22d6644a590fea3f6f9b05304c0684
parentfdb97d3d2914c8f887a7968432db4fdbd35d8376
dri_util: Update internal_format to GL_RGB8 for MESA_FORMAT_B8G8R8X8_UNORM

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 <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6095>
src/mesa/drivers/dri/common/dri_util.c