mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
pan/bi: Vectorize 8-bit ops up to v4i8
Reviewed-by: Lorenzo Rossi <lorenzo.rossi@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40720>
This commit is contained in:
parent
15d5675e8e
commit
0d5cae97b7
1 changed files with 1 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue