From 2acd04e5b3d0642ba9a5582393884564df505023 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 30 Apr 2024 08:27:20 -0400 Subject: [PATCH] vulkan: Don't forget to update the cache size In order for the size change check to make sense, vk_pipeline_cache_size needs to correspond to the size of the cache we last wrote to disk. We were forgetting to update it after saving the cache, so the check was ineffective. --- gdk/gdkvulkancontext.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gdk/gdkvulkancontext.c b/gdk/gdkvulkancontext.c index 8c72862338..cfb5f016af 100644 --- a/gdk/gdkvulkancontext.c +++ b/gdk/gdkvulkancontext.c @@ -1194,6 +1194,7 @@ gdk_vulkan_save_pipeline_cache (GdkDisplay *display) g_free (data); g_free (display->vk_pipeline_cache_etag); display->vk_pipeline_cache_etag = etag; + display->vk_pipeline_cache_size = size; return TRUE; }