mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-05 04:49:59 +00:00
shader_decode: Implement FMUL32_IMM
This commit is contained in:
parent
2edee801ce
commit
c9b2a1b051
1 changed files with 10 additions and 0 deletions
|
@ -21,6 +21,16 @@ u32 ShaderIR::DecodeArithmeticImmediate(BasicBlock& bb, u32 pc) {
|
||||||
SetRegister(bb, instr.gpr0, GetImmediate32(instr));
|
SetRegister(bb, instr.gpr0, GetImmediate32(instr));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case OpCode::Id::FMUL32_IMM: {
|
||||||
|
UNIMPLEMENTED_IF_MSG(instr.op_32.generates_cc,
|
||||||
|
"Condition codes generation in FMUL32 is not implemented");
|
||||||
|
Node value =
|
||||||
|
Operation(OperationCode::FMul, PRECISE, GetRegister(instr.gpr8), GetImmediate32(instr));
|
||||||
|
value = GetSaturatedFloat(value, instr.fmul32.saturate);
|
||||||
|
|
||||||
|
SetRegister(bb, instr.gpr0, value);
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
UNIMPLEMENTED_MSG("Unhandled arithmetic immediate instruction: {}",
|
UNIMPLEMENTED_MSG("Unhandled arithmetic immediate instruction: {}",
|
||||||
opcode->get().GetName());
|
opcode->get().GetName());
|
||||||
|
|
Loading…
Reference in a new issue