aco/scheduler: assert that the register demand stays within pre-determined bounds

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38135>
This commit is contained in:
Daniel Schürmann
2025-10-29 12:19:02 +01:00
committed by Marge Bot
parent 82ba730994
commit 5ef47ba231
+2
View File
@@ -1298,6 +1298,8 @@ schedule_program(Program* program)
for (Block& block : program->blocks) {
new_demand.update(block.register_demand);
}
assert(!new_demand.exceeds(ctx.mv.max_registers) ||
!new_demand.exceeds(program->max_reg_demand));
update_vgpr_sgpr_demand(program, new_demand);
/* Validate live variable information */