summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-03-26 20:38:30 +0100
committerGitHub <noreply@github.com>2022-03-26 20:38:30 +0100
commitaf04f8b8e958a79471d58bc21745f0e8b9b2ea75 (patch)
tree65e18a33eda02f6a18cb32b5f492aa72fca0ed2a /src/video_core/renderer_vulkan
parentMerge pull request #8041 from Morph1984/inline-swkbd (diff)
downloadyuzu-af04f8b8e958a79471d58bc21745f0e8b9b2ea75.tar
yuzu-af04f8b8e958a79471d58bc21745f0e8b9b2ea75.tar.gz
yuzu-af04f8b8e958a79471d58bc21745f0e8b9b2ea75.tar.bz2
yuzu-af04f8b8e958a79471d58bc21745f0e8b9b2ea75.tar.lz
yuzu-af04f8b8e958a79471d58bc21745f0e8b9b2ea75.tar.xz
yuzu-af04f8b8e958a79471d58bc21745f0e8b9b2ea75.tar.zst
yuzu-af04f8b8e958a79471d58bc21745f0e8b9b2ea75.zip
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r--src/video_core/renderer_vulkan/vk_rasterizer.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp
index dd6e0027e..fa87d37f8 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.CachedWriteMemory(addr, size);
+ texture_cache.WriteMemory(addr, size);
}
{
std::scoped_lock lock{buffer_cache.mutex};
@@ -419,10 +419,6 @@ 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();
}