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}; } }