projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba0d9d3
)
nir/spirv: Add support for the Uniform storage class
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Thu, 25 Jun 2015 03:32:03 +0000
(20:32 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Thu, 25 Jun 2015 03:32:05 +0000
(20:32 -0700)
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
patch
|
blob
|
history
diff --git
a/src/glsl/nir/spirv_to_nir.c
b/src/glsl/nir/spirv_to_nir.c
index dcb94fc43c26ade6c700f3b0cd48f5b0ddf0574f..8394ab7bd66863a5001062c414ea09c23e697742 100644
(file)
--- 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: