From: Rhys Perry Date: Mon, 27 Apr 2020 19:42:24 +0000 (+0100) Subject: aco: add missing adjust_max_used_regs() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=307aca83a278938ec4a4932b7fa7dc6c8e189e60;p=mesa.git aco: add missing adjust_max_used_regs() Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Part-of: --- 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}; } }