Module: Mesa Branch: main Commit: 37df8edf34e656b4745148369c31f40fcbf3727b URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=37df8edf34e656b4745148369c31f40fcbf3727b
Author: Daniel Schürmann <[email protected]> Date: Mon Apr 3 18:16:50 2023 +0200 aco/ra: adjust_max_used_regs() for fixed Operands Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22267> --- src/amd/compiler/aco_register_allocation.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/compiler/aco_register_allocation.cpp b/src/amd/compiler/aco_register_allocation.cpp index 7eaaf45de20..a0cf33a1ee8 100644 --- a/src/amd/compiler/aco_register_allocation.cpp +++ b/src/amd/compiler/aco_register_allocation.cpp @@ -1977,6 +1977,7 @@ handle_fixed_operands(ra_ctx& ctx, RegisterFile& register_file, continue; PhysReg src = ctx.assignments[op.tempId()].reg; + adjust_max_used_regs(ctx, op.regClass(), op.physReg()); if (op.physReg() == src) { tmp_file.block(op.physReg(), op.regClass());
