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:
committed by
Marge Bot
parent
f05d0f1238
commit
72a63649c2
@@ -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),
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user