vulkan: Use vk_image_sanitize_extent
authorKonstantin Seurer <konstantin.seurer@gmail.com>
Thu, 1 Dec 2022 19:17:34 +0000 (20:17 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 2 Dec 2022 20:46:33 +0000 (20:46 +0000)
commitf89708c2c5f0121b04f438a3569ceb39d1323eaf
tree872d518692242bf3d894f50ba5f20711b1721160
parent8d8188ec59ebe760239eb891e7e0d561e7020b0f
vulkan: Use vk_image_sanitize_extent

We set the image type before the extend which allows us to use
vk_image_sanitize_extent.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20112>
src/vulkan/runtime/vk_image.c