diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-04-05 21:26:16 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-04-06 15:23:05 +0200 |
commit | 6ee316cb8f4d6f28b4dcad7a8a3d447fdf70d3bb (patch) | |
tree | 5486a9f2240c49d4125930723ffa8286fd127164 /src/video_core/renderer_vulkan/vk_rasterizer.cpp | |
parent | GPU: Setup Flush/Invalidate to use VAddr instead of CacheAddr (diff) | |
download | yuzu-6ee316cb8f4d6f28b4dcad7a8a3d447fdf70d3bb.tar yuzu-6ee316cb8f4d6f28b4dcad7a8a3d447fdf70d3bb.tar.gz yuzu-6ee316cb8f4d6f28b4dcad7a8a3d447fdf70d3bb.tar.bz2 yuzu-6ee316cb8f4d6f28b4dcad7a8a3d447fdf70d3bb.tar.lz yuzu-6ee316cb8f4d6f28b4dcad7a8a3d447fdf70d3bb.tar.xz yuzu-6ee316cb8f4d6f28b4dcad7a8a3d447fdf70d3bb.tar.zst yuzu-6ee316cb8f4d6f28b4dcad7a8a3d447fdf70d3bb.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_rasterizer.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp index 0ca72eb45..cc76d96ea 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp +++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp @@ -500,7 +500,7 @@ void RasterizerVulkan::FlushRegion(VAddr addr, u64 size) { return; } CacheAddr cache_addr = ToCacheAddr(system.Memory().GetPointer(addr)); - texture_cache.FlushRegion(cache_addr, size); + texture_cache.FlushRegion(addr, size); buffer_cache.FlushRegion(cache_addr, size); query_cache.FlushRegion(cache_addr, size); } @@ -510,7 +510,7 @@ void RasterizerVulkan::InvalidateRegion(VAddr addr, u64 size) { return; } CacheAddr cache_addr = ToCacheAddr(system.Memory().GetPointer(addr)); - texture_cache.InvalidateRegion(cache_addr, size); + texture_cache.InvalidateRegion(addr, size); pipeline_cache.InvalidateRegion(cache_addr, size); buffer_cache.InvalidateRegion(cache_addr, size); query_cache.InvalidateRegion(cache_addr, size); @@ -548,8 +548,7 @@ bool RasterizerVulkan::AccelerateDisplay(const Tegra::FramebufferConfig& config, return false; } - const u8* host_ptr{system.Memory().GetPointer(framebuffer_addr)}; - const auto surface{texture_cache.TryFindFramebufferSurface(host_ptr)}; + const auto surface{texture_cache.TryFindFramebufferSurface(framebuffer_addr)}; if (!surface) { return false; } |