Mesa (main): aco/ir: Fix swapped nle.

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


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

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

aco/ir: Fix swapped nle.

Cc: mesa-stable

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, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/compiler/aco_ir.cpp b/src/amd/compiler/aco_ir.cpp
index 4366dbb7bc1..f7c8ca78069 100644
--- a/src/amd/compiler/aco_ir.cpp
+++ b/src/amd/compiler/aco_ir.cpp
@@ -639,7 +639,7 @@ get_cmp_info(aco_opcode op, CmpInfo* info)
       CMP(lt, /*n*/ge, gt, /*n*/le)
       CMP(eq, /*n*/lg, eq, /*n*/lg)
       CMP(le, /*n*/gt, ge, /*n*/lt)
-      CMP(gt, /*n*/le, lt, /*n*/le)
+      CMP(gt, /*n*/le, lt, /*n*/ge)
       CMP(lg, /*n*/eq, lg, /*n*/eq)
       CMP(ge, /*n*/lt, le, /*n*/gt)
 #undef CMP



More information about the mesa-commit mailing list