Allow floating-point tolerance for ray distance in check_dxr_update #112
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!112
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/112/head"
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?
@Holastor on GitHub · 2026-11-21 16:21 UTC · original
Holastor:fix/dxr-update-tolerance→main· +7 −1 · 1 files · 3 commits · merged 2026-11-21 17:35 UTCChange
Verification
Command
Result
• Before: Failed (record=0 field=3 expected=3f800000 actual=3f7fffff).
• After: Passed in 0.14s:
dxr_tier=11 shader_model_capped_at_6_5=0x65
dxr_update rays=7 changed_hits=4 in_place_matches_rebuild=1
debug_errors=0 debug_warnings=0
1/1 Test #19: dxr_update_hardware .............. Passed 0.14 sec
Software adapter test dxr_update_warp continues to pass unchanged.
Evidence and follow-up
• Matches the existing floating-point comparison pattern established in check_dxr_query:
const bool distance_matches = hit ? std::abs(distance - 1.f) < 1e-5f : value[3] == 0;
• Resolves the false-positive failure on AMD Radeon RX 6000-series mobile and desktop adapters under recent
Adrenalin drivers.
@danielradosa on GitHub · 2026-11-21 16:27 UTC · original
Same result on a second RDNA 2 device: the integrated AMD Radeon(TM) Graphics of a Ryzen 5 7600 (vendor
1002, device164e), driver32.0.21045.29003, Windows 11 build 26300.9974, debug layer enabled.mainat88fd8c5, with the adapter selection from #116 to reach the integrated GPU:dxr_update_hardwarefails withrecord=0 field=3 expected=3f800000 actual=3f7fffff.dxr_update rays=7 changed_hits=4 in_place_matches_rebuild=1, 0 debug errors and 0 warnings).dxr_update_warp, anddxr_update_hardwareon the RTX 4060 in the same PC, also pass.@denn0x on GitHub · 2026-11-21 17:33 UTC · original
RDNA 4 confirmation: the RX 9070 XT shows the same 1-ULP distance, and this branch fixes it.
maindxr_update_hardwaredxr_update_warpmainat245b207record=0 field=3 expected=3f800000 actual=3f7fffffd92f364rays=7 changed_hits=4 in_place_matches_rebuild=1Every run reports
debug_errors=0 debug_warnings=0. Together with the RX 6600M and the Ryzen 5 7600 iGPU, the 1-ULP result now shows up on RDNA 2 and RDNA 4. The RDNA 2 drivers were 32.0.21045.x; this one is 32.0.32015.7029.AI-assisted (Claude Code); run locally on the configuration above.