diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2020-01-06 18:52:47 -0300 |
|---|---|---|
| committer | Thog <thog@protonmail.com> | 2020-01-09 02:13:00 +0100 |
| commit | 912e43e9795309de675faefd628b209a27af8add (patch) | |
| tree | 0202f16debea5cbbb0d46457220593aa82d392dd /Ryujinx.Graphics.Shader/Instructions/InstEmitAlu.cs | |
| parent | 6407729a1df737305860fa396456b86b403dc06e (diff) | |
Remove some unused args on the shader translator
Diffstat (limited to 'Ryujinx.Graphics.Shader/Instructions/InstEmitAlu.cs')
| -rw-r--r-- | Ryujinx.Graphics.Shader/Instructions/InstEmitAlu.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Ryujinx.Graphics.Shader/Instructions/InstEmitAlu.cs b/Ryujinx.Graphics.Shader/Instructions/InstEmitAlu.cs index 77df3d8d..92354cec 100644 --- a/Ryujinx.Graphics.Shader/Instructions/InstEmitAlu.cs +++ b/Ryujinx.Graphics.Shader/Instructions/InstEmitAlu.cs @@ -125,8 +125,8 @@ namespace Ryujinx.Graphics.Shader.Instructions { // Add carry, or subtract borrow. res = context.IAdd(res, isSubtraction - ? context.BitwiseNot(GetCF(context)) - : context.BitwiseAnd(GetCF(context), Const(1))); + ? context.BitwiseNot(GetCF()) + : context.BitwiseAnd(GetCF(), Const(1))); } SetIaddFlags(context, res, srcA, srcB, op.SetCondCode, op.Extended, isSubtraction); @@ -693,7 +693,7 @@ namespace Ryujinx.Graphics.Shader.Instructions if (extended) { // Add with carry. - res = context.IAdd(res, context.BitwiseAnd(GetCF(context), Const(1))); + res = context.IAdd(res, context.BitwiseAnd(GetCF(), Const(1))); } else { @@ -806,7 +806,7 @@ namespace Ryujinx.Graphics.Shader.Instructions if (!extended || isSubtraction) { // C = d < a - context.Copy(GetCF(context), context.ICompareLessUnsigned(res, srcA)); + context.Copy(GetCF(), context.ICompareLessUnsigned(res, srcA)); } else { @@ -814,9 +814,9 @@ namespace Ryujinx.Graphics.Shader.Instructions Operand tempC0 = context.ICompareEqual (res, srcA); Operand tempC1 = context.ICompareLessUnsigned(res, srcA); - tempC0 = context.BitwiseAnd(tempC0, GetCF(context)); + tempC0 = context.BitwiseAnd(tempC0, GetCF()); - context.Copy(GetCF(context), context.BitwiseOr(tempC0, tempC1)); + context.Copy(GetCF(), context.BitwiseOr(tempC0, tempC1)); } // V = (d ^ a) & ~(a ^ b) < 0 @@ -827,7 +827,7 @@ namespace Ryujinx.Graphics.Shader.Instructions Operand tempV = context.BitwiseAnd(tempV0, tempV1); - context.Copy(GetVF(context), context.ICompareLess(tempV, Const(0))); + context.Copy(GetVF(), context.ICompareLess(tempV, Const(0))); SetZnFlags(context, res, setCC: true, extended: extended); } |
