aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/Instructions/InstEmitFlowControl.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2023-01-21 12:18:05 -0300
committerGitHub <noreply@github.com>2023-01-21 12:18:05 -0300
commit6adf15e479b684cad7a783e7a1a056be087fdc02 (patch)
tree857c8b14af4e49c2aa939b1496d7f53f304247bb /Ryujinx.Graphics.Shader/Instructions/InstEmitFlowControl.cs
parent2747f125918951673b298964889276ded5de935d (diff)
Implement CSET and CSETP shader instructions (#4318)1.1.583
* Implement CSET and CSETP shader instructions * Shader cache version bump * Fix CC.HI
Diffstat (limited to 'Ryujinx.Graphics.Shader/Instructions/InstEmitFlowControl.cs')
-rw-r--r--Ryujinx.Graphics.Shader/Instructions/InstEmitFlowControl.cs18
1 files changed, 1 insertions, 17 deletions
diff --git a/Ryujinx.Graphics.Shader/Instructions/InstEmitFlowControl.cs b/Ryujinx.Graphics.Shader/Instructions/InstEmitFlowControl.cs
index f1dd279c..91c23230 100644
--- a/Ryujinx.Graphics.Shader/Instructions/InstEmitFlowControl.cs
+++ b/Ryujinx.Graphics.Shader/Instructions/InstEmitFlowControl.cs
@@ -257,7 +257,7 @@ namespace Ryujinx.Graphics.Shader.Instructions
}
else
{
- // TODO: Support CC here aswell (condition).
+ // TODO: Support CC here as well (condition).
foreach (SyncTarget target in targets.Values)
{
PushOpInfo pushOpInfo = target.PushOpInfo;
@@ -318,21 +318,5 @@ namespace Ryujinx.Graphics.Shader.Instructions
context.BranchIfTrue(label, pred);
}
}
-
- private static Operand GetCondition(EmitterContext context, Ccc cond, int defaultCond = IrConsts.True)
- {
- // TODO: More condition codes, figure out how they work.
- switch (cond)
- {
- case Ccc.Eq:
- case Ccc.Equ:
- return GetZF();
- case Ccc.Ne:
- case Ccc.Neu:
- return context.BitwiseNot(GetZF());
- }
-
- return Const(defaultCond);
- }
}
} \ No newline at end of file