Mesa (main): dzn: correct assert-condition

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 14 10:48:11 UTC 2022


Module: Mesa
Branch: main
Commit: 7dc5255469c2f0f29d9e9cf1381cbb7a50492473
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7dc5255469c2f0f29d9e9cf1381cbb7a50492473

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Mon Jun 13 16:10:30 2022 +0200

dzn: correct assert-condition

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 at collabora.com>
Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16997>

---

 src/microsoft/vulkan/dzn_cmd_buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/microsoft/vulkan/dzn_cmd_buffer.c b/src/microsoft/vulkan/dzn_cmd_buffer.c
index 22d3ae3bca6..8971f0ce385 100644
--- a/src/microsoft/vulkan/dzn_cmd_buffer.c
+++ b/src/microsoft/vulkan/dzn_cmd_buffer.c
@@ -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;
          }
       }



More information about the mesa-commit mailing list