From 4d9fc17ae8c24a8f4e40a17600e8d4205c27b2bf Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 27 Oct 2021 16:32:55 -0400 Subject: [PATCH] zink: set aspectMask for renderpass2 VkAttachmentReference2 structs this is otherwise just garbage fixes #5569 cc: mesa-stable Reviewed-by: Dave Airlie Part-of: --- 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));