From 7956c788af229f31c2e0f6a9600690ef735a608e Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 13 Nov 2020 12:25:36 -0800 Subject: [PATCH] gallium/ntt: Don't manually reindex instrs. Getting the live SSA defs will do it if necessary, and that liveness is what we use the instr index for. (We used to need to do it manually, and cleanups for merging resulted in the index being treated as metadata). Acked-by: Jason Ekstrand Part-of: --- src/gallium/auxiliary/nir/nir_to_tgsi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gallium/auxiliary/nir/nir_to_tgsi.c b/src/gallium/auxiliary/nir/nir_to_tgsi.c index d74eafd06a3..a158c724c23 100644 --- a/src/gallium/auxiliary/nir/nir_to_tgsi.c +++ b/src/gallium/auxiliary/nir/nir_to_tgsi.c @@ -2161,8 +2161,6 @@ ntt_emit_impl(struct ntt_compile *c, nir_function_impl *impl) nir_index_ssa_defs(impl); nir_index_local_regs(impl); - nir_index_instrs(impl); - c->impl = impl; c->liveness = nir_live_ssa_defs_per_instr(impl);