From 1fd037cf29ea3ec2e9eebd383baf7ffa943cfb58 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Fri, 5 Nov 2021 15:31:31 +0100 Subject: [PATCH] [dxvk] Fix load aspect mask in render pass creation --- src/dxvk/dxvk_renderpass.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dxvk/dxvk_renderpass.cpp b/src/dxvk/dxvk_renderpass.cpp index 0dae186e..baa5a3cb 100644 --- a/src/dxvk/dxvk_renderpass.cpp +++ b/src/dxvk/dxvk_renderpass.cpp @@ -153,9 +153,9 @@ namespace dxvk { VkImageAspectFlags loadAspects = 0; if (ops.depthOps.loadOpD == VK_ATTACHMENT_LOAD_OP_LOAD) - loadAspects = VK_IMAGE_ASPECT_DEPTH_BIT; + loadAspects |= VK_IMAGE_ASPECT_DEPTH_BIT; if (ops.depthOps.loadOpS == VK_ATTACHMENT_LOAD_OP_LOAD) - loadAspects = VK_IMAGE_ASPECT_STENCIL_BIT; + loadAspects |= VK_IMAGE_ASPECT_STENCIL_BIT; if (loadAspects & imageFormatInfo(m_format.depth.format)->aspectMask) renderAccess |= VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT;