1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[dxvk] Use new barrier helpers in copyBuffer

This commit is contained in:
Philip Rebohle 2024-10-12 01:13:40 +02:00 committed by Philip Rebohle
parent 6ef6cb3b45
commit 3ecca3d171

View File

@ -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