diff options
| author | gdk <gab.dark.100@gmail.com> | 2019-11-14 14:20:30 -0300 |
|---|---|---|
| committer | Thog <thog@protonmail.com> | 2020-01-09 02:13:00 +0100 |
| commit | f0a59f345c633b757ebd2a22fca23d7dab0f9f99 (patch) | |
| tree | 444aa5ac024119594bc9f5b51e3710483537e6e6 /Ryujinx.Graphics.Shader/Decoders/OpCodePush.cs | |
| parent | d274328c3192fd85b9eec661b00f1599d673776c (diff) | |
Add partial support for the BRX shader instruction
Diffstat (limited to 'Ryujinx.Graphics.Shader/Decoders/OpCodePush.cs')
| -rw-r--r-- | Ryujinx.Graphics.Shader/Decoders/OpCodePush.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Shader/Decoders/OpCodePush.cs b/Ryujinx.Graphics.Shader/Decoders/OpCodePush.cs new file mode 100644 index 00000000..a7657bcf --- /dev/null +++ b/Ryujinx.Graphics.Shader/Decoders/OpCodePush.cs @@ -0,0 +1,22 @@ +using Ryujinx.Graphics.Shader.Instructions; +using Ryujinx.Graphics.Shader.IntermediateRepresentation; +using System.Collections.Generic; + +namespace Ryujinx.Graphics.Shader.Decoders +{ + class OpCodePush : OpCodeBranch + { + public Dictionary<OpCodeBranchPop, Operand> PopOps { get; } + + public OpCodePush(InstEmitter emitter, ulong address, long opCode) : base(emitter, address, opCode) + { + PopOps = new Dictionary<OpCodeBranchPop, Operand>(); + + Predicate = new Register(RegisterConsts.PredicateTrueIndex, RegisterType.Predicate); + + InvertPredicate = false; + + PushTarget = true; + } + } +}
\ No newline at end of file |
