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

[dxvk] Use new barrier helper in clearBuffer

This commit is contained in:
Philip Rebohle 2024-10-11 23:14:31 +02:00 committed by Philip Rebohle
parent b771bef837
commit 6e6ee35587

View File

@ -250,15 +250,10 @@ namespace dxvk {
&value);
}
auto& barriers = replaceBuffer
? m_initBarriers
: m_execBarriers;
barriers.accessBuffer(bufferSlice,
VK_PIPELINE_STAGE_TRANSFER_BIT,
VK_ACCESS_TRANSFER_WRITE_BIT,
buffer->info().stages,
buffer->info().access);
accessBuffer(cmdBuffer,
*buffer, offset, length,
VK_PIPELINE_STAGE_2_TRANSFER_BIT,
VK_ACCESS_2_TRANSFER_WRITE_BIT);
m_cmd->trackResource<DxvkAccess::Write>(buffer);
}