[dxbc] Fix the udiv crap again

This commit is contained in:
Philip Rebohle 2020-03-26 17:17:01 +01:00
parent 62c2c9cd15
commit 5750a7d85c
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 3 additions and 3 deletions

View File

@ -2055,10 +2055,10 @@ namespace dxvk {
};
// 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 constff = emitBuildConstVecu32(~0u, ~0u, ~0u, ~0u, ins.dst[0].mask);
DxbcRegisterValue const0 = emitBuildConstVecu32( 0u, 0u, 0u, 0u, srcMask);
DxbcRegisterValue constff = emitBuildConstVecu32(~0u, ~0u, ~0u, ~0u, srcMask);
uint32_t cmpValue = m_module.opINotEqual(bvecId, src.at(1).id, const0.id);