diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-23 21:44:41 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-08-28 00:26:46 +0200 |
commit | a0e1566dc500e1d6fcfd047463c52507b29287fa (patch) | |
tree | 70739666e2722b11d3b42ffa8b767c1d6f6fb3d3 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | video_core: Add RasterizerCache class for common cache management code. (diff) | |
download | yuzu-a0e1566dc500e1d6fcfd047463c52507b29287fa.tar yuzu-a0e1566dc500e1d6fcfd047463c52507b29287fa.tar.gz yuzu-a0e1566dc500e1d6fcfd047463c52507b29287fa.tar.bz2 yuzu-a0e1566dc500e1d6fcfd047463c52507b29287fa.tar.lz yuzu-a0e1566dc500e1d6fcfd047463c52507b29287fa.tar.xz yuzu-a0e1566dc500e1d6fcfd047463c52507b29287fa.tar.zst yuzu-a0e1566dc500e1d6fcfd047463c52507b29287fa.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, 1 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 96851ccb5..41a58598b 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -571,12 +571,10 @@ void RasterizerOpenGL::NotifyMaxwellRegisterChanged(u32 method) {} void RasterizerOpenGL::FlushAll() { MICROPROFILE_SCOPE(OpenGL_CacheManagement); - res_cache.FlushRegion(0, Kernel::VMManager::MAX_ADDRESS); } void RasterizerOpenGL::FlushRegion(Tegra::GPUVAddr addr, u64 size) { MICROPROFILE_SCOPE(OpenGL_CacheManagement); - res_cache.FlushRegion(addr, size); } void RasterizerOpenGL::InvalidateRegion(Tegra::GPUVAddr addr, u64 size) { @@ -586,8 +584,7 @@ void RasterizerOpenGL::InvalidateRegion(Tegra::GPUVAddr addr, u64 size) { void RasterizerOpenGL::FlushAndInvalidateRegion(Tegra::GPUVAddr addr, u64 size) { MICROPROFILE_SCOPE(OpenGL_CacheManagement); - res_cache.FlushRegion(addr, size); - res_cache.InvalidateRegion(addr, size); + InvalidateRegion(addr, size); } bool RasterizerOpenGL::AccelerateDisplayTransfer(const void* config) { |