diff options
| author | Stenzek <stenzek@gmail.com> | 2019-06-29 19:27:53 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2019-07-24 04:10:38 +1000 |
| commit | 1082468133342586ae2a5986408d163ce5aa14ca (patch) | |
| tree | ac7fb57285770d9bf07b080b79360ca1b7db9386 /Source/Core/VideoCommon/VideoBackendBase.cpp | |
| parent | b26bb0605b962456720519b273f171919ebfb65d (diff) | |
TextureCache: Support saving cache entries, including EFB copies
Diffstat (limited to 'Source/Core/VideoCommon/VideoBackendBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VideoBackendBase.cpp | 30 |
1 files changed, 1 insertions, 29 deletions
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)); |
