From: Jason Ekstrand Date: Thu, 25 Jun 2015 03:32:03 +0000 (-0700) Subject: nir/spirv: Add support for the Uniform storage class X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d0bd2bc60432363ae4bf1aa8c0d94a7ef53aa9f5;p=mesa.git 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. --- 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: