diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-04-06 00:39:24 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-04-06 15:23:07 +0200 |
commit | 3dd5c07454bda0518b965f941399d64aabac5629 (patch) | |
tree | 217539bf095122bc2d81898044bf488887196e28 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Buffer Cache: Use vAddr instead of physical memory. (diff) | |
download | yuzu-3dd5c07454bda0518b965f941399d64aabac5629.tar yuzu-3dd5c07454bda0518b965f941399d64aabac5629.tar.gz yuzu-3dd5c07454bda0518b965f941399d64aabac5629.tar.bz2 yuzu-3dd5c07454bda0518b965f941399d64aabac5629.tar.lz yuzu-3dd5c07454bda0518b965f941399d64aabac5629.tar.xz yuzu-3dd5c07454bda0518b965f941399d64aabac5629.tar.zst yuzu-3dd5c07454bda0518b965f941399d64aabac5629.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index cb4928bbe..1f603b668 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -661,10 +661,9 @@ void RasterizerOpenGL::FlushRegion(VAddr addr, u64 size) { if (!addr || !size) { return; } - CacheAddr cache_addr = ToCacheAddr(system.Memory().GetPointer(addr)); texture_cache.FlushRegion(addr, size); buffer_cache.FlushRegion(addr, size); - query_cache.FlushRegion(cache_addr, size); + query_cache.FlushRegion(addr, size); } void RasterizerOpenGL::InvalidateRegion(VAddr addr, u64 size) { @@ -676,7 +675,7 @@ void RasterizerOpenGL::InvalidateRegion(VAddr addr, u64 size) { texture_cache.InvalidateRegion(addr, size); shader_cache.InvalidateRegion(cache_addr, size); buffer_cache.InvalidateRegion(addr, size); - query_cache.InvalidateRegion(cache_addr, size); + query_cache.InvalidateRegion(addr, size); } void RasterizerOpenGL::FlushAndInvalidateRegion(VAddr addr, u64 size) { |