diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index 91a23710f..f67d5e734 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -1538,12 +1538,13 @@ namespace dxvk { for (uint32_t i = 0; i < m_state.om.framebufferInfo.numAttachments() && !found; i++) found = m_state.om.framebufferInfo.getAttachment(i).view->image() == image; - if (found) + if (found) { m_flags.set(DxvkContextFlag::GpDirtyFramebuffer); - spillRenderPass(true); + spillRenderPass(true); - prepareImage(image, image->getAvailableSubresources()); + prepareImage(image, image->getAvailableSubresources()); + } } // If the image has any pending layout transitions, flush them accordingly. diff --git a/src/dxvk/dxvk_context.h b/src/dxvk/dxvk_context.h index cbeb51080..d5cffcc1e 100644 --- a/src/dxvk/dxvk_context.h +++ b/src/dxvk/dxvk_context.h @@ -1601,6 +1601,14 @@ namespace dxvk { VkResolveModeFlagBits depthMode, VkResolveModeFlagBits stencilMode); + bool resolveImageInline( + const Rc& dstImage, + const Rc& srcImage, + const VkImageResolve& region, + VkFormat format, + VkResolveModeFlagBits depthMode, + VkResolveModeFlagBits stencilMode); + void uploadImageFb( const Rc& image, const Rc& source,