Mesa (main): zink: set aspectMask for renderpass2 VkAttachmentReference2 structs

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Oct 28 02:31:00 UTC 2021


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

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Wed Oct 27 16:32:55 2021 -0400

zink: set aspectMask for renderpass2 VkAttachmentReference2 structs

this is otherwise just garbage

fixes #5569

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13561>

---

 src/gallium/drivers/zink/zink_render_pass.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/zink/zink_render_pass.c b/src/gallium/drivers/zink/zink_render_pass.c
index 265bf941e22..22511915a34 100644
--- a/src/gallium/drivers/zink/zink_render_pass.c
+++ b/src/gallium/drivers/zink/zink_render_pass.c
@@ -168,6 +168,7 @@ create_render_pass2(struct zink_screen *screen, struct zink_render_pass_state *s
       color_refs[i].pNext = NULL;
       color_refs[i].attachment = i;
       color_refs[i].layout = layout;
+      color_refs[i].aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
       dep_pipeline |= VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT;
       if (rt->fbfetch)
          memcpy(&input_attachments[input_count++], &color_refs[i], sizeof(VkAttachmentReference2));



More information about the mesa-commit mailing list