mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 11:52:12 +01:00
[dxbc] Fix NaN handling in not-equal comparison
Ne and Dne are unordered in DXBC. Avoid FUnordNotEqual to avoid potential issues with drivers and debugging tools.
This commit is contained in:
parent
d128d776ad
commit
59d4e8a36a
@ -1892,8 +1892,9 @@ namespace dxvk {
|
||||
|
||||
case DxbcOpcode::Ne:
|
||||
case DxbcOpcode::DNe:
|
||||
condition = m_module.opFOrdNotEqual(
|
||||
conditionType, src.at(0).id, src.at(1).id);
|
||||
// Avoid poorly supported FUnordNotEqual
|
||||
condition = m_module.opLogicalNot(conditionType,
|
||||
m_module.opFOrdEqual(conditionType, src.at(0).id, src.at(1).id));
|
||||
break;
|
||||
|
||||
case DxbcOpcode::IEq:
|
||||
|
Loading…
x
Reference in New Issue
Block a user