From 23cbd570a1c58c7d24c83ae7e3788611c38717dc Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Mon, 21 Feb 2022 12:42:51 -0800 Subject: [PATCH] FramebufferManager: Flush pending EFB pokes in PopulateEFBCache I.e. flush pokes before running an EFB peek, if the cache tile isn't present. If the cache tile is present, then EFB pokes should have been written to the cache tile and thus don't need to be flushed. --- Source/Core/VideoCommon/FramebufferManager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/VideoCommon/FramebufferManager.cpp b/Source/Core/VideoCommon/FramebufferManager.cpp index b805de77a8..c6cb2fd29e 100644 --- a/Source/Core/VideoCommon/FramebufferManager.cpp +++ b/Source/Core/VideoCommon/FramebufferManager.cpp @@ -593,6 +593,7 @@ void FramebufferManager::DestroyReadbackFramebuffer() void FramebufferManager::PopulateEFBCache(bool depth, u32 tile_index) { + FlushEFBPokes(); g_vertex_manager->OnCPUEFBAccess(); // Force the path through the intermediate texture, as we can't do an image copy from a depth