mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
ac/llvm: fix isub image atomic
Fixes red_dead_redemption_2_VK/340c6c75f15678ff Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41261>
This commit is contained in:
parent
38cf44a733
commit
24ab54fe3f
1 changed files with 3 additions and 0 deletions
|
|
@ -2348,6 +2348,9 @@ static LLVMValueRef visit_image_atomic(struct ac_nir_context *ctx, const nir_int
|
|||
case nir_atomic_op_iadd:
|
||||
atomic_subop = ac_atomic_add;
|
||||
break;
|
||||
case nir_atomic_op_isub:
|
||||
atomic_subop = ac_atomic_sub;
|
||||
break;
|
||||
case nir_atomic_op_imin:
|
||||
atomic_subop = ac_atomic_smin;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue