From c9634894a67d40c101f56f0f3e963359f271ed2a Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 1 May 2020 16:37:51 -0400 Subject: [PATCH] pan/bi: Fix double-abs flipping Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bi_pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.30.2