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

[dxvk] Don't stall SDMA command buffer for image initialization

This commit is contained in:
Philip Rebohle 2020-05-02 20:20:56 +02:00
parent 4fafeb21d0
commit 7239066c5c
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -2090,8 +2090,7 @@ namespace dxvk {
// Discard previous subresource contents
m_sdmaAcquires.accessImage(image,
vk::makeSubresourceRange(subresources),
VK_IMAGE_LAYOUT_UNDEFINED,
VK_PIPELINE_STAGE_TRANSFER_BIT, 0,
VK_IMAGE_LAYOUT_UNDEFINED, 0, 0,
image->pickLayout(VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL),
VK_PIPELINE_STAGE_TRANSFER_BIT,
VK_ACCESS_TRANSFER_WRITE_BIT);