nir/schedule: add write dep also for shared_atomic

Otherwise it might change the order between a load_shared and a
shared_atomic on the same location.

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29918>
This commit is contained in:
Karol Herbst 2024-06-26 18:01:44 +02:00 committed by Marge Bot
parent 65298586b8
commit 3482ea599b

View file

@ -392,6 +392,8 @@ nir_schedule_intrinsic_deps(nir_deps_state *state,
add_read_dep(state, state->store_shared, n);
break;
case nir_intrinsic_shared_atomic:
case nir_intrinsic_shared_atomic_swap:
case nir_intrinsic_store_shared:
case nir_intrinsic_store_shared2_amd:
add_write_dep(state, &state->store_shared, n);