From d0bd2bc60432363ae4bf1aa8c0d94a7ef53aa9f5 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 24 Jun 2015 20:32:03 -0700 Subject: [PATCH] nir/spirv: Add support for the Uniform storage class This is kida sketchy. I'm not really sure this is the way it's supposed to be used. --- src/glsl/nir/spirv_to_nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/nir/spirv_to_nir.c b/src/glsl/nir/spirv_to_nir.c index dcb94fc43c2..8394ab7bd66 100644 --- a/src/glsl/nir/spirv_to_nir.c +++ b/src/glsl/nir/spirv_to_nir.c @@ -532,6 +532,7 @@ vtn_handle_variables(struct vtn_builder *b, SpvOp opcode, var->name = ralloc_strdup(var, val->name); switch ((SpvStorageClass)w[3]) { + case SpvStorageClassUniform: case SpvStorageClassUniformConstant: var->data.mode = nir_var_uniform; var->data.read_only = true; @@ -549,7 +550,6 @@ vtn_handle_variables(struct vtn_builder *b, SpvOp opcode, case SpvStorageClassFunction: var->data.mode = nir_var_local; break; - case SpvStorageClassUniform: case SpvStorageClassWorkgroupLocal: case SpvStorageClassWorkgroupGlobal: case SpvStorageClassGeneric: -- 2.30.2