diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2024-02-04 07:10:45 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-04 11:10:45 +0100 |
| commit | 24c8b0edc06c986f1fca80f01244f83b5bb4346c (patch) | |
| tree | 7f7fe993fcd045ac6ff2ed5b7015264bb5451764 /src/Ryujinx.Graphics.Shader/Instructions | |
| parent | e5066449a5bd0d77a4a5539e931776e97460ff95 (diff) | |
Remove component operand for texture gather with depth compare (#6247)
Diffstat (limited to 'src/Ryujinx.Graphics.Shader/Instructions')
| -rw-r--r-- | src/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs b/src/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs index 55f7d577..e9349542 100644 --- a/src/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs +++ b/src/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs @@ -592,7 +592,10 @@ namespace Ryujinx.Graphics.Shader.Instructions flags |= TextureFlags.Offset; } - sourcesList.Add(Const((int)tld4sOp.TexComp)); + if (!tld4sOp.Dc) + { + sourcesList.Add(Const((int)tld4sOp.TexComp)); + } } else { |
