aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Gal/Shader/ShaderDecodeHelper.cs
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2018-07-17 16:50:00 -0300
committergdkchan <gab.dark.100@gmail.com>2018-07-17 16:50:00 -0300
commit571848536b347a85c85955745a16d4f7b9a0c04a (patch)
treec953477670bf892fd746baeffbe0cfe036952366 /Ryujinx.Graphics/Gal/Shader/ShaderDecodeHelper.cs
parentc2c765b30fdfa9184df580133e22ae946eebc022 (diff)
Implement some shader instructions (#252)
* Add IADDI32, IADD and SEL shader instructions * Add LOP shader instruction and fix LOP32I pass_b * Add ISET shader instruction * Add IADD3 shader instruction * Address feedback * Fixup OperA in Iadd_I32
Diffstat (limited to 'Ryujinx.Graphics/Gal/Shader/ShaderDecodeHelper.cs')
-rw-r--r--Ryujinx.Graphics/Gal/Shader/ShaderDecodeHelper.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Ryujinx.Graphics/Gal/Shader/ShaderDecodeHelper.cs b/Ryujinx.Graphics/Gal/Shader/ShaderDecodeHelper.cs
index a8ad5ec2..1f1b158e 100644
--- a/Ryujinx.Graphics/Gal/Shader/ShaderDecodeHelper.cs
+++ b/Ryujinx.Graphics/Gal/Shader/ShaderDecodeHelper.cs
@@ -156,6 +156,11 @@ namespace Ryujinx.Graphics.Gal.Shader
return new ShaderIrOperPred((int)(OpCode >> 39) & 7);
}
+ public static ShaderIrOperPred GetOperPred48(long OpCode)
+ {
+ return new ShaderIrOperPred((int)((OpCode >> 48) & 7));
+ }
+
public static ShaderIrInst GetCmp(long OpCode)
{
switch ((int)(OpCode >> 49) & 7)