spirv: Fix SpvImageFormatR16ui
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 12 Jul 2017 18:36:29 +0000 (11:36 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 2 Aug 2017 16:15:01 +0000 (09:15 -0700)
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: "17.1 17.2" <mesa-stable@lists.freedesktop.org>
src/compiler/spirv/spirv_to_nir.c

index 4b9c1218cf2cd5bfbd5ad77111c313235a20cea3..7b34dad30cd5cdc033c0994657b09b59ec32f1f3 100644 (file)
@@ -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");