diff options
| author | Jonathan Hamilton <jtrhamilton@gmail.com> | 2017-06-19 18:46:17 -0700 |
|---|---|---|
| committer | Jonathan Hamilton <jtrhamilton@gmail.com> | 2017-08-28 18:01:35 -0700 |
| commit | 62e8d25cd10c86b567209f154a4e841381f16fbb (patch) | |
| tree | 49378a96cf36ffac3e3169cc8f5be210e9af8716 /Source/Core/VideoBackends | |
| parent | 11057649eea4d7bac18c3c29467ff82783fc8323 (diff) | |
Add Bug to Disable "LoadOp" clear renderpass in vulkan
This optimisation doesn't work on PowerVR's Vulkan implementation. We
(incorrectly) disallow Framebuffer objects to be used with a different
load or store op than that which they were created with, despite the
spec allowing such.
This fixes the windwaker intro "smearing"
Diffstat (limited to 'Source/Core/VideoBackends')
| -rw-r--r-- | Source/Core/VideoBackends/Vulkan/Renderer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/Renderer.cpp b/Source/Core/VideoBackends/Vulkan/Renderer.cpp index 5f79897842..88a9157b24 100644 --- a/Source/Core/VideoBackends/Vulkan/Renderer.cpp +++ b/Source/Core/VideoBackends/Vulkan/Renderer.cpp @@ -376,6 +376,12 @@ void Renderer::ClearScreen(const EFBRectangle& rc, bool color_enable, bool alpha // If we're not in a render pass (start of the frame), we can use a clear render pass // to discard the data, rather than loading and then clearing. bool use_clear_render_pass = (color_enable && alpha_enable && z_enable); + if (DriverDetails::HasBug(DriverDetails::BUG_BROKEN_CLEAR_LOADOP_RENDERPASS)) + { + // This path cannot be used if the driver implementation doesn't guarantee pixels with no drawn + // geomerty in "this" renderpass won't be cleared + use_clear_render_pass = false; + } if (StateTracker::GetInstance()->InRenderPass()) { // Prefer not to end a render pass just to do a clear. |
