From: Alyssa Rosenzweig Date: Wed, 13 May 2020 22:24:25 +0000 (-0400) Subject: pan/mdg: Pack 8-bit swizzles in 16-bit ops X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e6293425bfe582e15b7a1460b14e33835b90c98f;p=mesa.git pan/mdg: Pack 8-bit swizzles in 16-bit ops Let's inch closer to 8-bit. Signed-off-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/panfrost/midgard/midgard_emit.c b/src/panfrost/midgard/midgard_emit.c index e4911c1faf4..c8340f9e44d 100644 --- a/src/panfrost/midgard/midgard_emit.c +++ b/src/panfrost/midgard/midgard_emit.c @@ -257,9 +257,12 @@ mir_pack_swizzle(unsigned mask, unsigned *swizzle, /* Replicate for now.. should really pick a side for * dot products */ - if (reg_mode == midgard_reg_mode_16) { + if (reg_mode == midgard_reg_mode_16 && sz == 16) { *rep_low = !upper; *rep_high = upper; + } else if (reg_mode == midgard_reg_mode_16 && sz == 8) { + *rep_low = upper; + *rep_high = upper; } else if (reg_mode == midgard_reg_mode_32) { *rep_low = upper; } else {