diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2021-01-08 22:55:55 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-08 22:55:55 -0300 |
| commit | b9200dd734d4201ec9d8e07e203152d32392a69e (patch) | |
| tree | a4fbf2e58d246601583e894a8f150124b32eecff /Ryujinx.Graphics.Shader/Instructions | |
| parent | a9cb31e75fe269519f6be71ae83627ee21d1bc1f (diff) | |
Support conditional on BRK and SYNC shader instructions (#1878)
* Support conditional on BRK and SYNC shader instructions
* Add TODO comment and bump cache version
Diffstat (limited to 'Ryujinx.Graphics.Shader/Instructions')
| -rw-r--r-- | Ryujinx.Graphics.Shader/Instructions/InstEmitFlow.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.Shader/Instructions/InstEmitFlow.cs b/Ryujinx.Graphics.Shader/Instructions/InstEmitFlow.cs index 332074ae..d4ab5955 100644 --- a/Ryujinx.Graphics.Shader/Instructions/InstEmitFlow.cs +++ b/Ryujinx.Graphics.Shader/Instructions/InstEmitFlow.cs @@ -146,6 +146,7 @@ namespace Ryujinx.Graphics.Shader.Instructions } else { + // TODO: Support CC here aswell (condition). foreach (KeyValuePair<OpCodePush, int> kv in op.Targets) { OpCodePush pushOp = kv.Key; @@ -176,9 +177,9 @@ namespace Ryujinx.Graphics.Shader.Instructions Operand pred = Register(op.Predicate); - if (op is OpCodeBranch opBranch && opBranch.Condition != Condition.Always) + if (op is OpCodeConditional opCond && opCond.Condition != Condition.Always) { - Operand cond = GetCondition(context, opBranch.Condition); + Operand cond = GetCondition(context, opCond.Condition); if (op.Predicate.IsPT) { |
