summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir_print.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-11-06 11:18:42 -0800
committerJason Ekstrand <[email protected]>2015-01-15 07:19:01 -0800
commita76ccbfacf3d8e4ea4ab9c25d279eab480f8702e (patch)
tree334d8d0df8a407aad664ae78e274e2acc93bc5df /src/glsl/nir/nir_print.c
parent73522ec83f845c6ab13f7da255bbe8c1e019cc20 (diff)
nir/print: Don't reindex things
These indices should now be reasonably stable/consistent. Redoing the indices in the print functions makes it harder to debug problems. Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir_print.c')
-rw-r--r--src/glsl/nir/nir_print.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/glsl/nir/nir_print.c b/src/glsl/nir/nir_print.c
index 335eaaf180e..2ae31ef9bc9 100644
--- a/src/glsl/nir/nir_print.c
+++ b/src/glsl/nir/nir_print.c
@@ -805,8 +805,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);
}