From dc2eed6ca1e4811048b1def95eec8f32fcbb96a1 Mon Sep 17 00:00:00 2001 From: Kojin Date: Sun, 23 Dec 2018 08:38:23 -0500 Subject: [PATCH] gsdx-d3d11: Fix CopyOffscreen bug Update CopyOffscreen to accept the ps_shader value when doing StretchRect. This fixes an issue where it was selecting the wrong PS for depth cache read. Should (hopefully) fix SMT. --- plugins/GSdx/Renderers/DX11/GSDevice11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/GSdx/Renderers/DX11/GSDevice11.cpp b/plugins/GSdx/Renderers/DX11/GSDevice11.cpp index 23b1c3c349..5d54b62142 100644 --- a/plugins/GSdx/Renderers/DX11/GSDevice11.cpp +++ b/plugins/GSdx/Renderers/DX11/GSDevice11.cpp @@ -671,7 +671,7 @@ GSTexture* GSDevice11::CopyOffscreen(GSTexture* src, const GSVector4& sRect, int if(GSTexture* src2 = src->IsMSAA() ? Resolve(src) : src) { - StretchRect(src2, sRect, rt, dRect, m_convert.ps[format == DXGI_FORMAT_R16_UINT ? 1 : 0], NULL); + StretchRect(src2, sRect, rt, dRect, m_convert.ps[ps_shader], NULL); if(src2 != src) Recycle(src2); }