1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 14:52:11 +01:00

[dxvk] Use new layout transition helper in copyBufferToImageFb

This commit is contained in:
Philip Rebohle 2024-10-10 18:12:00 +02:00 committed by Philip Rebohle
parent ebd067f098
commit 088e4024f5

View File

@ -3056,12 +3056,9 @@ namespace dxvk {
? VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT ? VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT
: VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; : VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT;
m_execAcquires.accessImage(image, vk::makeSubresourceRange(imageSubresource), addImageLayoutTransition(*image, vk::makeSubresourceRange(imageSubresource),
discard ? VK_IMAGE_LAYOUT_UNDEFINED : image->info().layout, imageLayout, stages, access, discard);
image->info().stages, image->info().access, flushImageLayoutTransitions(DxvkCmdBuffer::ExecBuffer);
imageLayout, stages, access);
m_execAcquires.recordCommands(m_cmd);
// Bind image for rendering // Bind image for rendering
VkRenderingAttachmentInfo attachment = { VK_STRUCTURE_TYPE_RENDERING_ATTACHMENT_INFO }; VkRenderingAttachmentInfo attachment = { VK_STRUCTURE_TYPE_RENDERING_ATTACHMENT_INFO };