diff options
| author | 2019-03-16 21:59:30 -0400 | |
|---|---|---|
| committer | 2019-03-16 21:59:30 -0400 | |
| commit | bf41132aa96f9b9b5f95b87c2add5ed7440bcbf3 (patch) | |
| tree | f122807448fd33205fae82f9383db172ebb2a25f /src/video_core | |
| parent | Merge pull request #2129 from FernandoS27/cntpct (diff) | |
| parent | memory: Simplify rasterizer cache operations. (diff) | |
| download | yuzu-bf41132aa96f9b9b5f95b87c2add5ed7440bcbf3.tar.gz yuzu-bf41132aa96f9b9b5f95b87c2add5ed7440bcbf3.tar.xz yuzu-bf41132aa96f9b9b5f95b87c2add5ed7440bcbf3.zip | |
Merge pull request #2243 from bunnei/mem-simplify-cache
memory: Simplify rasterizer cache operations.
Diffstat (limited to 'src/video_core')
| -rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index b97576309..5e3d862c6 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp | |||
| @@ -164,8 +164,7 @@ void RendererOpenGL::LoadFBToScreenInfo(const Tegra::FramebufferConfig& framebuf | |||
| 164 | // Reset the screen info's display texture to its own permanent texture | 164 | // Reset the screen info's display texture to its own permanent texture |
| 165 | screen_info.display_texture = screen_info.texture.resource.handle; | 165 | screen_info.display_texture = screen_info.texture.resource.handle; |
| 166 | 166 | ||
| 167 | Memory::RasterizerFlushVirtualRegion(framebuffer_addr, size_in_bytes, | 167 | rasterizer->FlushRegion(ToCacheAddr(Memory::GetPointer(framebuffer_addr)), size_in_bytes); |
| 168 | Memory::FlushMode::Flush); | ||
| 169 | 168 | ||
| 170 | constexpr u32 linear_bpp = 4; | 169 | constexpr u32 linear_bpp = 4; |
| 171 | VideoCore::MortonCopyPixels128(VideoCore::MortonSwizzleMode::MortonToLinear, | 170 | VideoCore::MortonCopyPixels128(VideoCore::MortonSwizzleMode::MortonToLinear, |