mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-16 08:58:30 +02:00
pan/bi: Vectorize comparisons
We've got vectorized comparison instructions going all the way back to Bifrost. We should probably stop splitting them. Reviewed-by: Christoph Pillmayer <christoph.pillmayer@arm.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39725>
This commit is contained in:
parent
918624174b
commit
dceee75f87
1 changed files with 5 additions and 3 deletions
|
|
@ -5587,8 +5587,10 @@ bi_vectorize_filter(const nir_instr *instr, const void *data)
|
|||
break;
|
||||
}
|
||||
|
||||
int dst_bit_size = alu->def.bit_size;
|
||||
if (dst_bit_size == 8)
|
||||
const uint8_t bit_size = nir_alu_instr_is_comparison(alu)
|
||||
? nir_src_bit_size(alu->src[0].src)
|
||||
: alu->def.bit_size;
|
||||
if (bit_size == 8)
|
||||
switch (alu->op) {
|
||||
case nir_op_imul:
|
||||
case nir_op_i2i8:
|
||||
|
|
@ -5597,7 +5599,7 @@ bi_vectorize_filter(const nir_instr *instr, const void *data)
|
|||
default:
|
||||
return 2;
|
||||
}
|
||||
else if (dst_bit_size == 16)
|
||||
else if (bit_size == 16)
|
||||
return 2;
|
||||
else
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue