From 3ecca3d17157592dd6da73611092d4d652a03995 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sat, 12 Oct 2024 01:13:40 +0200 Subject: [PATCH] [dxvk] Use new barrier helpers in copyBuffer --- src/dxvk/dxvk_context.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index 5f1dcc906..855489925 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -401,9 +401,8 @@ namespace dxvk { if (!replaceBuffer) { this->spillRenderPass(true); - if (m_execBarriers.isBufferDirty(srcSlice, DxvkAccess::Read) - || m_execBarriers.isBufferDirty(dstSlice, DxvkAccess::Write)) - m_execBarriers.recordCommands(m_cmd); + flushPendingAccesses(*srcBuffer, srcOffset, numBytes, DxvkAccess::Read); + flushPendingAccesses(*dstBuffer, dstOffset, numBytes, DxvkAccess::Write); } DxvkCmdBuffer cmdBuffer = replaceBuffer