summaryrefslogtreecommitdiff
path: root/src/amd/compiler/aco_register_allocation.cpp
diff options
context:
space:
mode:
authorDaniel Schürmann <daniel@schuermann.dev>2023-04-03 18:16:50 +0200
committerMarge Bot <emma+marge@anholt.net>2023-04-04 18:35:43 +0000
commit37df8edf34e656b4745148369c31f40fcbf3727b (patch)
treec70fefaf3ac9b7afb04dfce7ecc5a242096dd244 /src/amd/compiler/aco_register_allocation.cpp
parent8c68aba67805f469d7432674b61f938a337db09a (diff)
downloadmesa-37df8edf34e656b4745148369c31f40fcbf3727b.tar.gz
aco/ra: adjust_max_used_regs() for fixed Operands
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22267>
Diffstat (limited to 'src/amd/compiler/aco_register_allocation.cpp')
-rw-r--r--src/amd/compiler/aco_register_allocation.cpp1
1 files changed, 1 insertions, 0 deletions
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());