diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-06-28 06:28:13 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-06-28 19:34:21 +0200 |
commit | 47d0d292d5cc5f0404e126023279db7decd532ac (patch) | |
tree | a43e59102a9db2a124c7473842fbf0d661ff628e /src/video_core/gpu.cpp | |
parent | Merge pull request #10837 from liamwhite/mali-support (diff) | |
download | yuzu-47d0d292d5cc5f0404e126023279db7decd532ac.tar yuzu-47d0d292d5cc5f0404e126023279db7decd532ac.tar.gz yuzu-47d0d292d5cc5f0404e126023279db7decd532ac.tar.bz2 yuzu-47d0d292d5cc5f0404e126023279db7decd532ac.tar.lz yuzu-47d0d292d5cc5f0404e126023279db7decd532ac.tar.xz yuzu-47d0d292d5cc5f0404e126023279db7decd532ac.tar.zst yuzu-47d0d292d5cc5f0404e126023279db7decd532ac.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/gpu.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp index db385076d..f823a1e2b 100644 --- a/src/video_core/gpu.cpp +++ b/src/video_core/gpu.cpp @@ -95,7 +95,9 @@ struct GPU::Impl { /// Synchronizes CPU writes with Host GPU memory. void InvalidateGPUCache() { - rasterizer->InvalidateGPUCache(); + std::function<void(VAddr, size_t)> callback_writes( + [this](VAddr address, size_t size) { rasterizer->OnCPUWrite(address, size); }); + system.GatherGPUDirtyMemory(callback_writes); } /// Signal the ending of command list. |