radv: lower 8/16-bit uadd_carry/usub_borrow
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 2 Nov 2022 16:45:27 +0000 (16:45 +0000)
committerEric Engestrom <eric@engestrom.ch>
Wed, 23 Nov 2022 19:11:58 +0000 (19:11 +0000)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7615
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19473>
(cherry picked from commit 6fc4a760571443fae71a45076255090518daa900)

.pick_status.json
src/amd/vulkan/radv_pipeline.c

index 772ef6a..e3577ec 100644 (file)
         "description": "radv: lower 8/16-bit uadd_carry/usub_borrow",
         "nominated": true,
         "nomination_type": 0,
-        "resolution": 0,
+        "resolution": 1,
         "main_sha": null,
         "because_sha": null
     },
index fe132c1..8bb6631 100644 (file)
@@ -3106,6 +3106,8 @@ lower_bit_size_callback(const nir_instr *instr, void *_)
       case nir_op_bitfield_select:
       case nir_op_imul_high:
       case nir_op_umul_high:
+      case nir_op_uadd_carry:
+      case nir_op_usub_borrow:
          return 32;
       case nir_op_iabs:
       case nir_op_imax: