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

Author: Alyssa Rosenzweig <[email protected]>
Date:   Mon Apr  6 14:13:13 2020 -0400

pan/bi: Fix incorrect abs flip in fma/fadd16

Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4470>

---

 src/panfrost/bifrost/bi_pack.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/panfrost/bifrost/bi_pack.c b/src/panfrost/bifrost/bi_pack.c
index 99a0077d1ae..89eab4fa04f 100644
--- a/src/panfrost/bifrost/bi_pack.c
+++ b/src/panfrost/bifrost/bi_pack.c
@@ -591,8 +591,8 @@ bi_pack_fma_addmin_f16(bi_instruction *ins, struct 
bi_registers *regs)
         bool flip = false;
 
         if (!abs_0 && !abs_1) {
-                /* Force k = 0 <===> NOT(src1 < src0) <==> src1 >= src0 */
-                flip = (src_0 < src_1);
+                /* Force k = 0 <===> NOT(src1 < src0) */
+                flip = (src_1 < src_0);
         } else if (abs_0 && !abs_1) {
                 l = src_1 >= src_0;
         } else if (abs_1 && !abs_0) {

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to