diff options
| author | Connor McLaughlin <stenzek@gmail.com> | 2020-09-26 17:46:16 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-26 17:46:16 +1000 |
| commit | aea02390715ca5f89a299c5a220af30c37b67ca6 (patch) | |
| tree | 06b64082ff68dfc4a90ef719169205bd25b6c6c6 /Source/Core/VideoCommon/FramebufferManager.cpp | |
| parent | c64d41d3e783441e4f0b34d4b70cc754ca610b15 (diff) | |
| parent | 880f7ca6bb9df5bdb4e3765697ffdf60b59d68f3 (diff) | |
Merge pull request #9109 from stenzek/msaa-efb-readback
FramebufferManager: Fix EFB readbacks with MSAA on
Diffstat (limited to 'Source/Core/VideoCommon/FramebufferManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/FramebufferManager.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/FramebufferManager.cpp b/Source/Core/VideoCommon/FramebufferManager.cpp index c989f9d5c8..edf4e5427e 100644 --- a/Source/Core/VideoCommon/FramebufferManager.cpp +++ b/Source/Core/VideoCommon/FramebufferManager.cpp @@ -258,8 +258,8 @@ AbstractTexture* FramebufferManager::ResolveEFBColorTexture(const MathUtil::Rect AbstractTexture* FramebufferManager::ResolveEFBDepthTexture(const MathUtil::Rectangle<int>& region, bool force_r32f) { - if (!IsEFBMultisampled() || !force_r32f || - m_efb_depth_texture->GetFormat() == AbstractTextureFormat::R32F) + if (!IsEFBMultisampled() && + (!force_r32f || m_efb_depth_texture->GetFormat() == AbstractTextureFormat::D32F)) { return m_efb_depth_texture.get(); } @@ -271,7 +271,8 @@ AbstractTexture* FramebufferManager::ResolveEFBDepthTexture(const MathUtil::Rect m_efb_depth_texture->FinishedRendering(); g_renderer->BeginUtilityDrawing(); g_renderer->SetAndDiscardFramebuffer(m_efb_depth_resolve_framebuffer.get()); - g_renderer->SetPipeline(m_efb_depth_resolve_pipeline.get()); + g_renderer->SetPipeline(IsEFBMultisampled() ? m_efb_depth_resolve_pipeline.get() : + m_efb_depth_cache.copy_pipeline.get()); g_renderer->SetTexture(0, m_efb_depth_texture.get()); g_renderer->SetSamplerState(0, RenderState::GetPointSamplerState()); g_renderer->SetViewportAndScissor(clamped_region); |
