summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRhys Perry <pendingchaos02@gmail.com>2020-04-27 20:42:24 +0100
committerMarge Bot <eric+marge@anholt.net>2020-04-28 23:16:55 +0000
commit307aca83a278938ec4a4932b7fa7dc6c8e189e60 (patch)
tree23c5b07f64cdacec40935fe9ada9f954350f9c72
parent99ca96fbf58975d49e4ad131f907c5b01e12db85 (diff)
aco: add missing adjust_max_used_regs()
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/4772>
-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 e702e09059d..8d6971e1c4d 100644
--- a/src/amd/compiler/aco_register_allocation.cpp
+++ b/src/amd/compiler/aco_register_allocation.cpp
@@ -385,6 +385,7 @@ std::pair<PhysReg, bool> get_reg_simple(ra_ctx& ctx,
if (reg_found) {
PhysReg res{entry.first};
res.reg_b += i;
+ adjust_max_used_regs(ctx, rc, entry.first);
return {res, true};
}
}