radv: Lower 8bit isub_sat/usub_sat.
authorGeorg Lehmann <dadschoorse@gmail.com>
Sat, 20 Nov 2021 13:33:20 +0000 (14:33 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 1 Jun 2022 17:09:25 +0000 (17:09 +0000)
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>

src/amd/vulkan/radv_pipeline.c

index 5cf91b0..996a72a 100644 (file)
@@ -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: