mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 08:10:09 +01:00
radv: Lower 8bit isub_sat/usub_sat.
Signed-off-by: Georg Lehmann <dadschoorse@gmail.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13895>
This commit is contained in:
parent
4e6667ea87
commit
55735ed728
1 changed files with 2 additions and 0 deletions
|
|
@ -4008,9 +4008,11 @@ lower_bit_size_callback(const nir_instr *instr, void *_)
|
|||
case nir_op_ushr:
|
||||
case nir_op_ishl:
|
||||
case nir_op_uadd_sat:
|
||||
case nir_op_usub_sat:
|
||||
return (bit_size == 8 || !(chip >= GFX8 && nir_dest_is_divergent(alu->dest.dest))) ? 32
|
||||
: 0;
|
||||
case nir_op_iadd_sat:
|
||||
case nir_op_isub_sat:
|
||||
return bit_size == 8 || !nir_dest_is_divergent(alu->dest.dest) ? 32 : 0;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue