mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-15 07:29:17 +01:00
[dxbc] Fix the udiv crap again
This commit is contained in:
parent
62c2c9cd15
commit
5750a7d85c
@ -2055,10 +2055,10 @@ namespace dxvk {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Division by zero will return 0xffffffff for both results
|
// Division by zero will return 0xffffffff for both results
|
||||||
auto bvecId = getVectorTypeId({ DxbcScalarType::Bool, ins.dst[0].mask.popCount() });
|
auto bvecId = getVectorTypeId({ DxbcScalarType::Bool, srcMask.popCount() });
|
||||||
|
|
||||||
DxbcRegisterValue const0 = emitBuildConstVecu32( 0u, 0u, 0u, 0u, ins.dst[0].mask);
|
DxbcRegisterValue const0 = emitBuildConstVecu32( 0u, 0u, 0u, 0u, srcMask);
|
||||||
DxbcRegisterValue constff = emitBuildConstVecu32(~0u, ~0u, ~0u, ~0u, ins.dst[0].mask);
|
DxbcRegisterValue constff = emitBuildConstVecu32(~0u, ~0u, ~0u, ~0u, srcMask);
|
||||||
|
|
||||||
uint32_t cmpValue = m_module.opINotEqual(bvecId, src.at(1).id, const0.id);
|
uint32_t cmpValue = m_module.opINotEqual(bvecId, src.at(1).id, const0.id);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user