vulkan/util: add struct vk_pipeline_cache_header
authorAlejandro Piñeiro <apinheiro@igalia.com>
Fri, 3 Jul 2020 22:54:19 +0000 (00:54 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 30 Jul 2020 09:44:21 +0000 (11:44 +0200)
commit62bfc700f74971db970748acf8b832dbee4c2805
treea00feb40552d100d00ecc06e4ca29e92fdfac50f
parentb5558f2d2aa738d90b9e039144ae3ca69bdf92ca
vulkan/util: add struct vk_pipeline_cache_header

Header is defined at vkGetPipelineCacheData spec, in any vulkan
version, and anv, tu and radv were using the same struct, and v3dv was
about to do the same.

Defining the same struct four times seemed odd, so let's define on a
common place.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Acked-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6058>
src/amd/vulkan/radv_pipeline_cache.c
src/freedreno/vulkan/tu_pipeline_cache.c
src/intel/vulkan/anv_pipeline_cache.c
src/vulkan/util/vk_util.h