mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
pan/bi: v2x16 conversions don't replicate
They swizzle just like anything else. Technically, we could maybe do a
little better than the generic case for these since they only read 8
bits per 16 bits in the destination but the generic case is correct,
even if it isn't optimal.
Fixes: f7d44a46cd ("pan/bi: Optimize replication")
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Reviewed-by: Christoph Pillmayer <christoph.pillmayer@arm.com>
Reviewed-by: Lorenzo Rossi <lorenzo.rossi@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40576>
This commit is contained in:
parent
dbefdb2376
commit
8dc458225b
1 changed files with 0 additions and 10 deletions
|
|
@ -167,16 +167,6 @@ bi_instr_replicates(bi_instr *I, BITSET_WORD *replicates_16)
|
|||
case BI_OPCODE_V2F32_TO_V2F16:
|
||||
return bi_is_value_equiv(I->src[0], I->src[1]);
|
||||
|
||||
case BI_OPCODE_V2F16_TO_V2S16:
|
||||
case BI_OPCODE_V2F16_TO_V2U16:
|
||||
case BI_OPCODE_V2S16_TO_V2F16:
|
||||
case BI_OPCODE_V2S8_TO_V2F16:
|
||||
case BI_OPCODE_V2S8_TO_V2S16:
|
||||
case BI_OPCODE_V2U16_TO_V2F16:
|
||||
case BI_OPCODE_V2U8_TO_V2F16:
|
||||
case BI_OPCODE_V2U8_TO_V2U16:
|
||||
return true;
|
||||
|
||||
/* 16-bit transcendentals are defined to output zero in their
|
||||
* upper half, so they do not replicate
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue