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:
parent
b19293430a
commit
3caf5269f2
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user