projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc035db
)
nir/spirv: Support workgroup (shared) variable translation
author
Jordan Justen
<jordan.l.justen@intel.com>
Sat, 9 Jan 2016 03:45:45 +0000
(19:45 -0800)
committer
Jordan Justen
<jordan.l.justen@intel.com>
Thu, 21 Jan 2016 08:31:29 +0000
(
00:31
-0800)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
src/glsl/nir/spirv/spirv_to_nir.c
patch
|
blob
|
history
diff --git
a/src/glsl/nir/spirv/spirv_to_nir.c
b/src/glsl/nir/spirv/spirv_to_nir.c
index e8ce588e14e9b7c4e9b3847e3e18b3d19b696700..de97612a2fce95827361e206d53ef44b8d2ddca9 100644
(file)
--- a/
src/glsl/nir/spirv/spirv_to_nir.c
+++ b/
src/glsl/nir/spirv/spirv_to_nir.c
@@
-1981,6
+1981,8
@@
vtn_handle_variables(struct vtn_builder *b, SpvOp opcode,
var->interface_type = NULL;
break;
case SpvStorageClassWorkgroup:
+ var->data.mode = nir_var_shared;
+ break;
case SpvStorageClassCrossWorkgroup:
case SpvStorageClassGeneric:
case SpvStorageClassAtomicCounter: