intel/fs: run VGRF compaction just before max live register accounting

There are a number of instances of the dead code elimination pass that
could reduce the count. For some reason this also seems to affect
register allocation itself.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21853>
This commit is contained in:
Lionel Landwerlin
2023-03-17 09:42:31 +02:00
committed by Marge Bot
parent 554b28d0b1
commit 34d8bfe65f

View File

@@ -6506,6 +6506,8 @@ fs_visitor::allocate_registers(bool allow_spilling)
"lifo"
};
compact_virtual_grfs();
if (needs_register_pressure)
shader_stats.max_register_pressure = compute_max_register_pressure();