aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/bifrost
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-05-01 16:38:11 -0400
committerAlyssa Rosenzweig <[email protected]>2020-05-04 11:08:15 -0400
commite14e3065a9f037df5c877057cd53587b58208063 (patch)
tree2ab01d7dc2175abce9c43254d01012efa7c756e1 /src/panfrost/bifrost
parent8415b3d552328de44d4602b1d85561af48ef302a (diff)
pan/bi: Fix incorrectly flipped swizzle
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/panfrost/bifrost/bi_pack.c b/src/panfrost/bifrost/bi_pack.c
index 85dea07899d..f807669d00e 100644
--- a/src/panfrost/bifrost/bi_pack.c
+++ b/src/panfrost/bifrost/bi_pack.c
@@ -681,8 +681,8 @@ bi_pack_fmadd_min_f16(bi_instruction *ins, struct bi_registers *regs, bool FMA)
.src0_neg = ins->src_neg[flip ? 1 : 0],
.src1_neg = ins->src_neg[flip ? 0 : 1],
.abs1 = l,
- .src0_swizzle = bi_swiz16(ins, 0),
- .src1_swizzle = bi_swiz16(ins, 1),
+ .src0_swizzle = bi_swiz16(ins, flip ? 1 : 0),
+ .src1_swizzle = bi_swiz16(ins, flip ? 0 : 1),
.mode = ins->minmax,
.op = op
};