From 51917c44610f8b8d7d61ba9e1fb570b44d7cb172 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 29 Jun 2024 00:52:07 +1000 Subject: [PATCH] GS/DX11: Fix downsample uniform unpack Fixes #11482. --- bin/resources/shaders/dx11/convert.fx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/resources/shaders/dx11/convert.fx b/bin/resources/shaders/dx11/convert.fx index ccd9a8277c22d..9c0ced5913880 100644 --- a/bin/resources/shaders/dx11/convert.fx +++ b/bin/resources/shaders/dx11/convert.fx @@ -77,8 +77,8 @@ float ps_depth_copy(PS_INPUT input) : SV_Depth PS_OUTPUT ps_downsample_copy(PS_INPUT input) { - int DownsampleFactor = EMODA; - int2 ClampMin = int2(EMODC, DOFFSET); + int DownsampleFactor = DOFFSET; + int2 ClampMin = int2(EMODA, EMODC); float Weight = BGColor.x; int2 coord = max(int2(input.p.xy) * DownsampleFactor, ClampMin);