[Mesa-dev] [PATCH 061/133] nir/print: Don't reindex things
Jason Ekstrand
jason at jlekstrand.net
Mon Dec 15 22:05:11 PST 2014
These indices should now be reasonably stable/consistent. Redoing the
indices in the print functions makes it harder to debug problems.
---
src/glsl/nir/nir_print.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/glsl/nir/nir_print.c b/src/glsl/nir/nir_print.c
index 0140f4e..dd57116 100644
--- a/src/glsl/nir/nir_print.c
+++ b/src/glsl/nir/nir_print.c
@@ -806,8 +806,6 @@ print_function_impl(nir_function_impl *impl, print_var_state *state, FILE *fp)
print_var_decl(var, state, fp);
}
- nir_index_local_regs(impl);
-
foreach_list_typed(nir_register, reg, node, &impl->registers) {
fprintf(fp, "\t");
print_register_decl(reg, fp);
@@ -919,8 +917,6 @@ nir_print_shader(nir_shader *shader, FILE *fp)
print_var_decl(var, &state, fp);
}
- nir_index_global_regs(shader);
-
foreach_list_typed(nir_register, reg, node, &shader->registers) {
print_register_decl(reg, fp);
}
--
2.2.0
More information about the mesa-dev
mailing list