projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cee2922
)
nir/from_ssa: Use instr_rewrite_dest
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Wed, 9 Sep 2015 23:03:10 +0000
(16:03 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Fri, 11 Sep 2015 16:21:20 +0000
(09:21 -0700)
Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
src/glsl/nir/nir_from_ssa.c
patch
|
blob
|
history
diff --git
a/src/glsl/nir/nir_from_ssa.c
b/src/glsl/nir/nir_from_ssa.c
index 084f43da87c2ee6d17006e79cff3f0c15e0dd7df..eaf883dbaa02786846b0e7c1785bea94fa66bdc5 100644
(file)
--- a/
src/glsl/nir/nir_from_ssa.c
+++ b/
src/glsl/nir/nir_from_ssa.c
@@
-512,9
+512,7
@@
rewrite_ssa_def(nir_ssa_def *def, void *void_state)
*/
nir_dest *dest = exec_node_data(nir_dest, def, ssa);
- *dest = nir_dest_for_reg(reg);
- dest->reg.parent_instr = state->instr;
- list_addtail(&dest->reg.def_link, ®->defs);
+ nir_instr_rewrite_dest(state->instr, dest, nir_dest_for_reg(reg));
return true;
}