shader: avoid double greater-than in the v_div_fmas_f32 helper #870
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/877"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-23T15:17:01Z.
Change
Fixes #876. The
v_div_fmas_f32helper from #704 avoids the double>that faults on the Windows 10 in-box WARP. In the midpoint branch,(s_sc > 0.0 && err_sc > 0.0)becomes(s_sc >= 0.0 && err_sc >= 0.0). That branch runs only whenerr_sc != 0.0and the midpoint test has accepted a finite, nonzeros_sc, so>=and>agree there. DXC now emits onlyolt,ogeandunedouble comparisons for the helper.docs/experiments.mdnotes the restriction next to the helper's description.Verification
Commit
4a19ceconfc89b9e, Windows 10 22H2 (build 19045), Visual Studio 2026 18.12 (MSVC 19.52), Windows SDK 10.0.26100, DXC 1.9.2609, Python 3.13.7. D3D12 debug layer not enabled.The same two tests passed with the app-local WARP 1.0.22 build and the
releasepreset on the same change before the rebase (7ebf538on041ca68). Before the change on041ca68,pixel_aot_div_fmas_warpfailed on the in-box WARP withDXGI_ERROR_DEVICE_REMOVEDfor all 10 cases.pixel_aot_div_fmas_hardwarepassed.All 10 cases keep their exact expected words, including the midpoint, both subnormal-midpoint cases and cancellation. The test's mutation controls are unchanged and still fail as expected.
Evidence and follow-up
The issue has the per-predicate measurements and a minimal shader. Within the helper only the
ogtchanges:clampand the<,!=comparisons already ran on the in-box WARP.Checklist
AI-assisted: prepared with Claude Code; the commands and results above were run on the author's PC.
🤖 Generated with Claude Code
upstream-sync referenced this pull request2026-11-25 13:00:54 +00:00