diff options
| author | 2020-04-30 12:56:19 -0400 | |
|---|---|---|
| committer | 2020-04-30 12:56:19 -0400 | |
| commit | da2b8295e117ad7dba763c78b22d8820ba0e9d84 (patch) | |
| tree | cbbf79759d63968d6784fa521e822ca45a945c88 /src/video_core/renderer_vulkan | |
| parent | Merge pull request #3788 from FernandoS27/revert (diff) | |
| parent | texture_cache: Reintroduce preserve_contents accurately (diff) | |
| download | yuzu-da2b8295e117ad7dba763c78b22d8820ba0e9d84.tar.gz yuzu-da2b8295e117ad7dba763c78b22d8820ba0e9d84.tar.xz yuzu-da2b8295e117ad7dba763c78b22d8820ba0e9d84.zip | |
Merge pull request #3805 from ReinUsesLisp/preserve-contents
texture_cache: Reintroduce preserve_contents accurately
Diffstat (limited to 'src/video_core/renderer_vulkan')
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_rasterizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp index c821b1229..776053de5 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp +++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp | |||
| @@ -656,7 +656,7 @@ RasterizerVulkan::Texceptions RasterizerVulkan::UpdateAttachments() { | |||
| 656 | Texceptions texceptions; | 656 | Texceptions texceptions; |
| 657 | for (std::size_t rt = 0; rt < Maxwell::NumRenderTargets; ++rt) { | 657 | for (std::size_t rt = 0; rt < Maxwell::NumRenderTargets; ++rt) { |
| 658 | if (update_rendertargets) { | 658 | if (update_rendertargets) { |
| 659 | color_attachments[rt] = texture_cache.GetColorBufferSurface(rt); | 659 | color_attachments[rt] = texture_cache.GetColorBufferSurface(rt, true); |
| 660 | } | 660 | } |
| 661 | if (color_attachments[rt] && WalkAttachmentOverlaps(*color_attachments[rt])) { | 661 | if (color_attachments[rt] && WalkAttachmentOverlaps(*color_attachments[rt])) { |
| 662 | texceptions[rt] = true; | 662 | texceptions[rt] = true; |
| @@ -664,7 +664,7 @@ RasterizerVulkan::Texceptions RasterizerVulkan::UpdateAttachments() { | |||
| 664 | } | 664 | } |
| 665 | 665 | ||
| 666 | if (update_rendertargets) { | 666 | if (update_rendertargets) { |
| 667 | zeta_attachment = texture_cache.GetDepthBufferSurface(); | 667 | zeta_attachment = texture_cache.GetDepthBufferSurface(true); |
| 668 | } | 668 | } |
| 669 | if (zeta_attachment && WalkAttachmentOverlaps(*zeta_attachment)) { | 669 | if (zeta_attachment && WalkAttachmentOverlaps(*zeta_attachment)) { |
| 670 | texceptions[ZETA_TEXCEPTION_INDEX] = true; | 670 | texceptions[ZETA_TEXCEPTION_INDEX] = true; |