1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-12 13:08:50 +01:00

[dxvk] Fix load aspect mask in render pass creation

This commit is contained in:
Philip Rebohle 2021-11-05 15:31:31 +01:00
parent 552b29ca0c
commit 1fd037cf29
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -153,9 +153,9 @@ namespace dxvk {
VkImageAspectFlags loadAspects = 0; VkImageAspectFlags loadAspects = 0;
if (ops.depthOps.loadOpD == VK_ATTACHMENT_LOAD_OP_LOAD) 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) 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) if (loadAspects & imageFormatInfo(m_format.depth.format)->aspectMask)
renderAccess |= VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT; renderAccess |= VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT;