anv: uncompressed views of compressed 3d images are now valid
authorIván Briano <ivan.briano@intel.com>
Thu, 19 Jan 2023 23:23:56 +0000 (15:23 -0800)
committerEric Engestrom <eric@engestrom.ch>
Wed, 8 Feb 2023 20:34:47 +0000 (20:34 +0000)
commit0950a0b30701fa7a803e35bea08fc937f1f57c73
treedb58a61ad6bdd26a7bd9d3b7f3829d9b579a8612
parent72a090347a6f0694725bad41116be9739d757f13
anv: uncompressed views of compressed 3d images are now valid

There was a VUID-VkImageViewCreateInfo-image-04739 in the Vulkan 1.3
spec that said:

    If image was created with the
    VK_IMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT flag and format is a
    non-compressed format, viewType must not be VK_IMAGE_VIEW_TYPE_3D

That VUID has since been removed, and when a view of a 3D image is
created, with put the depth into the array_len, so it won't be always 1.

Reviewed-by: Mark Janes <markjanes@swizzler.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20803>
(cherry picked from commit 58ababdee6cd6b1e08604033602e4a5f9d5ab7a3)
.pick_status.json
src/intel/vulkan/anv_image.c