1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-14 22:29:15 +01:00

[dxvk] Add regular barrier after graphics queue depth image upload

We still need a barrier for the layout transition.
This commit is contained in:
Philip Rebohle 2021-01-12 13:25:00 +01:00
parent b19293430a
commit 3caf5269f2
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -2156,6 +2156,15 @@ namespace dxvk {
image->info().layout, image->info().layout,
image->info().stages, image->info().stages,
image->info().access); image->info().access);
} else {
barriers->accessImage(image,
vk::makeSubresourceRange(subresources),
image->pickLayout(VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL),
VK_PIPELINE_STAGE_TRANSFER_BIT,
VK_ACCESS_TRANSFER_WRITE_BIT,
image->info().layout,
image->info().stages,
image->info().access);
} }
m_cmd->trackResource<DxvkAccess::Write>(image); m_cmd->trackResource<DxvkAccess::Write>(image);