From f8bf6b9e0a469c9fd1e0059cebe48b685340c7fe Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Mon, 14 Jun 2021 14:45:22 +0100 Subject: [PATCH] aco/ra: use adjust_max_used_regs() in compact_relocate_vars() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Part-of: --- src/amd/compiler/aco_register_allocation.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/amd/compiler/aco_register_allocation.cpp b/src/amd/compiler/aco_register_allocation.cpp index 441fcf8cc79..e52424044c4 100644 --- a/src/amd/compiler/aco_register_allocation.cpp +++ b/src/amd/compiler/aco_register_allocation.cpp @@ -1353,6 +1353,8 @@ PhysReg compact_relocate_vars(ra_ctx& ctx, const std::vector& var space_reg = next_reg; } + adjust_max_used_regs(ctx, var.info.rc, next_reg); + next_reg = next_reg.advance(var.info.rc.size() * 4); }