vulkan/runtime: don't lookup the pipeline disk cache if disabled
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 21 Jul 2022 12:11:20 +0000 (15:11 +0300)
committerMarge Bot <emma+marge@anholt.net>
Fri, 14 Oct 2022 23:03:16 +0000 (23:03 +0000)
commitcea113c97705ea659821a8cc8c330ded4c2e477a
treec3b61072be718ce9b37800561dda2995de72f13b
parent6558ecf3ebb1e55c4e9452b9252510443c0c1a49
vulkan/runtime: don't lookup the pipeline disk cache if disabled

When the Anv pipeline got migrated to the runtime, we gain/lost a bit
of functionality which is that the disk cache is always read
regardless of VK_ENABLE_PIPELINE_CACHE=0.

This change brings the old behavior back.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 591da9877900c ("vulkan: Add a common VkPipelineCache implementation")
Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19050>
src/vulkan/runtime/vk_pipeline_cache.c