From 03a716e3087148569c3ab80a9c142fc9b0525370 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sat, 12 Oct 2024 01:23:15 +0200 Subject: [PATCH] [dxvk] Use new barrier helpers in emit*Barrier --- src/dxvk/dxvk_context.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index d850b711..63b23a86 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -1184,7 +1184,8 @@ namespace dxvk { VkAccessFlags dstAccess) { this->spillRenderPass(true); - m_execBarriers.accessBuffer(resource->getSliceHandle(), + accessBuffer(DxvkCmdBuffer::ExecBuffer, + *resource, 0, resource->info().size, srcStages, srcAccess, dstStages, dstAccess); m_cmd->trackResource(resource); @@ -1202,11 +1203,10 @@ namespace dxvk { this->spillRenderPass(true); this->prepareImage(resource, resource->getAvailableSubresources()); - if (m_execBarriers.isImageDirty(resource, resource->getAvailableSubresources(), DxvkAccess::Write)) - m_execBarriers.recordCommands(m_cmd); + flushPendingAccesses(*resource, resource->getAvailableSubresources(), DxvkAccess::Write); - m_execBarriers.accessImage( - resource, resource->getAvailableSubresources(), + accessImage(DxvkCmdBuffer::ExecBuffer, + *resource, resource->getAvailableSubresources(), srcLayout, srcStages, srcAccess, dstLayout, dstStages, dstAccess);