diff options
author | gdkchan <gab.dark.100@gmail.com> | 2023-10-22 15:31:36 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-22 20:31:36 +0200 |
commit | 33ba1703158564c2c3564fa329fd2e630f8a8e95 (patch) | |
tree | fabfb4d314fa182711af24226e3d7b8b2e5e4363 /src/Ryujinx.Graphics.Shader/Instructions | |
parent | 638be5f296bf52943da4366699d33f1e8656e00c (diff) |
Fix NRE on gather operations with depth compare on macOS (#5832)1.1.1060
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 5a231079..55f7d577 100644 --- a/src/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs +++ b/src/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs @@ -766,7 +766,10 @@ namespace Ryujinx.Graphics.Shader.Instructions flags |= offset == TexOffset.Ptp ? TextureFlags.Offsets : TextureFlags.Offset; } - sourcesList.Add(Const((int)component)); + if (!hasDepthCompare) + { + sourcesList.Add(Const((int)component)); + } Operand[] sources = sourcesList.ToArray(); Operand[] dests = new Operand[BitOperations.PopCount((uint)componentMask)]; |