Tests: verify direct DXIL vs HLSL GPU parity for BVH ray-box and ray-triangle ops #2087
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2087
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2087"
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?
@ramon-victor on GitHub · 2026-11-25 03:35 UTC · original
ramon-victor:tests/gpu-dxil-bvh-parity→main· +328 −0 · 1 files · 1 commits · openAdd GPU differential parity tests between the direct RDNA2 → DXIL translator (
xcl::gpu::dxil::kernel::translate, validated withdxil.dll), the HLSL + DXC path (xcl::gpu::recomp), and the CPU BVH reference (xcl::gpu::bvh::intersect_node) forIMAGE_BVH_INTERSECT_RAYandIMAGE_BVH64_INTERSECT_RAYacross wave32 and wave64 (split wave64 on wave32-only GPUs). Test-only change; no runtime files modified.What is in it
crates/xcl/tests/gpu_dxil_bvh_parity.rs:direct_dxil_bvh_box32_box16_and_exec_mask_parity: Box32 sorted and unsorted child ordering, Box16 half-precision bounds,t_maxculling, NaN-disabled and inverted boxes, axis-aligned grazing rays (dx == 0,inv.x == +inf), full misses, and inactiveEXECdestination preservation.direct_dxil_bvh_triangle_pair_and_bvh64_parity: rotated quad triangle pair (tri0/tri1) through bothIMAGE_BVH_INTERSECT_RAYandIMAGE_BVH64_INTERSECT_RAY, asserting parity across Direct DXIL, HLSL+DXC, and CPUbvh::intersect_node.direct_dxil_bvh64_multi_window_parity: 2-window UMA arena (Uma::with_windows(2, 1 MiB)) with BVH in window 1 and poisoned decoy in window 0, checking both 64-bit node pointers (IMAGE_BVH64_INTERSECT_RAY, base 0) and 48-bitbvh_wordsdescriptors (IMAGE_BVH_INTERSECT_RAY).Tested
x86_64-pc-windows-msvc), DXC 1.8.2502.11 (Windows SDK 10.0.26100.0), debug build.cargo test -p xcl --test gpu_dxil_bvh_parity -- --nocapture: 3 passed, 0 failed, 0 ignored (0 SKIPPED; each test ran both wave32 and split wave64 through both Direct DXIL and HLSL+DXC)..\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4) on headdc0ef7f: 1157 passed, 0 failed, 46 ignored (24 SKIPPED GPU tests: 20no wave64, 3per-lane form#1426, 1no heap windows).Not tested
AI use
@JJAutoCompare on GitHub · 2026-11-25 03:44 UTC · original
PR #2087 — Arc A770 ray-triangle parity
Tested
dc0ef7fd41b702a7cdad5bb4b0772a780af0f699before and after the run. The assigned worktree was clean and detached at that SHA. The live discussion had noJJAutoComparereport or follow-up comment, and the all-project T3 search for2087returned only this worker.26200.9974, AMD Ryzen 7 3800X and Intel Arc A770 driver32.0.101.9175. Rust1.100.0 (0ef1bc386 2026-11-09)targetedx86_64-pc-windows-msvcand Cargo was1.100.0 (3acc79c0c 2026-11-05). Test stderr confirmed DXC and DXIL1.9.2609.5from the configured directory.IMAGE_BVH_INTERSECT_RAYandIMAGE_BVH64_INTERSECT_RAYusing alternatingtri0andtri1nodes from a rotated quad in one memory window. It compiled and dispatched both the HLSL/DXC and direct DXIL paths, including validation of the direct DXIL. For each lane, direct 32-bit and 64-bit node-pointer results matched bit-for-bit. Direct and HLSL results agreed with the CPUbvh::intersect_nodehit/miss classification through the direct result, and the fixture checked the four normalized hit components against HLSL and CPU with an absolute tolerance of1e-5. Both modes met the assertion of at least four hits per mode.gpu_modes()gate and the same-host Arc capability log, which recordsWaveLaneCountMin=8andWaveLaneCountMax=32. The fixture does not print its wave modes or per-mode hit totals.Commands
Cargo's JSON artifact record selected the executable. The build and run logs, exit codes, and executable path are stored beside this report. The wrapper logged lock release, and the assigned Cargo target slot is released.
Not tested
Box32/Box16 and EXEC masks, multi-window addressing, native Wave64, other adapters, the workspace suite, retail data, and title smoke runs.
AI use
T3 Code / Codex (
gpt-6.2-sol) ran and recorded this focused verification.@DarkPanda69 on GitHub · 2026-11-25 03:52 UTC · original
Native 64-lane wave64 run on AMD, which this PR lists as not tested (the RTX 3070 ran wave64 split; the other report here is Arc). AMD also has hardware ray accelerators, so this is the BVH parity on a GPU with its own RT units.
Tested: pass, head
dc0ef7fapplied on its basemaincbc296a, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, DXC 1.9.2602.17.cargo test -p xcl --test gpu_dxil_bvh_parity -- --test-threads=4withXCL_ADAPTERset to each GPU:AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
@JoaoPauluu on GitHub · 2026-11-25 05:26 UTC · original
A run with vkd3d-proton as the host D3D12, so both the direct DXIL and the HLSL → DXC output go through dxil-spirv and the NVIDIA Vulkan driver: all 3 parity tests pass, none skipped.
Tested
x86_64-pc-windows-gnu.dc0ef7fas it is (merge base withmaincbc296a), no uncommitted changes. Thegpu_dxil_bvh_paritytest binary runs under Wine, one test per process.direct_dxil_bvh64_multi_window_parity: okdirect_dxil_bvh_box32_box16_and_exec_mask_parity: okdirect_dxil_bvh_triangle_pair_and_bvh64_parity: okNot tested
AI use
@DavidM1911 on GitHub · 2026-11-25 05:27 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.Thanks!
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.