From 088e4024f5969eae5460f65a1795707865fa564d Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 10 Oct 2024 18:12:00 +0200 Subject: [PATCH] [dxvk] Use new layout transition helper in copyBufferToImageFb --- src/dxvk/dxvk_context.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index 28c8164b4..ee4379bc3 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -3056,12 +3056,9 @@ namespace dxvk { ? VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT : VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; - m_execAcquires.accessImage(image, vk::makeSubresourceRange(imageSubresource), - discard ? VK_IMAGE_LAYOUT_UNDEFINED : image->info().layout, - image->info().stages, image->info().access, - imageLayout, stages, access); - - m_execAcquires.recordCommands(m_cmd); + addImageLayoutTransition(*image, vk::makeSubresourceRange(imageSubresource), + imageLayout, stages, access, discard); + flushImageLayoutTransitions(DxvkCmdBuffer::ExecBuffer); // Bind image for rendering VkRenderingAttachmentInfo attachment = { VK_STRUCTURE_TYPE_RENDERING_ATTACHMENT_INFO };