From 3caf5269f2d4cd2b7adcf0d202d2e6cfd8974aa0 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Tue, 12 Jan 2021 13:25:00 +0100 Subject: [PATCH] [dxvk] Add regular barrier after graphics queue depth image upload We still need a barrier for the layout transition. --- src/dxvk/dxvk_context.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index 31762c6d..b78ad30d 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -2156,6 +2156,15 @@ namespace dxvk { image->info().layout, image->info().stages, 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(image);