pan/bi: Pack outmod and roundmode with FMA
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 27 Mar 2020 19:55:03 +0000 (15:55 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 31 Mar 2020 01:12:26 +0000 (01:12 +0000)
The fields got missed.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4382>

src/panfrost/bifrost/bi_pack.c

index 92014d2187ee33a767b47ddac64170af166588f1..270ddecfce1bedc3c6055df01af0202981b99bf5 100644 (file)
@@ -458,6 +458,8 @@ bi_pack_fma_fma(bi_instruction *ins, struct bi_registers *regs)
                         .src2_abs = ins->src_abs[2],
                         .src0_neg = negate_mul,
                         .src2_neg = ins->src_neg[2],
+                        .outmod = ins->outmod,
+                        .roundmode = ins->roundmode,
                         .op = BIFROST_FMA_OP_FMA
                 };
 
@@ -472,6 +474,8 @@ bi_pack_fma_fma(bi_instruction *ins, struct bi_registers *regs)
                         .swizzle_2 = bi_swiz16(ins, 2),
                         .src0_neg = negate_mul,
                         .src2_neg = ins->src_neg[2],
+                        .outmod = ins->outmod,
+                        .roundmode = ins->roundmode,
                         .op = BIFROST_FMA_OP_FMA16
                 };