mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-17 03:47:03 +02:00
gl_shader_decompiler: Implement SEL instruction.
This commit is contained in:
parent
656986bf34
commit
3a6bad38b6
2 changed files with 20 additions and 0 deletions
|
|
@ -1139,6 +1139,15 @@ private:
|
|||
"((" + op_a + " << " + shift + ") + " + op_b + ')', 1, 1);
|
||||
break;
|
||||
}
|
||||
case OpCode::Id::SEL_C:
|
||||
case OpCode::Id::SEL_R:
|
||||
case OpCode::Id::SEL_IMM: {
|
||||
std::string condition =
|
||||
GetPredicateCondition(instr.sel.pred, instr.sel.neg_pred != 0);
|
||||
regs.SetRegisterToInteger(instr.gpr0, true, 0,
|
||||
'(' + condition + ") ? " + op_a + " : " + op_b, 1, 1);
|
||||
break;
|
||||
}
|
||||
case OpCode::Id::LOP_C:
|
||||
case OpCode::Id::LOP_R:
|
||||
case OpCode::Id::LOP_IMM: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue