aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/bifrost
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-05-01 16:37:51 -0400
committerAlyssa Rosenzweig <[email protected]>2020-05-04 11:08:15 -0400
commitc9634894a67d40c101f56f0f3e963359f271ed2a (patch)
tree06e555e9d143da1dc47017cc6b010f65bb6f5a2b /src/panfrost/bifrost
parentef9b4b3a0bea318bcc853f9654721b56d7e1c27d (diff)
pan/bi: Fix double-abs flipping
Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
Diffstat (limited to 'src/panfrost/bifrost')
-rw-r--r--src/panfrost/bifrost/bi_pack.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}