From b5148b6b490b19b4f525dc07b470cf088e0eead3 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 27 Mar 2020 15:53:12 -0400 Subject: [PATCH] pan/bi: Fix missing type for fmul We add a zero argument, we want it to align with the size of whatever the other arguments were for optimization. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bifrost_compile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index 3d6b0ab3cad..2d137605bf4 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -566,6 +566,7 @@ emit_alu(bi_context *ctx, nir_alu_instr *instr) switch (instr->op) { case nir_op_fmul: alu.src[2] = BIR_INDEX_ZERO; /* FMA */ + alu.src_types[2] = alu.src_types[1]; break; case nir_op_fsat: alu.outmod = BIFROST_SAT; /* FMOV */ -- 2.30.2