Mesa (master): aco: don't recurse in sub-dword get_reg_simple()

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


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

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

aco: don't recurse in sub-dword get_reg_simple()

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 7fd15295ea8..42a4dcbcebf 100644
--- a/src/amd/compiler/aco_register_allocation.cpp
+++ b/src/amd/compiler/aco_register_allocation.cpp
@@ -391,6 +391,7 @@ std::pair<PhysReg, bool> get_reg_simple(ra_ctx& ctx,
       }
 
       stride = 1; /* stride in full registers */
+      rc = info.rc = RegClass(RegType::vgpr, size);
    }
 
    if (stride == 1) {



More information about the mesa-commit mailing list