Mesa (master): spirv: Fix SpvImageFormatR16ui
Jason Ekstrand
jekstrand at kemper.freedesktop.org
Wed Aug 2 16:15:14 UTC 2017
Module: Mesa
Branch: master
Commit: 95c6a97464e7baaca6e09f829da0be5ac8c50297
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=95c6a97464e7baaca6e09f829da0be5ac8c50297
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date: Wed Jul 12 11:36:29 2017 -0700
spirv: Fix SpvImageFormatR16ui
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Cc: "17.1 17.2" <mesa-stable at lists.freedesktop.org>
---
src/compiler/spirv/spirv_to_nir.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c
index 4b9c1218cf..7b34dad30c 100644
--- a/src/compiler/spirv/spirv_to_nir.c
+++ b/src/compiler/spirv/spirv_to_nir.c
@@ -721,7 +721,7 @@ translate_image_format(SpvImageFormat format)
case SpvImageFormatRg32ui: return 0x823C; /* GL_RG32UI */
case SpvImageFormatRg16ui: return 0x823A; /* GL_RG16UI */
case SpvImageFormatRg8ui: return 0x8238; /* GL_RG8UI */
- case SpvImageFormatR16ui: return 0x823A; /* GL_RG16UI */
+ case SpvImageFormatR16ui: return 0x8234; /* GL_R16UI */
case SpvImageFormatR8ui: return 0x8232; /* GL_R8UI */
default:
assert(!"Invalid image format");
More information about the mesa-commit
mailing list