From 1082468133342586ae2a5986408d163ce5aa14ca Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 29 Jun 2019 19:27:53 +1000 Subject: TextureCache: Support saving cache entries, including EFB copies --- Source/Core/VideoCommon/VideoBackendBase.cpp | 30 +--------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) (limited to 'Source/Core/VideoCommon/VideoBackendBase.cpp') diff --git a/Source/Core/VideoCommon/VideoBackendBase.cpp b/Source/Core/VideoCommon/VideoBackendBase.cpp index ae628e5ab1..8ee7eb1202 100644 --- a/Source/Core/VideoCommon/VideoBackendBase.cpp +++ b/Source/Core/VideoCommon/VideoBackendBase.cpp @@ -241,7 +241,7 @@ void VideoBackendBase::DoState(PointerWrap& p) { if (!SConfig::GetInstance().bCPUThread) { - DoStateGPUThread(p); + VideoCommon_DoState(p); return; } @@ -255,34 +255,6 @@ void VideoBackendBase::DoState(PointerWrap& p) Fifo::GpuMaySleep(); } -void VideoBackendBase::DoStateGPUThread(PointerWrap& p) -{ - bool software = false; - p.Do(software); - - if (p.GetMode() == PointerWrap::MODE_READ && software == true) - { - // change mode to abort load of incompatible save state. - p.SetMode(PointerWrap::MODE_VERIFY); - } - - VideoCommon_DoState(p); - p.DoMarker("VideoCommon"); - - // Refresh state. - if (p.GetMode() == PointerWrap::MODE_READ) - { - // Inform backend of new state from registers. - g_vertex_manager->Flush(); - g_texture_cache->Invalidate(); - BPReload(); - - // Clear all caches that touch RAM - // (? these don't appear to touch any emulation state that gets saved. moved to on load only.) - VertexLoaderManager::MarkAllDirty(); - } -} - void VideoBackendBase::InitializeShared() { memset(&g_main_cp_state, 0, sizeof(g_main_cp_state)); -- cgit v1.2.3