From: Alyssa Rosenzweig Date: Fri, 27 Mar 2020 19:53:12 +0000 (-0400) Subject: pan/bi: Fix missing type for fmul X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b5148b6b490b19b4f525dc07b470cf088e0eead3;p=mesa.git 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: --- 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 */