diff options
author | gdkchan <gab.dark.100@gmail.com> | 2022-07-23 11:53:14 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-23 11:53:14 -0300 |
commit | 7f8a3541eb4d4d64390c8dd5d3849ea4606c59fb (patch) | |
tree | f113e7cdba1439dab516bded1b2923d34b6cc185 /Ryujinx.Graphics.Shader/Decoders/Decoder.cs | |
parent | b34de74f81ef73a78d43d169b9f1ce7f175035b5 (diff) |
Fix decoding of block after shader BRA.CC instructions without predicate (#3472)1.1.184
* Fix decoding of block after BRA.CC instructions without predicate
* Shader cache version bump
Diffstat (limited to 'Ryujinx.Graphics.Shader/Decoders/Decoder.cs')
-rw-r--r-- | Ryujinx.Graphics.Shader/Decoders/Decoder.cs | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |