From 8718187b2230b40d83824cde47d50ae33bd0cb65 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Wed, 2 Nov 2022 16:45:27 +0000 Subject: [PATCH] radv: lower 8/16-bit uadd_carry/usub_borrow Signed-off-by: Rhys Perry Reviewed-by: Georg Lehmann Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7615 Cc: mesa-stable Part-of: (cherry picked from commit 6fc4a760571443fae71a45076255090518daa900) --- .pick_status.json | 2 +- src/amd/vulkan/radv_pipeline.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index 772ef6a..e3577ec 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -2101,7 +2101,7 @@ "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 }, diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index fe132c1..8bb6631 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -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: -- 2.7.4