zink: use EXT_image_2d_view_of_3d

fixes #4562

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15716>
This commit is contained in:
Mike Blumenkrantz
2022-04-05 16:03:08 -04:00
committed by Marge Bot
parent f05d0f1238
commit 72a63649c2
2 changed files with 5 additions and 0 deletions
@@ -87,6 +87,9 @@ EXTENSIONS = [
alias="storage_16bit",
features=True,
conditions=["$feats.storageBuffer16BitAccess"]),
Extension("VK_EXT_image_2d_view_of_3d",
alias="view2d",
features=True),
Extension("VK_KHR_driver_properties",
alias="driver",
properties=True),
+2
View File
@@ -377,6 +377,8 @@ create_ici(struct zink_screen *screen, VkImageCreateInfo *ici, const struct pipe
case PIPE_TEXTURE_3D:
ici->imageType = VK_IMAGE_TYPE_3D;
ici->flags |= VK_IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT;
if (screen->info.have_EXT_image_2d_view_of_3d)
ici->flags |= VK_IMAGE_CREATE_2D_VIEW_COMPATIBLE_BIT_EXT;
break;
case PIPE_BUFFER: