mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
nvk: Fix depth/stencil render pass clears
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
parent
78009a1a9a
commit
9deab8f139
1 changed files with 3 additions and 3 deletions
|
|
@ -556,17 +556,17 @@ nvk_CmdBeginRendering(VkCommandBuffer commandBuffer,
|
|||
clear_att[clear_count] = (VkClearAttachment) { .aspectMask = 0, };
|
||||
if (pRenderingInfo->pDepthAttachment != NULL &&
|
||||
pRenderingInfo->pDepthAttachment->imageView != VK_NULL_HANDLE &&
|
||||
pRenderingInfo->pDepthAttachment->loadOp != VK_ATTACHMENT_LOAD_OP_CLEAR) {
|
||||
pRenderingInfo->pDepthAttachment->loadOp == VK_ATTACHMENT_LOAD_OP_CLEAR) {
|
||||
clear_att[clear_count].aspectMask |= VK_IMAGE_ASPECT_DEPTH_BIT;
|
||||
clear_att[clear_count].clearValue.depthStencil.depth =
|
||||
pRenderingInfo->pDepthAttachment->clearValue.depthStencil.depth;
|
||||
}
|
||||
if (pRenderingInfo->pStencilAttachment != NULL &&
|
||||
pRenderingInfo->pStencilAttachment->imageView != VK_NULL_HANDLE &&
|
||||
pRenderingInfo->pStencilAttachment->loadOp != VK_ATTACHMENT_LOAD_OP_CLEAR) {
|
||||
pRenderingInfo->pStencilAttachment->loadOp == VK_ATTACHMENT_LOAD_OP_CLEAR) {
|
||||
clear_att[clear_count].aspectMask |= VK_IMAGE_ASPECT_STENCIL_BIT;
|
||||
clear_att[clear_count].clearValue.depthStencil.stencil =
|
||||
pRenderingInfo->pStencilAttachment->clearValue.depthStencil.depth;
|
||||
pRenderingInfo->pStencilAttachment->clearValue.depthStencil.stencil;
|
||||
}
|
||||
if (clear_att[clear_count].aspectMask != 0)
|
||||
clear_count++;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue