gpu: run BVH buffer operations at Shader Model 6.0 #613
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/619"
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 Jess-Doit on 2026-11-22T16:11:02Z.
Change
Compile the five source-built BVH buffer-operation shaders at
cs_6_0and check that minimum in--buffer-ops. This enablesbvh_buffer_ops_warpon Windows 10 in-box WARP, which reports SM 6.2. Both CTests retain exit 77 for a capability skip. The DXIL retarget probes use a dedicated SM 6.5 CopyBlocks build that matches the previous binary byte for byte.Verification
Tested
9e95756over9b0df70on Windows 10 22H2 build 19045.6456, MSVC 19.44.35230, SDK 10.0.26100.0 and DXC 1.9.2602.17. The GTX 1060 6 GB (32.0.15.6094) and in-box WARP (10.0.19041.5794) each matched 9,984 words across 26 cases, with zero debug-layer warnings and errors in Debug and Release. The upstream SM 6.5 build ate3946ddskipped the WARP fixture. DXIL metadata confirms all five outputs are SM 6.0 in both configurations.Each configuration reported 14 passes and seven capability skips. The GTX 1060 retarget probe accepted the signed SM 6.5 fixture and rejected the unsigned and tampered forms. Using the documented app-local Agility SDK 1.620.2 and WARP 1.0.22 setup,
ctest --test-dir out/build/app-local --no-tests=error -V -R '^(bvh_(buffer_ops|reads)_warp|compute_root_warp)$'passed all three tests.python -B tests/docs_links_check.pyandpython -B tests/bidi_controls_check.pypassed.Evidence and follow-up
The existing MIT-licensed fixture still compares every output and sentinel word. In scratch builds, flipping
cases.front().expected[0]beforeupload_words[case_count].fill(sentinel)produced exit 1 on both adapters in both presets. The first difference was word 0, expectedcdfa1539, actualcdfa1538. Simulating an SM 5.1 capability result in Debug produced exit 77 and two CTest skips. Simulating E_INVALIDARG returned 77 and simulating E_FAIL returned 1. Restored the sources and reran the passing fixture.Checklist
AI-assisted implementation and verification.
Imported from R0Y00/Xbox2Windows. Originally posted by MarlomMedeiros on 2026-11-22T18:16:10Z.
Review: COMMENTED
Tested the full 21-test matrix on a second configuration: Windows 11 build 26300.10075, RTX 5070 (10de:2f04) driver 32.0.16.2135, in-box WARP 10.0.26100.10068, debug layer enabled.
Result: 20 passes, one capability skip (
bvh_wave64_hardware, expected on a wave32 adapter). On the author's GTX 1060/Win10 run seven tests skipped; here only one does.Key observations:
bvh_buffer_ops_warpnow runs and passes on WARP (shader_model_capped_at_6_0=0x60, 26 cases x 384 words, mismatches=0, debug_errors=0).bvh_buffer_ops_hardwarepasses on the RTX 5070 with the same word-exact result.D3D12_FEATURE_DATA_SHADER_MODELseeded at 6.0 clamps the reported model to at most 6.0, soHighestShaderModel < 6.0only fires below the floor, and E_INVALIDARG maps to the capability skip.dxc -T cs_6_5 -E CopyBlocks -Vn CopyBlocks -Fh old.h -Fo old.csoproducesc7e55006f862e75eedd3a5dd97cabedf6e9b0cb0d0a82bd0f3c3421ab85a1618, identical to the newCopyBlocksSM65.cso. The retarget probe keeps exercising a true SM 6.5 fixture;dxil_retarget_probe,dxil_retarget_probe_hardwareanddxil_retarget_controlsall pass.bvh_buffer_ops_{adapter}picked upSKIP_RETURN_CODE 77in the loop, the stale hardware-only skip line was removed, andbvh_buffer_ops_warpcorrectly left the cs_6_5 skip group.No blockers found.
AI-assisted: yes. All reported checks ran locally on the adapter and driver listed.
Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-22T16:56:24Z.
Independent AMD (RDNA4) result on
9e95756. Not a code change; measurements only.Environment
dev,XBOX2WINDOWS_ADAPTER='AMD Radeon RX 9070 XT'debug_layer=unavailable(Tools.Graphics.DirectXisNotPresenton this machine), so this run says nothing about validation-layer warnings — same limitation as the report in the PR body.Clean worktree of the PR head
9e95756over9b0df70.Commands
Observed — the test this PR enables
Regression in the same build
ctest --preset dev --no-tests=error -R "^bvh_.*(hardware|warp)$"→ 20 tests, 19 passed, 1 skipped.All ten
_hardwarevariants passed on this adapter:buffer_ops,root_roundtrip,reads,waves,wave64,hits,differential,atomics,numeric,packed.The single skip is
bvh_wave64_warp(capability, lane range), which also skips onmainon this machine — reported separately, not counted as a pass.Conclusion
The SM 6.0 retarget reproduces the same result on a vendor and architecture the original verification did not cover: 9,984 words over 26 cases, zero mismatches, and no regression across the rest of the BVH fixtures. The stated behaviour (exit 77 for a capability skip) is unchanged.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-22T18:15:05Z.
Verification of the current head
49fa6d2on two adapters older than your GTX 1060. Both are in one laptop, on Windows 11 26100.9168 with MSVC 19.52.37029 and thedevpreset, and the debug layer is not installed. The head merges cleanly withmain.I ran your filter once per adapter, with
XBOX2WINDOWS_ADAPTERset toQuadroand thenIntel. Each hardware log names the selected adapter:10de:13b1)bvh_wave64_hardware, lanes 32..32)8086:191b)bvh_wave64_hardware, lanes 16..16)Both adapters report
buffer_cases=26 words_per_case=384 mismatches=0forbvh_buffer_ops_hardware. They also passbvh_buffer_ops_warp, the numeric bounds (655360 words, mismatches=0) anddxil_retarget_probe_hardware. Both adapters already meet SM 6.5 (Quadro 6.6, Intel 6.5), so these runs show that thecs_6_0builds still pass on older hardware. They do not exercise a device below the previous SM 6.5 floor; the Windows 10 WARP run in the description covers that.AI-assisted: run and summarized with Claude Code; outputs copied from the local runs.