From 79ec00f7bdcc83edd0f109f13c0621dfd7368c2c Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sat, 1 Mar 2025 13:45:39 +0100 Subject: [PATCH] [dxvk] Fix uploadBuffer barriers --- src/dxvk/dxvk_context.cpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index 6df046077..ad4108fec 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -2530,22 +2530,7 @@ namespace dxvk { m_cmd->cmdCopyBuffer(DxvkCmdBuffer::SdmaBuffer, ©Info); - if (m_device->hasDedicatedTransferQueue()) { - // Buffers use SHARING_MODE_CONCURRENT, so no explicit queue - // family ownership transfer is required. Access is serialized - // via a semaphore. - accessMemory(DxvkCmdBuffer::SdmaBuffer, - VK_PIPELINE_STAGE_2_TRANSFER_BIT, VK_ACCESS_2_TRANSFER_WRITE_BIT, - VK_PIPELINE_STAGE_2_NONE, VK_ACCESS_2_NONE); - - accessMemory(DxvkCmdBuffer::InitBuffer, - VK_PIPELINE_STAGE_2_NONE, VK_ACCESS_2_NONE, - buffer->info().stages, buffer->info().access); - } else { - accessMemory(DxvkCmdBuffer::SdmaBuffer, - VK_PIPELINE_STAGE_2_TRANSFER_BIT, VK_ACCESS_2_TRANSFER_WRITE_BIT, - buffer->info().stages, buffer->info().access); - } + accessBufferTransfer(*buffer, VK_PIPELINE_STAGE_2_TRANSFER_BIT, VK_ACCESS_2_TRANSFER_WRITE_BIT); m_cmd->track(source, DxvkAccess::Read); m_cmd->track(buffer, DxvkAccess::Write);