From dc090ca0cbe08c223ae5372dc4631ebfd523ce7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Thu, 20 Oct 2016 11:03:26 +0300 Subject: [PATCH] mesa: add missing formats to driGLFormatToImageFormat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes following dEQP tests: dEQP-EGL.functional.image.api.create_image_gles2_tex2d_luminance dEQP-EGL.functional.image.api.create_image_gles2_tex2d_luminance_alpha Signed-off-by: Tapani Pälli --- src/mesa/drivers/dri/common/dri_util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index 79cb050..3b81799 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -842,8 +842,10 @@ driGLFormatToImageFormat(mesa_format format) return __DRI_IMAGE_FORMAT_ABGR8888; case MESA_FORMAT_R8G8B8X8_UNORM: return __DRI_IMAGE_FORMAT_XBGR8888; + case MESA_FORMAT_L_UNORM8: case MESA_FORMAT_R_UNORM8: return __DRI_IMAGE_FORMAT_R8; + case MESA_FORMAT_L8A8_UNORM: case MESA_FORMAT_R8G8_UNORM: return __DRI_IMAGE_FORMAT_GR88; case MESA_FORMAT_NONE: -- 2.7.4