From ffa314eab32b94956db1e0cd54d833333b050635 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 28 Apr 2020 17:44:39 -0400 Subject: [PATCH] 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: --- src/panfrost/midgard/midgard_emit.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.30.2