mesa/st/nir: fix instruction removal
authorRob Clark <robdclark@gmail.com>
Fri, 6 Apr 2018 20:03:07 +0000 (16:03 -0400)
committerRob Clark <robdclark@gmail.com>
Mon, 9 Apr 2018 19:36:21 +0000 (15:36 -0400)
commitd66dc343164c19efe9f42cd32d0b28b40e384ef8
tree126cf29fd043cc11455e5dc9750a47c22f2d465b
parentbecf2d1faccf7dc78ea1d25e756d42e678a5b8ad
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>
src/mesa/state_tracker/st_nir_lower_builtin.c