From f6007e4f1a49cf2620598f518e20856fdba96252 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sat, 2 May 2020 00:03:56 +0200 Subject: [PATCH] [dxvk] Emit graphics barriers upon spilling render pass We actually need to do this now since we no longer set all the access flags in the render pass barrier. --- src/dxvk/dxvk_context.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index 8e7fc9f9..d5cfe155 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -3469,9 +3469,11 @@ namespace dxvk { m_queryManager.endQueries(m_cmd, VK_QUERY_TYPE_OCCLUSION); m_queryManager.endQueries(m_cmd, VK_QUERY_TYPE_PIPELINE_STATISTICS); + this->renderPassUnbindFramebuffer(); + + m_gfxBarriers.recordCommands(m_cmd); m_gfxBarriers.reset(); - this->renderPassUnbindFramebuffer(); this->unbindGraphicsPipeline(); this->commitPredicateUpdates();