From: Alyssa Rosenzweig Date: Tue, 28 Apr 2020 21:44:39 +0000 (-0400) Subject: pan/mdg: Replicate 16-bit swizzles X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ffa314eab32b94956db1e0cd54d833333b050635;p=mesa.git pan/mdg: Replicate 16-bit swizzles We don't support vec8 quite yet anyway, this fixes dot products. Signed-off-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/panfrost/midgard/midgard_emit.c b/src/panfrost/midgard/midgard_emit.c index 6f6a395b430..98844169fae 100644 --- a/src/panfrost/midgard/midgard_emit.c +++ b/src/panfrost/midgard/midgard_emit.c @@ -242,6 +242,12 @@ mir_pack_swizzle_alu(midgard_instruction *ins) } src[i].rep_high = upper; + + /* Replicate for now.. should really pick a side for + * dot products */ + + if (ins->alu.reg_mode == midgard_reg_mode_16) + src[i].rep_low = true; } src[i].swizzle = packed;