pan/bi: Stop lowering swizzles on mkvec and swz

The new lowering can handle all the swizzle cases and is generally
better at it than swizzle lowering.

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-29 02:10:52 -04:00 committed by Marge Bot
parent ed83d46d4e
commit b9e33c7897

View file

@ -224,6 +224,13 @@ void
bi_lower_swizzle(bi_context *ctx)
{
bi_foreach_instr_global_safe(ctx, ins) {
/* bi_lower_mkvec_swz takes care of these and can handle any swizzle */
if (ins->op == BI_OPCODE_MKVEC_V2I16 ||
ins->op == BI_OPCODE_MKVEC_V4I8 ||
ins->op == BI_OPCODE_SWZ_V2I16 ||
ins->op == BI_OPCODE_SWZ_V4I8)
continue;
bi_foreach_src(ins, s) {
if (bi_is_null(ins->src[s]))
continue;