spirv_ballot_extract fails instead of skipping on runtimes without cs_6_6 #751
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#751
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@lukaslw-lab on GitHub · 2026-11-23 00:49 UTC · original
AI-assisted (Claude Code).
spirv_ballot_extract_hardwareandspirv_ballot_extract_warp(from #656) fail instead of skipping where the D3D12 runtime doesn't acceptcs_6_6. Windows 10 22H2 build 19045.7846, in-box D3D12 runtime, at67edabe:spirv_ballot_extract_*spirv_address_window_*,spirv_compare_sampler_*(WARP lists up to
cs_6_2.) With the Agility SDK 1.620.2 runtime and WARP 1.0.22, all eightspirv_*tests pass.ballot.pycompiles atcs_6_6and runs through--compute-store-case, which haskNoGate. The siblings use--spirv-address-windowand--spirv-compare-sampler, gated bykGateAddressWindowandkGateSm66CompareSampler.cs_6_0passes on the RTX 3080 Ti (0 mismatches, swapped-bit control 2). But the in-box WARP then crashes in its DXIL compiler on the bridge's indexed constantuint4, the same fault as #742.--spirv-ballotoperation with an SM 6.6CapabilityGate), so it reports 77 on older runtimes.Environment: MSVC 19.52.37029, Windows SDK 10.0.26100, DXC 1.9.2609, SPIR-V tools from
tools/setup-spirv-tools.ps1(SPIRV-Tools v2025.5, SPIRV-Cross57e4efc),devpreset, debug layer enabled.Refs #656, #742
@R0Y00 on GitHub · 2026-11-23 01:12 UTC · original
The ballot fixture should keep compiling as
cs_6_6. Please route it through a dedicated operation that checks SM 6.6 before PSO creation and returns 77 when that capability is absent. Keep hosted CI strict. A useful control is the same operation on the Windows 10 in-box runtime (77) and on Agility WARP (full readback and wrong-reference mismatch).@Jess-Doit on GitHub · 2026-11-23 01:38 UTC · original
#763 covers the requested SM 6.6 gate. I also tested scalar mask-word selection at
cs_6_0on Windows 10 22H2 build 19045.6456. The GTX 1060 (32.0.15.6094), in-box WARP (10.0.19041.5794), and Agility WARP 1.0.22 each matched all 128 result words and 192 guards. The swapped-bit control produced exactly two mismatches, with zero D3D12 debug warnings or errors on all three adapters.Would a separate SM 6.0 compatibility follow-up be useful for keeping this readback runnable on older Windows runtimes?
AI-assisted. All measurements were run locally.