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_vulkan/vk_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_vulkan/vk_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_rasterizer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp index fa87d37f8..dd6e0027e 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp +++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp @@ -408,7 +408,7 @@ void RasterizerVulkan::OnCPUWrite(VAddr addr, u64 size) { pipeline_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}; @@ -419,6 +419,10 @@ void RasterizerVulkan::OnCPUWrite(VAddr addr, u64 size) { void RasterizerVulkan::SyncGuestHost() { pipeline_cache.SyncGuestHost(); { + std::scoped_lock lock{texture_cache.mutex}; + texture_cache.FlushCachedWrites(); + } + { std::scoped_lock lock{buffer_cache.mutex}; buffer_cache.FlushCachedWrites(); } |