From a6dada6c3657ebf3dc62fe2b2fbc1157ed4f51a2 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sun, 14 May 2023 22:53:31 +0300 Subject: [PATCH] vk: Use gc to clean up stale surface cache resources instead of fudging with frame counters. - This whole surface cache garbage management needs to be merged with gc --- rpcs3/Emu/RSX/VK/VKRenderTargets.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/rpcs3/Emu/RSX/VK/VKRenderTargets.cpp b/rpcs3/Emu/RSX/VK/VKRenderTargets.cpp index fd4b781334..f87fcea19c 100644 --- a/rpcs3/Emu/RSX/VK/VKRenderTargets.cpp +++ b/rpcs3/Emu/RSX/VK/VKRenderTargets.cpp @@ -219,6 +219,7 @@ namespace vk case rsx::problem_severity::severe: case rsx::problem_severity::fatal: // We're almost dead anyway. Remove forcefully. + vk::get_resource_manager()->dispose(rtt); return true; default: fmt::throw_exception("Unreachable");