diff options
author | Nataraj Deshpande <[email protected]> | 2020-05-13 14:32:13 -0700 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-21 01:52:46 +0000 |
commit | 02a1f95386b43bf46cd1c8297d0955242f554fa2 (patch) | |
tree | f47cb822fbdd81a2bd50e8c5d4d2c6eaea7663ad /src/mesa | |
parent | 13fc03f4c0e709f6d1a8d811f9bc8a0c8c42943c (diff) |
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: <[email protected]>
Fixes: bf576772ab4d ("dri_util: add driImageFormatToSizedInternalGLFormat function")
Signed-off-by: Nataraj Deshpande <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5034>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/common/dri_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index bfa3d35fd81..e90179c7f2e 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -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, |