pan/bi: Fix double-abs flipping
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 1 May 2020 20:37:51 +0000 (16:37 -0400)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 4 May 2020 15:08:15 +0000 (11:08 -0400)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>

src/panfrost/bifrost/bi_pack.c

index 95c2353389a792d6693f5ac76f5722e0549a3d94..5330aff262f318669715811435ace7fac7939b31 100644 (file)
@@ -636,7 +636,7 @@ bi_pack_fp16_abs(bi_instruction *ins, struct bi_registers *regs, bool *flip)
                 *flip = true;
                 return src_0 >= src_1;
         } else {
-                *flip = (src_0 >= src_1);
+                *flip = !(src_1 < src_0);
                 return true;
         }
 }