shader/arithmetic: Implement FCMP immediate + register variant

Trivially add the encoding for this.
This commit is contained in:
ReinUsesLisp 2020-10-28 17:05:41 -03:00
parent 725fcbb368
commit 44b552be71
2 changed files with 4 additions and 1 deletions

View file

@ -137,7 +137,8 @@ u32 ShaderIR::DecodeArithmetic(NodeBlock& bb, u32 pc) {
break;
}
case OpCode::Id::FCMP_RR:
case OpCode::Id::FCMP_RC: {
case OpCode::Id::FCMP_RC:
case OpCode::Id::FCMP_IMMR: {
UNIMPLEMENTED_IF(instr.fcmp.ftz == 0);
Node op_c = GetRegister(instr.gpr39);
Node comp = GetPredicateComparisonFloat(instr.fcmp.cond, std::move(op_c), Immediate(0.0f));