From ddf6c31b8edc4bc229002035c92dcce290ad83da Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Mon, 30 Mar 2026 20:59:46 -0400 Subject: [PATCH] pan/bi: Delete a few instruction encodings The non-trivial non-replicate swizzles on IADD.v4x8 and ISUB.v4x8 are either documented wrong or broken in hardware. Instead of swizzling b0101 and b2323, they swizzle b0011 and b2233 on G52. This is either a hardware bug or an issue with documentation. In either case, it's probably best not to trust it. Those swizzles aren't all that useful anyway. We also weren't using any of them before (or they'd have broken) so this isn't a performance regression. Cc: mesa-stable Reviewed-by: Lorenzo Rossi (cherry picked from commit 538b5c411eab0c03c298412f74594d33a0396a9a) Part-of: --- .pick_status.json | 2 +- src/panfrost/compiler/bifrost/bifrost/ISA.xml | 36 +++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index ca68d699825..c208c218835 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -3964,7 +3964,7 @@ "description": "pan/bi: Delete a few instruction encodings", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null, "notes": null diff --git a/src/panfrost/compiler/bifrost/bifrost/ISA.xml b/src/panfrost/compiler/bifrost/bifrost/ISA.xml index a4ecdaf5063..1ef9b557428 100644 --- a/src/panfrost/compiler/bifrost/bifrost/ISA.xml +++ b/src/panfrost/compiler/bifrost/bifrost/ISA.xml @@ -5350,8 +5350,15 @@ b1111 b2222 b3333 + @@ -5376,6 +5383,7 @@ + @@ -5404,8 +5413,15 @@ b1111 b2222 b3333 + @@ -5438,6 +5454,7 @@ + @@ -6075,8 +6093,15 @@ b1111 b2222 b3333 + @@ -6101,6 +6126,7 @@ + @@ -6129,8 +6156,15 @@ b1111 b2222 b3333 + @@ -6163,6 +6197,7 @@ +