projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fa1366
)
nir/spirv: Actaully add variables to the funciton or shader
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Fri, 1 May 2015 18:28:01 +0000
(11:28 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Mon, 31 Aug 2015 23:58:20 +0000
(16:58 -0700)
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 a71119fe524b77a561412ce35c2bd13527513e82..61514c1d469a8607bac336ef2b5f0f386c6a8eea 100644
(file)
--- a/
src/glsl/nir/spirv_to_nir.c
+++ b/
src/glsl/nir/spirv_to_nir.c
@@
-497,6
+497,12
@@
vtn_handle_variables(struct vtn_builder *b, SpvOp opcode,
vtn_value(b, w[4], vtn_value_type_constant)->constant;
}
+ if (var->data.mode == nir_var_local) {
+ exec_list_push_tail(&b->impl->locals, &var->node);
+ } else {
+ exec_list_push_tail(&b->shader->globals, &var->node);
+ }
+
val->deref = nir_deref_var_create(b->shader, var);
vtn_foreach_decoration(b, val, var_decoration_cb, var);