From 1fb8b5ec69f90e8f55e8b7c669e4257044466dfb Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 9 May 2019 09:09:11 +0200 Subject: [PATCH] [dxvk] Begin render pass in clearImageViewFb if necessary Otherwise, we might end up calling vkCmdClearAttachments outside a render pass instance, which is invalid. --- src/dxvk/dxvk_context.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index 9f9a4c251..328bf5609 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -2303,6 +2303,10 @@ namespace dxvk { imageView->imageInfo().layout, imageView->imageInfo().stages, imageView->imageInfo().access); + } else { + // Make sure the render pass is active so + // that we can actually perform the clear + this->startRenderPass(); } // Perform the actual clear operation