mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-22 03:46:53 +02:00
shader: drop the 64-bit min/max NaN-lhs select the ordered compare already covers
This commit is contained in:
@@ -20,9 +20,8 @@ uint32_t EmitMinMaxF64(EmitterState& state, uint32_t lhs, uint32_t rhs, bool max
|
|||||||
result = Select(state, TypeF64(state), equal,
|
result = Select(state, TypeF64(state), equal,
|
||||||
Unary(state, spv::OpBitcast, TypeF64(state), equal_bits), result);
|
Unary(state, spv::OpBitcast, TypeF64(state), equal_bits), result);
|
||||||
|
|
||||||
// Non-IEEE mode selects the other operand for NaN, and lhs when both are NaN.
|
// Non-IEEE mode selects the other operand for NaN, and lhs when both are NaN. The ordered
|
||||||
result = Select(state, TypeF64(state), Unary(state, spv::OpIsNan, TypeBool(state), lhs),
|
// compares already pick rhs for a NaN lhs.
|
||||||
rhs, result);
|
|
||||||
return Select(state, TypeF64(state), Unary(state, spv::OpIsNan, TypeBool(state), rhs),
|
return Select(state, TypeF64(state), Unary(state, spv::OpIsNan, TypeBool(state), rhs),
|
||||||
lhs, result);
|
lhs, result);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user