mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
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:
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
@ -9346,7 +9346,7 @@ static void spirv_compiler_emit_sync(struct spirv_compiler *compiler,
|
|||||||
if (flags & VKD3DSSF_GLOBAL_UAV)
|
if (flags & VKD3DSSF_GLOBAL_UAV)
|
||||||
{
|
{
|
||||||
memory_scope = SpvScopeDevice;
|
memory_scope = SpvScopeDevice;
|
||||||
memory_semantics |= SpvMemorySemanticsImageMemoryMask;
|
memory_semantics |= SpvMemorySemanticsUniformMemoryMask | SpvMemorySemanticsImageMemoryMask;
|
||||||
flags &= ~VKD3DSSF_GLOBAL_UAV;
|
flags &= ~VKD3DSSF_GLOBAL_UAV;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user