Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request microsoft#80 from microsoft/user/tvandewalle/rcp_f…
…ixes [Translate_RCP] Handle modifiers on src0 before performing movc The rcp instruction is allowed to have modifiers on src0, such as _abs. When we perform the translation, src0 gets passed as the comparison param for movc, which is not allowed to have modifiers. When we detect that src0 has modifiers present, we need to handle that by doign a mov into a temp register. This was actually done in microsoft#51 , but when CSGO was found to have rendering issues after the changes the movc fix got reverted too (microsoft#55 ). This PR brings back the movc fixes from those earlier PRs, but doesn't pick up the change to use FLT_MAX. This is technically not to spec, as we should be using FLT_MAX here. However, since CSGO (d3d9 version) was found to expect non-FLT_MAX values when doing an rcp of 0, we're going to keep the out of spec approach in case other apps have the same expectation.
- Loading branch information