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>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40720>
This commit is contained in:
Faith Ekstrand 2026-03-30 19:45:01 -04:00 committed by Marge Bot
parent f015600c89
commit 3fffcf4338

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']),