pan/bi: Vectorize more conversions
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Reviewed-by: Christoph Pillmayer <christoph.pillmayer@arm.com>
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Reviewed-by: Lorenzo Rossi <lorenzo.rossi@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40769>
This commit is contained in:
Faith Ekstrand 2026-04-02 02:34:31 -04:00
parent 37dcfcc6d0
commit 432a298f67

View file

@ -133,12 +133,6 @@ bi_vectorize_filter(const nir_instr *instr, const void *data)
case nir_op_ishl:
case nir_op_ishr:
case nir_op_ushr:
case nir_op_b2f16:
case nir_op_f2i16:
case nir_op_f2u16:
case nir_op_f2i8:
case nir_op_f2u8:
case nir_op_f2fmp:
case nir_op_extract_u16:
case nir_op_extract_i16:
case nir_op_insert_u16:
@ -159,9 +153,9 @@ bi_vectorize_filter(const nir_instr *instr, const void *data)
break;
}
const uint8_t bit_size = nir_alu_instr_is_comparison(alu)
? nir_src_bit_size(alu->src[0].src)
: alu->def.bit_size;
const uint8_t bit_size =
MAX2(alu->def.bit_size, nir_src_bit_size(alu->src[0].src));
if (bit_size == 1)
return 0;
else