mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
spirv2dxil: Replace UAV_FENCE_THREAD_GROUP usage with UAV_FENCE_GLOBAL.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41425>
This commit is contained in:
parent
c540405ca3
commit
ce4e54f7a0
1 changed files with 4 additions and 1 deletions
|
|
@ -3091,7 +3091,10 @@ emit_barrier_impl(struct ntd_context *ctx, nir_variable_mode modes, mesa_scope e
|
|||
(mem_scope > SCOPE_WORKGROUP || !is_compute)) {
|
||||
flags |= DXIL_BARRIER_MODE_UAV_FENCE_GLOBAL;
|
||||
} else {
|
||||
flags |= DXIL_BARRIER_MODE_UAV_FENCE_THREAD_GROUP;
|
||||
/* This used to be DXIL_BARRIER_MODE_UAV_FENCE_THREAD_GROUP. However, since
|
||||
* it's inaccessible in HLSL, certain drivers (eg. for Intel Iris Xe Graphics)
|
||||
* do not seem robust against it, and appear to ignore the barrier instruction. */
|
||||
flags |= DXIL_BARRIER_MODE_UAV_FENCE_GLOBAL;
|
||||
}
|
||||
|
||||
if ((modes & nir_var_mem_shared) && is_compute)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue