mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
intel/fs: Dump IR for pre-RA scheduler modes in DEBUG_OPTIMIZER
This lets us more easily compare and contrast the various scheduling options that the compiler considered. Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24707>
This commit is contained in:
parent
07f2ad32e4
commit
08fc4603dd
1 changed files with 3 additions and 1 deletions
|
|
@ -6800,7 +6800,7 @@ fs_visitor::allocate_registers(bool allow_spilling)
|
|||
if (needs_register_pressure)
|
||||
shader_stats.max_register_pressure = compute_max_register_pressure();
|
||||
|
||||
debug_optimizer(nir, "pre_register_allocate", 99, 99);
|
||||
debug_optimizer(nir, "pre_register_allocate", 90, 90);
|
||||
|
||||
bool spill_all = allow_spilling && INTEL_DEBUG(DEBUG_SPILL_FS);
|
||||
|
||||
|
|
@ -6821,6 +6821,8 @@ fs_visitor::allocate_registers(bool allow_spilling)
|
|||
schedule_instructions(sched_mode);
|
||||
this->shader_stats.scheduler_mode = scheduler_mode_name[sched_mode];
|
||||
|
||||
debug_optimizer(nir, shader_stats.scheduler_mode, 95, i);
|
||||
|
||||
if (0) {
|
||||
assign_regs_trivial();
|
||||
allocated = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue