anv,vulkan: Move drm_format_mod to vk_image
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 22 Jul 2021 20:47:29 +0000 (15:47 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 17 Aug 2021 21:29:35 +0000 (21:29 +0000)
commitdef2cb9808272e96481f6f93317af06a3a2652b0
tree998ccb962f13d1953750bb93d66d32b80b2c5888
parent0f2afa0abc7f8fadab9df21f0f0837b8ccbb974a
anv,vulkan: Move drm_format_mod to vk_image

Even though we can't really do the parsing on behalf of the driver (it's
too complicated), storing it in the vk_image lets us provide a common
implementation of vkGetImageDrmFormatModifierPropertiesEXT().  It'll
also be useful in the next few commits for swapchain images.

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/intel/vulkan/anv_image.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_cmd_buffer.c
src/vulkan/util/vk_image.c
src/vulkan/util/vk_image.h