mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[dxvk] Fix uploadBuffer barriers
This commit is contained in:
parent
76244812fb
commit
ad75fb17cd
1 changed files with 1 additions and 16 deletions
|
@ -2530,22 +2530,7 @@ namespace dxvk {
|
||||||
|
|
||||||
m_cmd->cmdCopyBuffer(DxvkCmdBuffer::SdmaBuffer, ©Info);
|
m_cmd->cmdCopyBuffer(DxvkCmdBuffer::SdmaBuffer, ©Info);
|
||||||
|
|
||||||
if (m_device->hasDedicatedTransferQueue()) {
|
accessBufferTransfer(*buffer, VK_PIPELINE_STAGE_2_TRANSFER_BIT, VK_ACCESS_2_TRANSFER_WRITE_BIT);
|
||||||
// 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);
|
|
||||||
}
|
|
||||||
|
|
||||||
m_cmd->track(source, DxvkAccess::Read);
|
m_cmd->track(source, DxvkAccess::Read);
|
||||||
m_cmd->track(buffer, DxvkAccess::Write);
|
m_cmd->track(buffer, DxvkAccess::Write);
|
||||||
|
|
Loading…
Add table
Reference in a new issue