1
0
mirror of https://github.com/EduApps-CDG/OpenDX synced 2024-12-30 09:45:37 +01:00

[dxvk] Fix acquire barrier in updateImage

This commit is contained in:
Philip Rebohle 2020-05-02 18:52:35 +02:00
parent 8921be81bd
commit b370d13743
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -1966,12 +1966,15 @@ namespace dxvk {
if (image->isFullSubresource(subresources, imageExtent))
imageLayoutInitial = VK_IMAGE_LAYOUT_UNDEFINED;
m_execAcquires.accessImage(
image, subresourceRange,
imageLayoutInitial, 0, 0,
imageLayoutTransfer,
VK_PIPELINE_STAGE_TRANSFER_BIT,
VK_ACCESS_TRANSFER_WRITE_BIT);
if (imageLayoutTransfer != image->info().layout) {
m_execAcquires.accessImage(
image, subresourceRange,
imageLayoutInitial,
VK_PIPELINE_STAGE_TRANSFER_BIT, 0,
imageLayoutTransfer,
VK_PIPELINE_STAGE_TRANSFER_BIT,
VK_ACCESS_TRANSFER_WRITE_BIT);
}
m_execAcquires.recordCommands(m_cmd);