mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[dxbc] Only use workgroup scope in compute shaders
Turns out that global barriers can be used in graphics shaders.
This commit is contained in:
parent
0502a0464f
commit
05f36fd97b
1 changed files with 5 additions and 1 deletions
|
@ -2593,7 +2593,11 @@ namespace dxvk {
|
|||
}
|
||||
|
||||
if (flags.test(DxbcSyncFlag::UavMemoryGlobal)) {
|
||||
memoryScope = m_hasGloballyCoherentUav ? spv::ScopeQueueFamily : spv::ScopeWorkgroup;
|
||||
memoryScope = spv::ScopeQueueFamily;
|
||||
|
||||
if (m_programInfo.type() == DxbcProgramType::ComputeShader && !m_hasGloballyCoherentUav)
|
||||
memoryScope = spv::ScopeWorkgroup;
|
||||
|
||||
memorySemantics |= spv::MemorySemanticsImageMemoryMask
|
||||
| spv::MemorySemanticsUniformMemoryMask
|
||||
| spv::MemorySemanticsAcquireReleaseMask
|
||||
|
|
Loading…
Add table
Reference in a new issue