gpu: compare dxr_address_ranges with a direct-address DXR control #1353
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1360"
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 MasterDomino on 2026-11-24T09:13:32Z.
Refs #874
dxr_address_ranges_hardwarefailed on an AMD Radeon RX 9070 XT, although every hit, instance ID, primitive and miss matched. The fixture compared the hit distance with the fixed bits of 1.0 and 2.0, and that adapter returns t one ULP below. As R0Y00 asked on #874, the fixture now adds a native D3D12 control on the same adapter and compares against it.Change (
tests/dxr_check.cpp,check_dxr_address_ranges)AddressScenegets aroute:title: unchanged. Builds and instances resolve throughera_title_va::Table.direct: the native control, with the same triangles, masks, rays and instance transforms. The two BLAS builds and the TLAS instance descriptors get the two BLAS GPU addresses directly, without the range table. Withtruncate, both instances explicitly name the left BLAS.misroute_high: the title path, but the high instance is looked up at the low title base on purpose.hit7, miss, miss, hit11full, andhit7, miss, hit11, misstruncated, on both title and direct.dxr_address_rows), along with the distance bits of rays 0 and 3 and of the truncated ray 2 against 1.0 / 2.0 (dxr_address_distance).docs/experiments.md: the paragraph describes the control and the measured bits.Results
main+ this change atf008456f,releasepreset, MSVC 19.44.35207, DXC 1.8.2502.11, Windows 11 26H2 build 26300.9974, D3D12 debug layer enabled (debug_errors=0 debug_warnings=0).AMD Radeon RX 9070 XT (
1002:7550), driver32.0.31044.16. Pass:WARP
10.0.26100.9818. Pass:On the RX 9070 XT the direct-address control gives the same one-ULP-low t as the title path:
0x3f7ffffffor 1.0 and0x3ffffffffor 2.0. So the difference comes from that device's triangle intersection, not from address translation. In both backends, the title rows equal the direct rows in all four words. The misrouted high instance changes ray 2 to a hit and ray 3 to a miss, and is caught.Before this change: at
f5d83c31,dxr_address_ranges_hardwarefailed 3 of 3 times on the same adapter ("mismatch at ray 0"), with the same title rows as above.Other DXR tests:
ctest -R '^(gpu_alias_(warp|hardware)|dxr_.*)$'inreleaseanddevpresets on the base1e8b0570: everything passes except two hardware tests this PR does not touch:dxr_opacity_hardware, the known #1011 failure.dxr_placed_build_hardware. Its fixed expectation{1,7,0,0x3f800000, …}meets the same one-ULP t (0x3f7fffff, 2 of 2 runs, measured with a local print that is not committed). I left it out of this PR and mentioned it on #874.AI-assisted.
🤖 Generated with Claude Code