pan/bi: Vectorize 8-bit ops up to v4i8
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

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-04-01 22:20:21 -04:00 committed by Marge Bot
parent 15d5675e8e
commit 0d5cae97b7

View file

@ -166,19 +166,8 @@ bi_vectorize_filter(const nir_instr *instr, const void *data)
: alu->def.bit_size;
if (bit_size == 1)
return 0;
else if (bit_size == 8)
switch (alu->op) {
case nir_op_imul:
case nir_op_i2i8:
case nir_op_u2u8:
return 4;
default:
return 2;
}
else if (bit_size == 16)
return 2;
else
return 1;
return MAX2(1, 32 / bit_size);
}
static bool