From: Alyssa Rosenzweig Date: Mon, 6 Apr 2020 18:13:13 +0000 (-0400) Subject: pan/bi: Fix incorrect abs flip in fma/fadd16 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9279ed1550bfcfe5e12b618d1b73289a51baf24b;p=mesa.git pan/bi: Fix incorrect abs flip in fma/fadd16 Signed-off-by: Alyssa Rosenzweig Part-of: --- 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) {