shader_recompiler: Fix V_CMP_U_F32 (#2082)

This commit is contained in:
squidbus 2025-01-07 01:36:14 -08:00 committed by GitHub
parent 7bf467c653
commit 86038e6a71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -904,7 +904,7 @@ void Translator::V_CMP_F32(ConditionOp op, bool set_exec, const GcnInst& inst) {
case ConditionOp::GE:
return ir.FPGreaterThanEqual(src0, src1);
case ConditionOp::U:
return ir.LogicalNot(ir.LogicalAnd(ir.FPIsNan(src0), ir.FPIsNan(src1)));
return ir.LogicalOr(ir.FPIsNan(src0), ir.FPIsNan(src1));
default:
UNREACHABLE();
}