diff options
Diffstat (limited to 'Ryujinx.Graphics.Shader/Decoders')
-rw-r--r-- | Ryujinx.Graphics.Shader/Decoders/Block.cs | 6 | ||||
-rw-r--r-- | Ryujinx.Graphics.Shader/Decoders/Decoder.cs | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.Shader/Decoders/Block.cs b/Ryujinx.Graphics.Shader/Decoders/Block.cs index 0b55c59e..ddd81cc5 100644 --- a/Ryujinx.Graphics.Shader/Decoders/Block.cs +++ b/Ryujinx.Graphics.Shader/Decoders/Block.cs @@ -92,7 +92,11 @@ namespace Ryujinx.Graphics.Shader.Decoders pushOpInfo.Consumers.Add(rightBlock, local); } - rightBlock.SyncTargets.Union(SyncTargets); + foreach ((ulong key, SyncTarget value) in SyncTargets) + { + rightBlock.SyncTargets.Add(key, value); + } + SyncTargets.Clear(); // Move push ops. diff --git a/Ryujinx.Graphics.Shader/Decoders/Decoder.cs b/Ryujinx.Graphics.Shader/Decoders/Decoder.cs index 60ad540c..69f9a520 100644 --- a/Ryujinx.Graphics.Shader/Decoders/Decoder.cs +++ b/Ryujinx.Graphics.Shader/Decoders/Decoder.cs @@ -340,7 +340,7 @@ namespace Ryujinx.Graphics.Shader.Decoders { InstConditional condOp = new InstConditional(op.RawOpCode); - if (op.Name == InstName.Exit && condOp.Ccc != Ccc.T) + if ((op.Name == InstName.Bra || op.Name == InstName.Exit) && condOp.Ccc != Ccc.T) { return false; } @@ -672,6 +672,7 @@ namespace Ryujinx.Graphics.Shader.Decoders // Make sure we found the correct address, // the push and pop instruction types must match, so: // - BRK can only consume addresses pushed by PBK. + // - CONT can only consume addresses pushed by PCNT. // - SYNC can only consume addresses pushed by SSY. if (found) { |