From ec0387f13f4ace4859b377d8405a8999b1a566e4 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 24 Jun 2025 09:48:05 -0400 Subject: [PATCH] zink: enable image2DViewOf3DSparse with maint9 Part-of: --- src/gallium/drivers/zink/zink_resource.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c index 86f0558fada..74e1d437e32 100644 --- a/src/gallium/drivers/zink/zink_resource.c +++ b/src/gallium/drivers/zink/zink_resource.c @@ -776,6 +776,8 @@ init_ici(struct zink_screen *screen, VkImageCreateInfo *ici, const struct pipe_r ici->imageType = VK_IMAGE_TYPE_3D; if (!(templ->flags & PIPE_RESOURCE_FLAG_SPARSE)) { ici->flags |= VK_IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT; + } + if (!(templ->flags & PIPE_RESOURCE_FLAG_SPARSE) || screen->info.maint9_props.image2DViewOf3DSparse) { if (screen->info.have_EXT_image_2d_view_of_3d) ici->flags |= VK_IMAGE_CREATE_2D_VIEW_COMPATIBLE_BIT_EXT; }