mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
dri_util: Update internal_format to GL_RGB8 for MESA_FORMAT_R8G8B8X8_UNORM
The commit helps to resolve GL_INVALID_OPERATION error returned during CTS test when Android format RGBX8888 fallback to RGBA8888 and then set color with glTexSubImage2D(format=GL_RGB). Fixes android.hardware.nativehardware.cts.AHardwareBufferNativeTests: #SingleLayer_ColorTest_GpuSampledImageCanBeSampled_R8G8B8X8_UNORM Cc: <mesa-stable@lists.freedesktop.org> Fixes:bf576772ab("dri_util: add driImageFormatToSizedInternalGLFormat function") Signed-off-by: Nataraj Deshpande <nataraj.deshpande@intel.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5034> (cherry picked from commit02a1f95386)
This commit is contained in:
parent
4724bad429
commit
0e9812d0ec
2 changed files with 2 additions and 2 deletions
|
|
@ -2713,7 +2713,7 @@
|
|||
"description": "dri_util: Update internal_format to GL_RGB8 for MESA_FORMAT_R8G8B8X8_UNORM",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "bf576772ab4d9e76dae716640bed6de879f19567"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -935,7 +935,7 @@ static const struct {
|
|||
{
|
||||
.image_format = __DRI_IMAGE_FORMAT_XBGR8888,
|
||||
.mesa_format = MESA_FORMAT_R8G8B8X8_UNORM,
|
||||
.internal_format = GL_RGBA8,
|
||||
.internal_format = GL_RGB8,
|
||||
},
|
||||
{
|
||||
.image_format = __DRI_IMAGE_FORMAT_R8,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue