radv: lower 8/16-bit uadd_carry/usub_borrow

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 6fc4a76057)
This commit is contained in:
Rhys Perry 2022-11-02 16:45:27 +00:00 committed by Dylan Baker
parent 32c51fbfa0
commit c061e1b46d
2 changed files with 3 additions and 1 deletions

View file

@ -1219,7 +1219,7 @@
"description": "radv: lower 8/16-bit uadd_carry/usub_borrow", "description": "radv: lower 8/16-bit uadd_carry/usub_borrow",
"nominated": true, "nominated": true,
"nomination_type": 0, "nomination_type": 0,
"resolution": 0, "resolution": 1,
"main_sha": null, "main_sha": null,
"because_sha": null "because_sha": null
}, },

View file

@ -3957,6 +3957,8 @@ lower_bit_size_callback(const nir_instr *instr, void *_)
case nir_op_bitfield_select: case nir_op_bitfield_select:
case nir_op_imul_high: case nir_op_imul_high:
case nir_op_umul_high: case nir_op_umul_high:
case nir_op_uadd_carry:
case nir_op_usub_borrow:
return 32; return 32;
case nir_op_iabs: case nir_op_iabs:
case nir_op_imax: case nir_op_imax: