From 0d5cae97b7a9597ca66340d00fb60a87852754fd Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Wed, 1 Apr 2026 22:20:21 -0400 Subject: [PATCH] pan/bi: Vectorize 8-bit ops up to v4i8 Reviewed-by: Lorenzo Rossi Part-of: --- src/panfrost/compiler/bifrost/bifrost_nir.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/panfrost/compiler/bifrost/bifrost_nir.c b/src/panfrost/compiler/bifrost/bifrost_nir.c index 43848659315..d346581530d 100644 --- a/src/panfrost/compiler/bifrost/bifrost_nir.c +++ b/src/panfrost/compiler/bifrost/bifrost_nir.c @@ -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