diff options
author | Tapani Pälli <[email protected]> | 2016-10-20 11:03:26 +0300 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2016-10-25 07:24:11 +0300 |
commit | 58b4fef8bb7b959ac0918d08a76c92c4c86cb262 (patch) | |
tree | 1608cdd5ff2b3d28d2c816e4b5e0637dae0afa33 | |
parent | 282b87dd03317ff39eb409b0ac2cbdc17d7e5aa3 (diff) |
mesa: add missing formats to driGLFormatToImageFormat
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 <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98328
-rw-r--r-- | src/mesa/drivers/dri/common/dri_util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index 79cb0506dd8..3b81799c646 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: |