aco: always run RA validation during tests

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38811>
This commit is contained in:
Rhys Perry 2025-12-03 15:01:56 +00:00 committed by Marge Bot
parent bf30a57440
commit d0801c9eb7
2 changed files with 1 additions and 4 deletions

View file

@ -130,7 +130,7 @@ aco_postprocess_shader(const struct aco_compiler_options* options,
/* Register Allocation */
register_allocation(program.get());
if (validate_ra(program.get())) {
if ((debug_flags & DEBUG_VALIDATE_RA) && validate_ra(program.get())) {
aco_print_program(program.get(), stderr);
abort();
} else if (options->dump_ir) {

View file

@ -1550,9 +1550,6 @@ validate_instr_defs(Program* program, std::array<unsigned, 2048>& regs,
bool
validate_ra(Program* program)
{
if (!(debug_flags & DEBUG_VALIDATE_RA))
return false;
bool err = false;
aco::live_var_analysis(program);
std::vector<std::vector<Temp>> phi_sgpr_ops(program->blocks.size());