mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
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:
parent
e18e857292
commit
d2612bb424
1 changed files with 11 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue