From e07976a22bcbfe8a2a3c166cc35c654f9b893a5d Mon Sep 17 00:00:00 2001 From: Wollnashorn Date: Thu, 5 Jan 2023 04:36:17 +0100 Subject: video_core/vulkan: Vulkan driver pipelines now contain cache version So that old cache can get deleted when the cache version changes and does not grow infinitely --- src/video_core/renderer_vulkan/vk_pipeline_cache.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/video_core/renderer_vulkan/vk_pipeline_cache.h') diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.h b/src/video_core/renderer_vulkan/vk_pipeline_cache.h index cf3bd6b85..5171912d7 100644 --- a/src/video_core/renderer_vulkan/vk_pipeline_cache.h +++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.h @@ -136,9 +136,10 @@ private: bool build_in_parallel); void SerializeVulkanPipelineCache(const std::filesystem::path& filename, - const vk::PipelineCache& pipeline_cache); + const vk::PipelineCache& pipeline_cache, u32 cache_version); - vk::PipelineCache LoadVulkanPipelineCache(const std::filesystem::path& filename); + vk::PipelineCache LoadVulkanPipelineCache(const std::filesystem::path& filename, + u32 expected_cache_version); const Device& device; Scheduler& scheduler; -- cgit v1.2.3