shader: run SPIR-V subgroup compaction at Shader Model 6.0 #815
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/821"
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-23T08:48:23Z.
## Change
Build the source-built SPIR-V subgroup compaction fixture and its direct HLSL control as
cs_6_0so the test can run on Windows 10 in-box D3D12. Gate only--spirv-compactionon SM 6.0 and WaveOps, and report the missing capability before creating a pipeline.Use one thread to write the shared wave-width word. Validate each negative control against the complete mutated CPU reference, including guards, and treat a bad lane map at a supported width as a readback failure. Refs #768 and #791.
Verification
Tested commit
4ace7968090f11f16114681a804368fd71f1fa37on Windows 10 22H2 build 19045.6456 with MSVC 19.44.35230, SDK 10.0.26100.0, DXC 1.9.2602.17, and LunarG Vulkan SDK 1.4.363.0 SPIR-V tools.Both masks matched all 328 words on the bridge and direct HLSL paths. Repeats were identical. The controls diverged from the original reference at words 65 and 257, and matched every word of their mutated references. All 72 compaction dispatches had zero D3D12 warnings and errors with the debug layer enabled.
With Python, DXC and the SPIR-V tools configured as in the experiment instructions, run the in-box checks:
Each in-box configuration had seven passes, six expected SM 6.6 skips (address window, ballot extraction and comparison samplers on each adapter), and zero failures.
With separate
out/build/app-local-devandout/build/app-local-releasebuilds configured usingOFFSCREEN_AGILITY_620_DIRandOFFSCREEN_WARP_DIR, run:App-local WARP passed all seven checks per configuration.
python -B tests/docs_links_check.py,python -B tests/bidi_controls_check.pyandgit diff HEAD^ HEAD --checkpassed.Evidence and follow-up
The source-built fixture and existing CPU reference are from #791. The intra-wave 31/32 boundary still needs a 64-lane adapter. The original replay tracked by #768 still needs its own observed width and intermediate readback.
Checklist
AI-assisted.