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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user