projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bbce87
)
pan/bi: Fix incorrect abs flip in fma/fadd16
author
Alyssa Rosenzweig
<alyssa.rosenzweig@collabora.com>
Mon, 6 Apr 2020 18:13:13 +0000
(14:13 -0400)
committer
Marge Bot
<eric+marge@anholt.net>
Mon, 6 Apr 2020 19:41:56 +0000
(19:41 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4470>
src/panfrost/bifrost/bi_pack.c
patch
|
blob
|
history
diff --git
a/src/panfrost/bifrost/bi_pack.c
b/src/panfrost/bifrost/bi_pack.c
index 99a0077d1aebfd5b43cedd445d1697e9eca9b700..89eab4fa04f0477b6ab56ff0f243d8ba5d7f46be 100644
(file)
--- 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) {