radv: fix resume/suspend render pass with depth/stencil attachment

Shouldn't clear on resume.

This fixes dEQP-VK.dynamic_rendering.*resuming.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14113>
This commit is contained in:
Samuel Pitoiset 2021-12-07 17:54:56 +01:00 committed by Marge Bot
parent e18e857292
commit d2612bb424

View file

@ -7551,6 +7551,17 @@ radv_CmdBeginRenderingKHR(VkCommandBuffer commandBuffer, const VkRenderingInfoKH
att->stencilLoadOp = VK_ATTACHMENT_LOAD_OP_LOAD;
att->stencilStoreOp = VK_ATTACHMENT_STORE_OP_STORE;
}
if (pRenderingInfo->flags & VK_RENDERING_RESUMING_BIT_KHR) {
att->loadOp = VK_ATTACHMENT_LOAD_OP_LOAD;
att->stencilLoadOp = VK_ATTACHMENT_LOAD_OP_LOAD;
}
if (pRenderingInfo->flags & VK_RENDERING_SUSPENDING_BIT_KHR) {
att->storeOp = VK_ATTACHMENT_STORE_OP_STORE;
att->stencilStoreOp = VK_ATTACHMENT_STORE_OP_STORE;
}
att->initialLayout = common_info->imageLayout;
att->finalLayout = common_info->imageLayout;