mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-11 10:54:58 +00:00
gl_shader_decompiler: F2F_R instruction: Implement abs.
This commit is contained in:
parent
68937a662d
commit
6fcc7e9c36
1 changed files with 7 additions and 1 deletions
|
@ -853,7 +853,13 @@ private:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case OpCode::Id::F2F_R: {
|
case OpCode::Id::F2F_R: {
|
||||||
regs.SetRegisterToFloat(instr.gpr0, 0, regs.GetRegisterAsFloat(instr.gpr20), 1, 1);
|
std::string op_a = regs.GetRegisterAsFloat(instr.gpr20);
|
||||||
|
|
||||||
|
if (instr.conversion.abs_a) {
|
||||||
|
op_a = "abs(" + op_a + ')';
|
||||||
|
}
|
||||||
|
|
||||||
|
regs.SetRegisterToFloat(instr.gpr0, 0, op_a, 1, 1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
|
|
Loading…
Reference in a new issue