diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-01-05 12:43:54 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-01-05 20:00:10 +0100 |
commit | b56ad93bbc9ac38820c1e1cb4b03256dd50aa17a (patch) | |
tree | 329e2e9e818cf88753b86d01b3351ba1f2d6eb2e /src/video_core/renderer_vulkan | |
parent | Fermi2D: sync cache flushes (diff) | |
download | yuzu-b56ad93bbc9ac38820c1e1cb4b03256dd50aa17a.tar yuzu-b56ad93bbc9ac38820c1e1cb4b03256dd50aa17a.tar.gz yuzu-b56ad93bbc9ac38820c1e1cb4b03256dd50aa17a.tar.bz2 yuzu-b56ad93bbc9ac38820c1e1cb4b03256dd50aa17a.tar.lz yuzu-b56ad93bbc9ac38820c1e1cb4b03256dd50aa17a.tar.xz yuzu-b56ad93bbc9ac38820c1e1cb4b03256dd50aa17a.tar.zst yuzu-b56ad93bbc9ac38820c1e1cb4b03256dd50aa17a.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_rasterizer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp index 6c4d74564..ed4a72166 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp +++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp @@ -486,18 +486,18 @@ void RasterizerVulkan::InvalidateRegion(VAddr addr, u64 size, VideoCommon::Cache void RasterizerVulkan::InnerInvalidation(std::span<const std::pair<VAddr, std::size_t>> sequences) { { std::scoped_lock lock{texture_cache.mutex}; - for (const auto [addr, size] : sequences) { + for (const auto& [addr, size] : sequences) { texture_cache.WriteMemory(addr, size); } } { std::scoped_lock lock{buffer_cache.mutex}; - for (const auto [addr, size] : sequences) { + for (const auto& [addr, size] : sequences) { buffer_cache.WriteMemory(addr, size); } } { - for (const auto [addr, size] : sequences) { + for (const auto& [addr, size] : sequences) { query_cache.InvalidateRegion(addr, size); pipeline_cache.InvalidateRegion(addr, size); } |