From f0a59f345c633b757ebd2a22fca23d7dab0f9f99 Mon Sep 17 00:00:00 2001 From: gdk Date: Thu, 14 Nov 2019 14:20:30 -0300 Subject: Add partial support for the BRX shader instruction --- Ryujinx.Graphics.Shader/Decoders/OpCodePush.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Ryujinx.Graphics.Shader/Decoders/OpCodePush.cs (limited to 'Ryujinx.Graphics.Shader/Decoders/OpCodePush.cs') 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 PopOps { get; } + + public OpCodePush(InstEmitter emitter, ulong address, long opCode) : base(emitter, address, opCode) + { + PopOps = new Dictionary(); + + Predicate = new Register(RegisterConsts.PredicateTrueIndex, RegisterType.Predicate); + + InvertPredicate = false; + + PushTarget = true; + } + } +} \ No newline at end of file -- cgit v1.2.3