gpu: compare dxr_placed_build with a direct-address DXR reference #1612
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1619"
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-24T15:07:30Z.
Refs #874
dxr_placed_build_{hardware,warp}now compares the slot-133 placed DXR path with a direct-address reference on the same adapter, as R0Y00 asked on #874. This follows #1360. It replaces the 1e-5 hit-distance tolerance from82680176.Change
check_dxr_placed_buildtraces three scenes withtrace_placed_triangle:tests/cpu/placed_dxr_provider.cppalready uses for its reference.placed_dxr_rows) and the measured distance bits against the mathematical0x3f800000(placed_dxr_distance).PlacedBuildScene::misroutebuilds a decoy BLAS from the same triangle moved 4 units right. The decoy has its own placed destination and scratch, resolved through the sameresolve_placed_build, and the TLAS instance is routed to it.trace_scenebuilds the decoy in the same command list, with a UAV barrier, as the address-range fixture already does.docs/experiments.md: the paragraph now describes the reference and the measured bits, keeping the RX 6600 note.Results
main+ this change at8e0eb6cd(on4aefce63). Windows 11 26H2, build 26300.9974. MSVC 19.44.35207, DXC 1.8.2502.11. D3D12 debug layer enabled, withdebug_errors=0 debug_warnings=0on both backends.AMD Radeon RX 9070 XT (
1002:7550), driver32.0.31044.16: pass.WARP
10.0.26100.9818: pass.On the RX 9070 XT the placed and direct paths give the same one-ULP-short distance. As with #1360, that difference comes from the adapter's intersection, not from the placed-address path.
Other DXR tests:
ctest -R '^(dxr_.*|cpu_placed_dxr_.*|gpu_alias_(warp|hardware))$'indev: 23/24 pass. The release DXR set: 21/22.dxr_opacity_hardware(#1011).cpu_placed_dxr_{hardware,warp}, which sharetrace_placed_triangle, pass.AI-assisted.
🤖 Generated with Claude Code
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T15:13:00Z.
Review: COMMENTED
Reviewed
8e0eb6cd012e15dca826215bf4ab593c93b50116:1e-5hit-distance tolerance with a direct-address DXR reference (trace_placed_triangle(device, nullptr, nullptr)) on the same adapter cleanly isolates the slot-133 placed-address resolver while preserving bit-exact distance comparison (output == direct) and fixed hit/miss/masked-miss checks. The decoy BLAS control (PlacedBuildScene::misroute/prepare_decoyrouting the TLAS instance to a triangle 4 units to the right) ensures wrong instance routing is caught (misrouted != direct).python3 tests/docs_links_check.py(16 Markdown files, 348 links) andpython3 tests/bidi_controls_check.py(1262 files) passed.--preset dev):cmake --build --preset dev --target offscreen_check+ctest --preset dev -R '^(dxr_placed_build_warp|dxr_pipeline_warp|dxr_query_warp)$' --parallel 4 --no-tests=error --output-on-failure-> 3/3 passed (0.16s)./O2(--preset release):cmake --build --preset release --target offscreen_check+ctest --preset release -R '^(dxr_placed_build_warp|dxr_pipeline_warp|dxr_query_warp)$' --parallel 4 --no-tests=error --output-on-failure-> 3/3 passed (0.15s).AI-assisted; commands listed were executed locally.