mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
libs/vkd3d-shader: Adjust barrier emission.
Aligns with glsang changes which are based on Khronos recommendations.8297936dd6
838d7afc61
2505057af8
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9075722128
commit
daebeb3e11
@ -5393,7 +5393,9 @@ static void vkd3d_dxbc_compiler_emit_sync(struct vkd3d_dxbc_compiler *compiler,
|
||||
unsigned int flags = instruction->flags;
|
||||
SpvScope execution_scope = SpvScopeMax;
|
||||
SpvScope memory_scope = SpvScopeDevice;
|
||||
unsigned int memory_semantics = 0;
|
||||
unsigned int memory_semantics;
|
||||
|
||||
memory_semantics = SpvMemorySemanticsAcquireReleaseMask;
|
||||
|
||||
if (flags & VKD3DSSF_GROUP_SHARED_MEMORY)
|
||||
{
|
||||
@ -5413,8 +5415,7 @@ static void vkd3d_dxbc_compiler_emit_sync(struct vkd3d_dxbc_compiler *compiler,
|
||||
FIXME("Unhandled sync flags %#x.\n", flags);
|
||||
memory_scope = SpvScopeDevice;
|
||||
execution_scope = SpvScopeWorkgroup;
|
||||
memory_semantics |= SpvMemorySemanticsSequentiallyConsistentMask
|
||||
| SpvMemorySemanticsUniformMemoryMask
|
||||
memory_semantics |= SpvMemorySemanticsUniformMemoryMask
|
||||
| SpvMemorySemanticsSubgroupMemoryMask
|
||||
| SpvMemorySemanticsWorkgroupMemoryMask
|
||||
| SpvMemorySemanticsCrossWorkgroupMemoryMask
|
||||
|
Loading…
x
Reference in New Issue
Block a user