vulkan/runtime: only consider slice info with 3D image views
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 3 Mar 2023 10:50:45 +0000 (12:50 +0200)
committerMarge Bot <emma+marge@anholt.net>
Sat, 4 Mar 2023 06:12:46 +0000 (06:12 +0000)
commit4ee1908ab60058c958d376d9da3167829cbf5b12
treefb73291499e56a955b043ae0d29589ce4931941e
parent3384e4f768c560f604802418c6a82ab1f23b3cb9
vulkan/runtime: only consider slice info with 3D image views

Because we can have 2D views of 3D images, we want to consider the
slice info only with 3D *image views*.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 66e3ccbcac ("vulkan/runtime: store parameters of VK_EXT_sliced_view_of_3d")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21376>
src/vulkan/runtime/vk_image.c
src/vulkan/runtime/vk_image.h