diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-03-24 21:30:54 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-03-25 04:24:05 +0100 |
commit | 7a9d9e575b4d85ca30fc119dfb73c1b22a6dbe63 (patch) | |
tree | 67e146bd3f41413eb6c875234877cc4f3cf0e161 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #7720 from FernandoS27/yfc-gc (diff) | |
download | yuzu-7a9d9e575b4d85ca30fc119dfb73c1b22a6dbe63.tar yuzu-7a9d9e575b4d85ca30fc119dfb73c1b22a6dbe63.tar.gz yuzu-7a9d9e575b4d85ca30fc119dfb73c1b22a6dbe63.tar.bz2 yuzu-7a9d9e575b4d85ca30fc119dfb73c1b22a6dbe63.tar.lz yuzu-7a9d9e575b4d85ca30fc119dfb73c1b22a6dbe63.tar.xz yuzu-7a9d9e575b4d85ca30fc119dfb73c1b22a6dbe63.tar.zst yuzu-7a9d9e575b4d85ca30fc119dfb73c1b22a6dbe63.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 4d632d211..7e06d0069 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -352,7 +352,7 @@ void RasterizerOpenGL::OnCPUWrite(VAddr addr, u64 size) { shader_cache.OnCPUWrite(addr, size); { std::scoped_lock lock{texture_cache.mutex}; - texture_cache.WriteMemory(addr, size); + texture_cache.CachedWriteMemory(addr, size); } { std::scoped_lock lock{buffer_cache.mutex}; @@ -364,6 +364,10 @@ void RasterizerOpenGL::SyncGuestHost() { MICROPROFILE_SCOPE(OpenGL_CacheManagement); shader_cache.SyncGuestHost(); { + std::scoped_lock lock{texture_cache.mutex}; + texture_cache.FlushCachedWrites(); + } + { std::scoped_lock lock{buffer_cache.mutex}; buffer_cache.FlushCachedWrites(); } |