diff --git a/src/microsoft/compiler/nir_to_dxil.c b/src/microsoft/compiler/nir_to_dxil.c index 5b4b6c91f41..3eb4a595361 100644 --- a/src/microsoft/compiler/nir_to_dxil.c +++ b/src/microsoft/compiler/nir_to_dxil.c @@ -2501,11 +2501,7 @@ emit_barrier_impl(struct ntd_context *ctx, nir_variable_mode modes, nir_scope ex if (execution_scope == NIR_SCOPE_WORKGROUP) flags |= DXIL_BARRIER_MODE_SYNC_THREAD_GROUP; - /* Currently vtn uses uniform to indicate image memory, which DXIL considers global */ - if (modes & nir_var_uniform) - modes |= nir_var_mem_global; - - if (modes & (nir_var_mem_ssbo | nir_var_mem_global)) { + if (modes & (nir_var_mem_ssbo | nir_var_mem_global | nir_var_image)) { if (mem_scope > NIR_SCOPE_WORKGROUP) flags |= DXIL_BARRIER_MODE_UAV_FENCE_GLOBAL; else