1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-29 10:24:10 +01:00

[dxvk] Fix IgnoreWriteAfterWritw check for indirect dispatches

This commit is contained in:
Philip Rebohle 2021-09-10 02:50:52 +02:00
parent 2f01df82d2
commit 5f9d5f1053
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -4937,8 +4937,11 @@ namespace dxvk {
continue;
// Skip write-after-write barriers if explicitly requested
VkPipelineStageFlags stageMask = VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT
| VK_PIPELINE_STAGE_DRAW_INDIRECT_BIT;
if ((m_barrierControl.test(DxvkBarrierControl::IgnoreWriteAfterWrite))
&& (m_execBarriers.getSrcStages() == VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT)
&& (!(m_execBarriers.getSrcStages() & ~stageMask))
&& ((srcAccess | dstAccess) == DxvkAccess::Write))
continue;