From c2769fda2138c5331aadd292f1ccd0afed1f6291 Mon Sep 17 00:00:00 2001 From: collinmcg Date: Fri, 6 Mar 2026 17:35:09 -0600 Subject: [PATCH] vk pipeline cache: finalize preload state before early return on profile mismatch --- src/video_core/renderer_vulkan/vk_pipeline_serialization.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/video_core/renderer_vulkan/vk_pipeline_serialization.cpp b/src/video_core/renderer_vulkan/vk_pipeline_serialization.cpp index 61c4bac7e..b429b0770 100644 --- a/src/video_core/renderer_vulkan/vk_pipeline_serialization.cpp +++ b/src/video_core/renderer_vulkan/vk_pipeline_serialization.cpp @@ -316,6 +316,9 @@ void PipelineCache::WarmUp() { if (std::memcmp(profile_data.data(), &profile, sizeof(profile)) != 0) { LOG_WARNING(Render, "Pipeline cache isn't compatible with current system. Ignoring the cache"); + // Keep DB lifecycle consistent before early return: in archived mode, Save() later in the + // session may still be called and expects writable archive state. + Storage::DataBase::Instance().FinishPreload(); return; }