From 262a427a519b9f831f9eb54497266a63fa302e2b Mon Sep 17 00:00:00 2001 From: Christoph Pillmayer Date: Tue, 28 Oct 2025 11:15:23 +0000 Subject: [PATCH] pan/bi: Add missing 8bit widen swizzles Reviewed-by: Lars-Ivar Hesselberg Simonsen Part-of: --- src/panfrost/compiler/bi_lower_swizzle.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/panfrost/compiler/bi_lower_swizzle.c b/src/panfrost/compiler/bi_lower_swizzle.c index 4f686be28ae..ae94ace73fb 100644 --- a/src/panfrost/compiler/bi_lower_swizzle.c +++ b/src/panfrost/compiler/bi_lower_swizzle.c @@ -81,10 +81,12 @@ va_op_swizzles(enum bi_opcode op, unsigned src) if (info.widen) { if (info.size == VA_SIZE_8) - swizzles |= (1 << BI_SWIZZLE_B0123) | (1 << BI_SWIZZLE_B0101) | - (1 << BI_SWIZZLE_B2323) | (1 << BI_SWIZZLE_B0000) | - (1 << BI_SWIZZLE_B1111) | (1 << BI_SWIZZLE_B2222) | - (1 << BI_SWIZZLE_B3333); + swizzles |= (1 << BI_SWIZZLE_B0123) | (1 << BI_SWIZZLE_B3210) | + (1 << BI_SWIZZLE_B0101) | (1 << BI_SWIZZLE_B2323) | + (1 << BI_SWIZZLE_B0000) | (1 << BI_SWIZZLE_B1111) | + (1 << BI_SWIZZLE_B2222) | (1 << BI_SWIZZLE_B3333) | + (1 << BI_SWIZZLE_B2301) | (1 << BI_SWIZZLE_B1032) | + (1 << BI_SWIZZLE_B0011) | (1 << BI_SWIZZLE_B2233); else if (info.size == VA_SIZE_16) swizzles |= (1 << BI_SWIZZLE_H00) | (1 << BI_SWIZZLE_H10) | (1 << BI_SWIZZLE_H01) | (1 << BI_SWIZZLE_H11) |