diff options
Diffstat (limited to 'Ryujinx.Graphics.Shader/Decoders/Decoder.cs')
| -rw-r--r-- | Ryujinx.Graphics.Shader/Decoders/Decoder.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Shader/Decoders/Decoder.cs b/Ryujinx.Graphics.Shader/Decoders/Decoder.cs index 2d00f237..9ca58177 100644 --- a/Ryujinx.Graphics.Shader/Decoders/Decoder.cs +++ b/Ryujinx.Graphics.Shader/Decoders/Decoder.cs @@ -9,6 +9,8 @@ namespace Ryujinx.Graphics.Shader.Decoders { static class Decoder { + public const ulong ShaderEndDelimiter = 0xe2400fffff87000f; + public static Block[][] Decode(IGpuAccessor gpuAccessor, ulong startAddress, out bool hasBindless) { hasBindless = false; @@ -190,7 +192,7 @@ namespace Ryujinx.Graphics.Shader.Decoders ulong inst = gpuAccessor.MemoryRead<ulong>(startAdddress + currBlock.EndAddress); - return inst != 0UL; + return inst != 0UL && inst != ShaderEndDelimiter; } private static bool BinarySearch(List<Block> blocks, ulong address, out int index) |
