Mesa (master): aco: add missing adjust_max_used_regs()

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Apr 28 23:29:08 UTC 2020


Module: Mesa
Branch: master
Commit: 307aca83a278938ec4a4932b7fa7dc6c8e189e60
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=307aca83a278938ec4a4932b7fa7dc6c8e189e60

Author: Rhys Perry <pendingchaos02 at gmail.com>
Date:   Mon Apr 27 20:42:24 2020 +0100

aco: add missing adjust_max_used_regs()

Signed-off-by: Rhys Perry <pendingchaos02 at gmail.com>
Reviewed-by: Daniel Schürmann <daniel at schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4772>

---

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



More information about the mesa-commit mailing list