aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2018-04-06 16:03:07 -0400
committerRob Clark <[email protected]>2018-04-09 15:36:21 -0400
commitd66dc343164c19efe9f42cd32d0b28b40e384ef8 (patch)
tree126cf29fd043cc11455e5dc9750a47c22f2d465b /src
parentbecf2d1faccf7dc78ea1d25e756d42e678a5b8ad (diff)
mesa/st/nir: fix instruction removal
At one point this kinda worked (or at least didn't cause problems). But with deref-instructions it results in dangling deref instructions not being properly removed. Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_nir_lower_builtin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_nir_lower_builtin.c b/src/mesa/state_tracker/st_nir_lower_builtin.c
index fca0bef6653..660fdf3f910 100644
--- a/src/mesa/state_tracker/st_nir_lower_builtin.c
+++ b/src/mesa/state_tracker/st_nir_lower_builtin.c
@@ -216,7 +216,7 @@ lower_builtin_block(lower_builtin_state *state, nir_block *block)
* to remove'd var. And we have to remove the original uniform
* var since we don't want it to get uniform space allocated.
*/
- exec_node_remove(&intrin->instr.node);
+ nir_instr_remove(&intrin->instr);
}
return true;