Mesa (master): gallium/ntt: Don't manually reindex instrs.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Dec 11 23:21:35 UTC 2020
Module: Mesa
Branch: master
Commit: 7956c788af229f31c2e0f6a9600690ef735a608e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7956c788af229f31c2e0f6a9600690ef735a608e
Author: Eric Anholt <eric at anholt.net>
Date: Fri Nov 13 12:25:36 2020 -0800
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 <jason at jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7658>
---
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);
More information about the mesa-commit
mailing list