dzn: correct assert-condition
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 13 Jun 2022 14:10:30 +0000 (16:10 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 14 Jun 2022 10:35:59 +0000 (10:35 +0000)
This logic accidentally got flipped in a refactoring. Let's correct it!

Fixes: e293691a991 ("dzn: Get rid of the render pass logic")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16997>

src/microsoft/vulkan/dzn_cmd_buffer.c

index 22d3ae3..8971f0c 100644 (file)
@@ -3260,7 +3260,7 @@ dzn_CmdClearAttachments(VkCommandBuffer commandBuffer,
 
          if (cmdbuf->state.render.attachments.stencil.iview &&
              (pAttachments[i].aspectMask & VK_IMAGE_ASPECT_STENCIL_BIT)) {
-            assert(view || view == cmdbuf->state.render.attachments.depth.iview);
+            assert(!view || view == cmdbuf->state.render.attachments.depth.iview);
             view = cmdbuf->state.render.attachments.stencil.iview;
          }
       }