From b579b0304754a4336d166a88e1bc01d881625fb8 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sat, 6 Mar 2021 01:31:55 +0100 Subject: [PATCH] [dxvk] Spill render pass when clearing overlapping views Since we're flushing all pending clears, we need to make sure that all images are in the correct layout. Found by inspection. --- src/dxvk/dxvk_context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index 67e39e009..65c9b6a43 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -1869,7 +1869,7 @@ namespace dxvk { return; } else if (entry.imageView->checkSubresourceOverlap(imageView)) { - this->flushClears(false); + this->spillRenderPass(false); break; } } @@ -1887,7 +1887,7 @@ namespace dxvk { entry.clearAspects &= ~discardAspects; return; } else if (entry.imageView->checkSubresourceOverlap(imageView)) { - this->flushClears(false); + this->spillRenderPass(false); break; } }