Commit 9279ed15 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜 Committed by Marge Bot
Browse files

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


Signed-off-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <mesa/mesa!4470>
parent 3bbce876
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment