Mesa (main): aco/print_ir: fix printing of VOPC_SDWA definitions

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Aug 23 10:48:49 UTC 2021


Module: Mesa
Branch: main
Commit: 60e171af06fe535faafcff76abb5686d9613c56c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=60e171af06fe535faafcff76abb5686d9613c56c

Author: Daniel Schürmann <daniel at schuermann.dev>
Date:   Fri Aug 13 15:07:16 2021 +0200

aco/print_ir: fix printing of VOPC_SDWA definitions

Reviewed-by: Rhys Perry <pendingchaos02 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12364>

---

 src/amd/compiler/aco_print_ir.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/amd/compiler/aco_print_ir.cpp b/src/amd/compiler/aco_print_ir.cpp
index 339b938c3eb..d48f75f3a72 100644
--- a/src/amd/compiler/aco_print_ir.cpp
+++ b/src/amd/compiler/aco_print_ir.cpp
@@ -627,6 +627,8 @@ print_instr_format_specific(const Instruction* instr, FILE* output)
       }
       if (sdwa.clamp)
          fprintf(output, " clamp");
+      if (instr->isVOPC())
+         return;
       switch (sdwa.dst_sel & sdwa_asuint) {
       case sdwa_udword: break;
       case sdwa_ubyte0:



More information about the mesa-commit mailing list