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_vulkan | |
| 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_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 0a2ea4fd4..6b99cbbbc 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp +++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp | |||
| @@ -599,7 +599,7 @@ RasterizerVulkan::Texceptions RasterizerVulkan::UpdateAttachments() { | |||
| 599 | Texceptions texceptions; | 599 | Texceptions texceptions; |
| 600 | for (std::size_t rt = 0; rt < Maxwell::NumRenderTargets; ++rt) { | 600 | for (std::size_t rt = 0; rt < Maxwell::NumRenderTargets; ++rt) { |
| 601 | if (update_rendertargets) { | 601 | if (update_rendertargets) { |
| 602 | color_attachments[rt] = texture_cache.GetColorBufferSurface(rt, true); | 602 | color_attachments[rt] = texture_cache.GetColorBufferSurface(rt); |
| 603 | } | 603 | } |
| 604 | if (color_attachments[rt] && WalkAttachmentOverlaps(*color_attachments[rt])) { | 604 | if (color_attachments[rt] && WalkAttachmentOverlaps(*color_attachments[rt])) { |
| 605 | texceptions[rt] = true; | 605 | texceptions[rt] = true; |
| @@ -607,7 +607,7 @@ RasterizerVulkan::Texceptions RasterizerVulkan::UpdateAttachments() { | |||
| 607 | } | 607 | } |
| 608 | 608 | ||
| 609 | if (update_rendertargets) { | 609 | if (update_rendertargets) { |
| 610 | zeta_attachment = texture_cache.GetDepthBufferSurface(true); | 610 | zeta_attachment = texture_cache.GetDepthBufferSurface(); |
| 611 | } | 611 | } |
| 612 | if (zeta_attachment && WalkAttachmentOverlaps(*zeta_attachment)) { | 612 | if (zeta_attachment && WalkAttachmentOverlaps(*zeta_attachment)) { |
| 613 | texceptions[ZETA_TEXCEPTION_INDEX] = true; | 613 | texceptions[ZETA_TEXCEPTION_INDEX] = true; |