shader: correct FP32 BVH descriptor byte units and child results #3040
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!3040
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3040"
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?
@chadhyatt on GitHub · 2026-11-27 10:18 UTC · original
chadhyatt:backport/bvh-fp32-correctness→main· +202 −122 · 3 files · 1 commits · merged 2026-11-27 11:29 UTCAI-assisted backport patch from x2w-microlift
Refs #2922, #3032. Decode the 40-bit descriptor base in 256-byte units, preserve all four descriptor DWORDs and refuse unsupported 48-bit node-address wraps. With sorting disabled, keep original child slots; sorted misses use +infinity so valid FLT_MAX hits sort first.
Source-built regression cases compare the public independent box model, exact descriptor literal/manifest values, unsorted holes and the infinity boundary. GPU dispatch controls exercise actual emitted HLSL mutations when available. No runtime BVH binding changes.
Verified commit
5d325d3039on Apple Silicon macOS:python3 -B tests/gfx1030_bvh_box/check.py --model-only(315 witnesses, 231 node, 84 pointer, 0 mismatches);python3 -B tests/startup_gfx2hlsl_bvh_check.py(all checks passed; DXC compile capability skipped). Windows GPU dispatch not run.The overlapping binary16 extension should carry the same semantics; see coordination in #3032.
@RonLogic on GitHub · 2026-11-27 10:29 UTC · original
Independent Windows verification at
5d325d30390e7864f1bd3da53306cbfe0a4cafd3: the source-builttests/gfx1030_bvh_box/check.py --model-onlysuite matched all 315 witnesses.python -B tests/startup_gfx2hlsl_bvh_check.py dispatch <dxc> <offscreen_check> <backend>passed all 11 baseline cases and caught all five mutations on both in-box WARP (10.0.26100.10068) and RTX 4070 (32.0.16.2124). In particular the low/high descriptor-base controls, unsorted holes and FLT_MAX/miss boundary passed on both. Windows26300.10075, SDK DXC1.9.2602.17, existing MSVC Release runner using its unchanged--raw-uav-dumppath. D3D12 debug enabled, zero errors or warnings and no skips.@R0Y00 on GitHub · 2026-11-27 11:29 UTC · original · approved these changes
Reviewed
5d325d30onmain67e60e8f(tested integration tree2bdf003a).python -B tests/gfx1030_bvh_box/check.py --model-onlymatched all 315 witnesses, andpython -B tests/startup_gfx2hlsl_bvh_check.pypassed. The fixture'sdispatch <dxc> <offscreen_check> <warp|hardware>invocation passed 11 baseline cases and caught all five mutations on WARP and RTX with both Debug and Release /O2 renderers. The unchanged renderer and adapter helper sources match the reusable builds. Encoded 40-bit base fields, unsorted child holes, and the FLT_MAX boundary matched. Windows 11 26200.9974, SDK 10.0.26100, WARP 10.0.26100.9818, RTX 4060 Laptop driver 32.0.16.1656, debug layer enabled, no errors or warnings, no skips. Hosted Windows, Linux Python and gfx1013 passed. #3032 should take this corrected descriptor and child-order baseline before its binary16 extension.