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.
This commit is contained in:
Conor McCarthy 2023-08-16 13:25:35 +10:00 committed by Alexandre Julliard
parent adfbecef3c
commit 18e9148f58
Notes: Alexandre Julliard 2024-01-25 23:07:09 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/599

View File

@ -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;
}