From: Alyssa Rosenzweig Date: Fri, 1 May 2020 20:37:51 +0000 (-0400) Subject: pan/bi: Fix double-abs flipping X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c9634894a67d40c101f56f0f3e963359f271ed2a;p=mesa.git pan/bi: Fix double-abs flipping Signed-off-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/panfrost/bifrost/bi_pack.c b/src/panfrost/bifrost/bi_pack.c index 95c2353389a..5330aff262f 100644 --- a/src/panfrost/bifrost/bi_pack.c +++ b/src/panfrost/bifrost/bi_pack.c @@ -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; } }