mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-11 23:10:28 +01:00
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 <robdclark@gmail.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
becf2d1fac
commit
d66dc34316
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue