Module: vkd3d Branch: master Commit: 18e9148f5891085e962ff8c6a8a6ac5957548c0e URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/18e9148f5891085e962ff8c6a8a6ac...
Author: Conor McCarthy cmccarthy@codeweavers.com Date: Wed Aug 16 13:25:35 2023 +1000
vkd3d-shader/spirv: Include Uniform in the memory semantics for UAV barriers.
The UniformMemory semantic applies the constraints to Uniform storage class memory, which matches how UAV variables are declared.
---
libs/vkd3d-shader/spirv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/vkd3d-shader/spirv.c b/libs/vkd3d-shader/spirv.c index e50b35ac..04ef128e 100644 --- a/libs/vkd3d-shader/spirv.c +++ b/libs/vkd3d-shader/spirv.c @@ -9346,7 +9346,7 @@ static void spirv_compiler_emit_sync(struct spirv_compiler *compiler, if (flags & VKD3DSSF_GLOBAL_UAV) { memory_scope = SpvScopeDevice; - memory_semantics |= SpvMemorySemanticsImageMemoryMask; + memory_semantics |= SpvMemorySemanticsUniformMemoryMask | SpvMemorySemanticsImageMemoryMask; flags &= ~VKD3DSSF_GLOBAL_UAV; }