Mesa (main): aco/ir: Add swapped opcode for v_cmp_u/v_cmp_o.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jul 27 15:16:58 UTC 2022


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

Author: Georg Lehmann <dadschoorse at gmail.com>
Date:   Wed Jul 27 12:43:31 2022 +0200

aco/ir: Add swapped opcode for v_cmp_u/v_cmp_o.

Signed-off-by: Georg Lehmann <dadschoorse at gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17763>

---

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

diff --git a/src/amd/compiler/aco_ir.cpp b/src/amd/compiler/aco_ir.cpp
index db381edd18a..dd0c5960e8a 100644
--- a/src/amd/compiler/aco_ir.cpp
+++ b/src/amd/compiler/aco_ir.cpp
@@ -651,12 +651,14 @@ get_cmp_info(aco_opcode op, CmpInfo* info)
 #define ORD_TEST(sz)                                                                               \
    case aco_opcode::v_cmp_u_f##sz:                                                                 \
       info->f32 = aco_opcode::v_cmp_u_f32;                                                         \
+      info->swapped = aco_opcode::v_cmp_u_f##sz;                                                   \
       info->inverse = aco_opcode::v_cmp_o_f##sz;                                                   \
       info->vcmpx = aco_opcode::v_cmpx_u_f##sz;                                                    \
       info->size = sz;                                                                             \
       return true;                                                                                 \
    case aco_opcode::v_cmp_o_f##sz:                                                                 \
       info->f32 = aco_opcode::v_cmp_o_f32;                                                         \
+      info->swapped = aco_opcode::v_cmp_o_f##sz;                                                   \
       info->inverse = aco_opcode::v_cmp_u_f##sz;                                                   \
       info->vcmpx = aco_opcode::v_cmpx_o_f##sz;                                                    \
       info->size = sz;                                                                             \



More information about the mesa-commit mailing list