Allow floating-point tolerance for ray distance in check_dxr_update #111
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/112"
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 Holastor on 2026-11-21T16:21:22Z.
Change
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.
Imported from R0Y00/Xbox2Windows. Originally posted by danielradosa on 2026-11-21T16:27:49Z.
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.Imported from R0Y00/Xbox2Windows. Originally posted by denn0x on 2026-11-21T17:33:51Z.
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.