Mesa (master): aco: fix waitcnt insertion on GFX10.3

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Aug 4 22:04:28 UTC 2020


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

Author: Rhys Perry <pendingchaos02 at gmail.com>
Date:   Tue Jun 16 18:09:07 2020 +0100

aco: fix waitcnt insertion on GFX10.3

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/5546>

---

 src/amd/compiler/aco_insert_waitcnt.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/amd/compiler/aco_insert_waitcnt.cpp b/src/amd/compiler/aco_insert_waitcnt.cpp
index 466158f81f3..db0c7c0d68c 100644
--- a/src/amd/compiler/aco_insert_waitcnt.cpp
+++ b/src/amd/compiler/aco_insert_waitcnt.cpp
@@ -155,6 +155,7 @@ struct wait_imm {
       assert(exp == unset_counter || exp <= 0x7);
       switch (chip) {
       case GFX10:
+      case GFX10_3:
          assert(lgkm == unset_counter || lgkm <= 0x3f);
          assert(vm == unset_counter || vm <= 0x3f);
          imm = ((vm & 0x30) << 10) | ((lgkm & 0x3f) << 8) | ((exp & 0x7) << 4) | (vm & 0xf);



More information about the mesa-commit mailing list