Add OpSMod support with other modulo operations

This commit is contained in:
baldurk committed 2020-04-08 18:39:03 +01:00
1 parent 8a6dbd7045
commit 96c7eb0b93
2 files changed
+22 -26

No files matched your search

@@ -1011,6 +1011,7 @@ void ThreadState::StepNext(ShaderDebugState *state,
case Op::SDiv:
case Op::UDiv:
case Op::UMod:
case Op::SMod:
case Op::SRem:
case Op::IAdd:
case Op::ISub:
@@ -1117,7 +1118,7 @@ void ThreadState::StepNext(ShaderDebugState *state,
}
}
}
else if(opdata.op == Op::SRem)
else if(opdata.op == Op::SRem || opdata.op == Op::SMod)
{
for(uint8_t c = 0; c < var.columns; c++)
{