vulkan: Add a vk_image struct
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 21 Jul 2021 23:35:22 +0000 (18:35 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 17 Aug 2021 21:29:34 +0000 (21:29 +0000)
commit0e6c320a7d6fdad498a31fe2215d138948905254
treefa6ac9bf77698f920c00945e125554e0c0cad4d0
parentfc5a6eedbc0fbee9f7d8e7f2ae20257425fafab9
vulkan: Add a vk_image struct

Currently, this is optional for drivers to carry around but it scrapes
up most of VkImageCreateInfo for you and parses a couple of extension
structs.  We also add a few useful little helpers copied over from ANV.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12023>
src/vulkan/util/meson.build
src/vulkan/util/vk_image.c [new file with mode: 0644]
src/vulkan/util/vk_image.h [new file with mode: 0644]