diff options
author | Kenneth Graunke <[email protected]> | 2016-08-09 18:02:46 -0700 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-01-12 09:47:29 +1100 |
commit | b5e682a1efa0a929574e739807ac2b046e004561 (patch) | |
tree | 6a2182dc4e1ce233876322a9453c6ac0426bf694 /src/mesa/drivers/dri | |
parent | fd957b17511b9a7654e70e0f4a21c2c7547f95c6 (diff) |
i965: Move nir_lower_locals_to_regs a bit later.
I'm going to add a boolean scheduling pass that I want run late, but
after copy propagation and dead code elimination. Yet, I don't want
to have to think about registers. So, move the register conversion
a little later.
No impact on shader-db. Suggested by Jason Ekstrand.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_nir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_nir.c b/src/mesa/drivers/dri/i965/brw_nir.c index 474449818c7..d01119095cc 100644 --- a/src/mesa/drivers/dri/i965/brw_nir.c +++ b/src/mesa/drivers/dri/i965/brw_nir.c @@ -619,12 +619,12 @@ brw_postprocess_nir(nir_shader *nir, const struct brw_compiler *compiler, OPT(nir_opt_algebraic_late); - OPT(nir_lower_locals_to_regs); - OPT_V(nir_lower_to_source_mods); OPT(nir_copy_prop); OPT(nir_opt_dce); + OPT(nir_lower_locals_to_regs); + if (unlikely(debug_enabled)) { /* Re-index SSA defs so we print more sensible numbers. */ nir_foreach_function(function, nir) { |