1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-15 16:29:16 +01:00

[dxvk] Fix clear after late resolve

This commit is contained in:
Philip Rebohle 2025-03-05 17:54:23 +01:00
parent 45ec01a0a1
commit a08579e555

View File

@ -386,7 +386,8 @@ namespace dxvk {
if (m_state.om.framebufferInfo.isFullSize(imageView))
attachmentIndex = m_state.om.framebufferInfo.findAttachment(imageView);
if (attachmentIndex < 0) {
// Need to interrupt the render pass if there are pending resolves
if (attachmentIndex < 0 || m_flags.test(DxvkContextFlag::GpDirtyFramebuffer)) {
// Suspend works here because we'll end up with one of these scenarios:
// 1) The render pass gets ended for good, in which case we emit barriers
// 2) The clear gets folded into render pass ops, so the layout is correct
@ -3957,7 +3958,7 @@ namespace dxvk {
if (attachmentIndex >= 0 && !m_state.om.framebufferInfo.isWritable(attachmentIndex, aspect))
attachmentIndex = -1;
if (attachmentIndex < 0) {
if (attachmentIndex < 0 || m_flags.test(DxvkContextFlag::GpDirtyFramebuffer)) {
this->spillRenderPass(false);
this->prepareImage(imageView->image(), imageView->subresources());