From 307aca83a278938ec4a4932b7fa7dc6c8e189e60 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Mon, 27 Apr 2020 20:42:24 +0100 Subject: [PATCH] aco: add missing adjust_max_used_regs() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Part-of: --- 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 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 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}; } } -- 2.30.2