From 59900d7f00b14681acfc7ef5e8d1e18d53664e1c Mon Sep 17 00:00:00 2001 From: gdkchan Date: Fri, 9 Jul 2021 00:09:07 -0300 Subject: Unscale textureSize when resolution scaling is used (#2441) * Unscale textureSize when resolution scaling is used * Fix textureSize on compute * Flag texture size as needing res scale values too --- Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Ryujinx.Graphics.Shader/Instructions') diff --git a/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs b/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs index b59f0d31..f1ae89d5 100644 --- a/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs +++ b/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs @@ -1056,6 +1056,8 @@ namespace Ryujinx.Graphics.Shader.Instructions return; } + context.Config.SetUsedFeature(FeatureFlags.IntegerSampling); + TextureProperty property = (TextureProperty)op.RawOpCode.Extract(22, 6); // TODO: Validate and use property. -- cgit v1.2.3