[dxvk] Always use init barrier set for initial transition in initImage

This allows us to batch image initialization barriers better.
This commit is contained in:
Philip Rebohle 2022-08-05 12:46:41 +02:00
parent 0f94971193
commit 211ad0efcc
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 1 additions and 2 deletions

View File

@ -1457,13 +1457,12 @@ namespace dxvk {
} else {
VkImageLayout clearLayout = image->pickLayout(VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL);
m_execAcquires.accessImage(image, subresources,
m_initBarriers.accessImage(image, subresources,
initialLayout,
VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, 0,
clearLayout,
VK_PIPELINE_STAGE_TRANSFER_BIT,
VK_ACCESS_TRANSFER_WRITE_BIT);
m_execAcquires.recordCommands(m_cmd);
auto formatInfo = image->formatInfo();