pan/bi: Support more swizzle aliases in the bifrost pack code

Fixes: 82328a5245 ("pan/bi: Generate instruction packer for new IR")
Reviewed-by: Lorenzo Rossi <lorenzo.rossi@collabora.com>
(cherry picked from commit 3fffcf4338)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40979>
This commit is contained in:
Faith Ekstrand 2026-03-30 19:45:01 -04:00 committed by Eric Engestrom
parent 190c65ebae
commit 7cf57ccd9c
2 changed files with 4 additions and 4 deletions

View file

@ -3974,7 +3974,7 @@
"description": "pan/bi: Support more swizzle aliases in the bifrost pack code",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "82328a524519c7b1066837b9a499b37051d55a08",
"notes": null

View file

@ -78,10 +78,10 @@ def pack_modifier(mod, width, default, opts, body, pack_exprs):
# Swizzles need to be packed "specially"
SWIZZLE_BUCKETS = [
set(['h00', 'h0']),
set(['h00', 'h0', 'b0101']),
set(['h01', 'none', 'b0123', 'w0']), # Identity
set(['h10']),
set(['h11', 'h1']),
set(['h10', 'b2301']),
set(['h11', 'h1', 'b2323']),
set(['b0000', 'b00', 'b0']),
set(['b1111', 'b11', 'b1']),
set(['b2222', 'b22', 'b2']),