From 63d777087054712b6586653d8b8f7935a6960dc6 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Tue, 25 Sep 2018 19:05:41 +0200 Subject: [PATCH] [dxvk] Flush queued barriers when binding any frame buffer We need to flush when starting meta render passes as well. --- src/dxvk/dxvk_context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index 512fc59ac..e4dbfb8d8 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -1885,8 +1885,6 @@ namespace dxvk { m_flags.set(DxvkContextFlag::GpRenderPassBound); m_flags.clr(DxvkContextFlag::GpClearRenderTargets); - m_barriers.recordCommands(m_cmd); - this->renderPassBindFramebuffer( m_state.om.framebuffer, m_state.om.renderPassOps, @@ -1941,6 +1939,8 @@ namespace dxvk { info.clearValueCount = clearValueCount; info.pClearValues = clearValues; + m_barriers.recordCommands(m_cmd); + m_cmd->cmdBeginRenderPass(&info, VK_SUBPASS_CONTENTS_INLINE);