aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/Instructions/InstEmitAluHelper.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2020-01-06 18:52:47 -0300
committerThog <thog@protonmail.com>2020-01-09 02:13:00 +0100
commit912e43e9795309de675faefd628b209a27af8add (patch)
tree0202f16debea5cbbb0d46457220593aa82d392dd /Ryujinx.Graphics.Shader/Instructions/InstEmitAluHelper.cs
parent6407729a1df737305860fa396456b86b403dc06e (diff)
Remove some unused args on the shader translator
Diffstat (limited to 'Ryujinx.Graphics.Shader/Instructions/InstEmitAluHelper.cs')
-rw-r--r--Ryujinx.Graphics.Shader/Instructions/InstEmitAluHelper.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/Ryujinx.Graphics.Shader/Instructions/InstEmitAluHelper.cs b/Ryujinx.Graphics.Shader/Instructions/InstEmitAluHelper.cs
index da5c7fed..572068da 100644
--- a/Ryujinx.Graphics.Shader/Instructions/InstEmitAluHelper.cs
+++ b/Ryujinx.Graphics.Shader/Instructions/InstEmitAluHelper.cs
@@ -71,26 +71,26 @@ namespace Ryujinx.Graphics.Shader.Instructions
// previous result when extended is specified, to ensure
// we have ZF set only if all words are zero, and not just
// the last one.
- Operand oldZF = GetZF(context);
+ Operand oldZF = GetZF();
Operand res = context.BitwiseAnd(context.ICompareEqual(dest, Const(0)), oldZF);
- context.Copy(GetZF(context), res);
+ context.Copy(GetZF(), res);
}
else
{
- context.Copy(GetZF(context), context.ICompareEqual(dest, Const(0)));
+ context.Copy(GetZF(), context.ICompareEqual(dest, Const(0)));
}
- context.Copy(GetNF(context), context.ICompareLess(dest, Const(0)));
+ context.Copy(GetNF(), context.ICompareLess(dest, Const(0)));
}
public static void SetFPZnFlags(EmitterContext context, Operand dest, bool setCC)
{
if (setCC)
{
- context.Copy(GetZF(context), context.FPCompareEqual(dest, ConstF(0)));
- context.Copy(GetNF(context), context.FPCompareLess (dest, ConstF(0)));
+ context.Copy(GetZF(), context.FPCompareEqual(dest, ConstF(0)));
+ context.Copy(GetNF(), context.FPCompareLess (dest, ConstF(0)));
}
}
}