diff options
| author | 2020-04-11 01:50:58 -0300 | |
|---|---|---|
| committer | 2020-04-11 01:51:02 -0300 | |
| commit | 94b0e2e5dae4e0bd0021ac2d8fe1ff904a93ee69 (patch) | |
| tree | 4b5c1a289b4a871dcaec3863cf951388f9637189 /src/video_core/renderer_opengl | |
| parent | Merge pull request #3594 from ReinUsesLisp/vk-instance (diff) | |
| download | yuzu-94b0e2e5dae4e0bd0021ac2d8fe1ff904a93ee69.tar.gz yuzu-94b0e2e5dae4e0bd0021ac2d8fe1ff904a93ee69.tar.xz yuzu-94b0e2e5dae4e0bd0021ac2d8fe1ff904a93ee69.zip | |
texture_cache: Remove preserve_contents
preserve_contents was always true. We can't assume we don't have to
preserve clears because scissored and color masked clears exist.
This removes preserve_contents and assumes it as true at all times.
Diffstat (limited to 'src/video_core/renderer_opengl')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 368f399df..c6ff4e27f 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp | |||
| @@ -345,7 +345,7 @@ void RasterizerOpenGL::ConfigureFramebuffers() { | |||
| 345 | 345 | ||
| 346 | texture_cache.GuardRenderTargets(true); | 346 | texture_cache.GuardRenderTargets(true); |
| 347 | 347 | ||
| 348 | View depth_surface = texture_cache.GetDepthBufferSurface(true); | 348 | View depth_surface = texture_cache.GetDepthBufferSurface(); |
| 349 | 349 | ||
| 350 | const auto& regs = gpu.regs; | 350 | const auto& regs = gpu.regs; |
| 351 | UNIMPLEMENTED_IF(regs.rt_separate_frag_data == 0); | 351 | UNIMPLEMENTED_IF(regs.rt_separate_frag_data == 0); |
| @@ -354,7 +354,7 @@ void RasterizerOpenGL::ConfigureFramebuffers() { | |||
| 354 | FramebufferCacheKey key; | 354 | FramebufferCacheKey key; |
| 355 | const auto colors_count = static_cast<std::size_t>(regs.rt_control.count); | 355 | const auto colors_count = static_cast<std::size_t>(regs.rt_control.count); |
| 356 | for (std::size_t index = 0; index < colors_count; ++index) { | 356 | for (std::size_t index = 0; index < colors_count; ++index) { |
| 357 | View color_surface{texture_cache.GetColorBufferSurface(index, true)}; | 357 | View color_surface{texture_cache.GetColorBufferSurface(index)}; |
| 358 | if (!color_surface) { | 358 | if (!color_surface) { |
| 359 | continue; | 359 | continue; |
| 360 | } | 360 | } |
| @@ -387,12 +387,12 @@ void RasterizerOpenGL::ConfigureClearFramebuffer(bool using_color_fb, bool using | |||
| 387 | View color_surface; | 387 | View color_surface; |
| 388 | if (using_color_fb) { | 388 | if (using_color_fb) { |
| 389 | const std::size_t index = regs.clear_buffers.RT; | 389 | const std::size_t index = regs.clear_buffers.RT; |
| 390 | color_surface = texture_cache.GetColorBufferSurface(index, true); | 390 | color_surface = texture_cache.GetColorBufferSurface(index); |
| 391 | texture_cache.MarkColorBufferInUse(index); | 391 | texture_cache.MarkColorBufferInUse(index); |
| 392 | } | 392 | } |
| 393 | View depth_surface; | 393 | View depth_surface; |
| 394 | if (using_depth_fb || using_stencil_fb) { | 394 | if (using_depth_fb || using_stencil_fb) { |
| 395 | depth_surface = texture_cache.GetDepthBufferSurface(true); | 395 | depth_surface = texture_cache.GetDepthBufferSurface(); |
| 396 | texture_cache.MarkDepthBufferInUse(); | 396 | texture_cache.MarkDepthBufferInUse(); |
| 397 | } | 397 | } |
| 398 | texture_cache.GuardRenderTargets(false); | 398 | texture_cache.GuardRenderTargets(false); |