diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2020-10-25 17:00:44 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-25 17:00:44 -0300 |
| commit | 49f970d5bd9163e2b4e26a33ef8f84529174d5de (patch) | |
| tree | eceaf9c0454d27413ca77689c06a24b47467d1a0 /Ryujinx.Graphics.Shader/Decoders/OpCodeTable.cs | |
| parent | 973a615d405a83d5fc2f6a11ad12ba63c2a76465 (diff) | |
Implement CAL and RET shader instructions (#1618)
* Add support for CAL and RET shader instructions
* Remove unused stuff
* Fix a bug that could cause the wrong values to be passed to a function
* Avoid repopulating function id dictionary every time
* PR feedback
* Fix vertex shader A/B merge
Diffstat (limited to 'Ryujinx.Graphics.Shader/Decoders/OpCodeTable.cs')
| -rw-r--r-- | Ryujinx.Graphics.Shader/Decoders/OpCodeTable.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Shader/Decoders/OpCodeTable.cs b/Ryujinx.Graphics.Shader/Decoders/OpCodeTable.cs index 61168b59..302f1fc4 100644 --- a/Ryujinx.Graphics.Shader/Decoders/OpCodeTable.cs +++ b/Ryujinx.Graphics.Shader/Decoders/OpCodeTable.cs @@ -46,6 +46,7 @@ namespace Ryujinx.Graphics.Shader.Decoders Set("111000100100xx", InstEmit.Bra, OpCodeBranch.Create); Set("111000110100xx", InstEmit.Brk, OpCodeBranchPop.Create); Set("111000100101xx", InstEmit.Brx, OpCodeBranchIndir.Create); + Set("111000100110xx", InstEmit.Cal, OpCodeBranch.Create); Set("0101000010100x", InstEmit.Csetp, OpCodePset.Create); Set("0100110001110x", InstEmit.Dadd, OpCodeFArithCbuf.Create); Set("0011100x01110x", InstEmit.Dadd, OpCodeDArithImm.Create); @@ -185,6 +186,7 @@ namespace Ryujinx.Graphics.Shader.Decoders Set("0011100x11110x", InstEmit.R2p, OpCodeAluImm.Create); Set("0101110011110x", InstEmit.R2p, OpCodeAluReg.Create); Set("1110101111111x", InstEmit.Red, OpCodeRed.Create); + Set("111000110010xx", InstEmit.Ret, OpCodeExit.Create); Set("0100110010010x", InstEmit.Rro, OpCodeFArithCbuf.Create); Set("0011100x10010x", InstEmit.Rro, OpCodeFArithImm.Create); Set("0101110010010x", InstEmit.Rro, OpCodeFArithReg.Create); |
