nir/print: Don't reindex things
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 6 Nov 2014 19:18:42 +0000 (11:18 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Jan 2015 15:19:01 +0000 (07:19 -0800)
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 <cwabbott0@gmail.com>
src/glsl/nir/nir_print.c

index 335eaaf180e07b7ea6556646ea48a33275318dc8..2ae31ef9bc958ee14daf1718a96a0f7eed7fbb5f 100644 (file)
@@ -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);
    }