mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-04-05 16:40:17 +02:00
[dxvk] Only end render pass in invalidateImage if currently bound
Not really needed otherwise.
This commit is contained in:
parent
0434b23167
commit
a413eb0843
@ -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.
|
||||
|
@ -1601,6 +1601,14 @@ namespace dxvk {
|
||||
VkResolveModeFlagBits depthMode,
|
||||
VkResolveModeFlagBits stencilMode);
|
||||
|
||||
bool resolveImageInline(
|
||||
const Rc<DxvkImage>& dstImage,
|
||||
const Rc<DxvkImage>& srcImage,
|
||||
const VkImageResolve& region,
|
||||
VkFormat format,
|
||||
VkResolveModeFlagBits depthMode,
|
||||
VkResolveModeFlagBits stencilMode);
|
||||
|
||||
void uploadImageFb(
|
||||
const Rc<DxvkImage>& image,
|
||||
const Rc<DxvkBuffer>& source,
|
||||
|
Loading…
x
Reference in New Issue
Block a user