From 1067d2772e6382f0959cec170a3e12a549f02ad9 Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Tue, 7 Apr 2026 02:25:05 -0400 Subject: [PATCH] pan/bi: Add BI_SWIZZLE_NONE Fixes: 82328a524519 ("pan/bi: Generate instruction packer for new IR") Reviewed-by: Christoph Pillmayer Reviewed-by: Lars-Ivar Hesselberg Simonsen Reviewed-by: Lorenzo Rossi (cherry picked from commit ab285efd1b88de188d4f73b3646c90aa2114b3a0) Part-of: --- .pick_status.json | 2 +- src/panfrost/compiler/bifrost/compiler.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index f5200b5fcc7..cb0e74e453a 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -2304,7 +2304,7 @@ "description": "pan/bi: Add BI_SWIZZLE_NONE", "nominated": true, "nomination_type": 2, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "82328a524519c7b1066837b9a499b37051d55a08", "notes": null diff --git a/src/panfrost/compiler/bifrost/compiler.h b/src/panfrost/compiler/bifrost/compiler.h index c5e7a753f98..7680ab454d5 100644 --- a/src/panfrost/compiler/bifrost/compiler.h +++ b/src/panfrost/compiler/bifrost/compiler.h @@ -35,6 +35,9 @@ enum bi_swizzle { BI_SWIZZLE_H10 = 2, BI_SWIZZLE_H11 = 3, + /* Identity swizzle */ + BI_SWIZZLE_NONE = BI_SWIZZLE_H01, + /* 8-bit swizzle equivalents */ BI_SWIZZLE_B0101 = BI_SWIZZLE_H00, BI_SWIZZLE_B0123 = BI_SWIZZLE_H01,