gpu: gate the SPIR-V ballot readback on SM 6.6 #757
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/763"
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 lukaslw-lab on 2026-11-23T01:25:53Z.
AI-assisted: prepared with Claude Code; the commands and results below were run on the author's PC.
Change
spirv_ballot_extract_*now runs through a dedicatedoffscreen_check --spirv-ballotoperation. ItskGateSm66Ballotgate checks SM 6.6 before PSO creation and exits 77 withskip: ballot fixture requires SM 6.6. The fixture still compilescs_6_6, and the operation reuses the existing compute-store readback (run_compute_store_case), so passing runs are unchanged. The capability-table self-test runs the real--spirv-ballotentry with SM 6.5 caps and requires 77 and the skip reason, plus argument-count checks.Fixes #751. Refs #656.
Hosted CI stays strict:
tests/spirv_window/require_warp_results.pystill requiresspirv_ballot_extract_warpto run and pass.tests/offscreen_check.cppis also touched by open #606 and #713. Each adds its own entries to the gate and operation tables, so whichever lands second keeps both.Verification
Commit
b1e3615(on37ed46d) on Windows 10 22H2 (build 19045.7846), Visual Studio 2026 18.12.1 (MSVC 19.52.37029), Windows SDK 10.0.26100, CMake 4.3.1, Python 3.13.7, DXC 1.9.2609, SPIR-V tools fromtools/setup-spirv-tools.ps1, GPU: NVIDIA GeForce RTX 3080 Ti, driver 32.0.16.1047.devuses the in-box D3D12 runtime;w10isdevwith app-local Agility SDK 1.620.2 and WARP 1.0.22.mainat67edabe,-R '^spirv_')devspirv_ballot_extract_hardwareand_warp(Shader must be cs_6_5, …/cs_6_2, …,Shader version provided: cs_6_6)spirv_*tests that need SM 6.6), 0 failedw10The two controls from #751:
--spirv-ballotresultdev, RTX 3080 Ti (in-box runtime)skip: ballot fixture requires SM 6.6dev, in-box WARP 10.0.19041.7811skip: ballot fixture requires SM 6.6w10, RTX 3080 Ti (Agility)compared_words=320 mismatches=0; wrong referencemismatches=2w10, WARP 1.0.22 (Agility)compared_words=320 mismatches=0; wrong referencemismatches=2The full
devsuite atb1e3615is still running; I'll post its result as a comment.Evidence and follow-up
ballot.py(bits 31/32 swapped) reports exactly 2 mismatches on both Agility adapters.offscreen_capability_table_self_test, which simulates a runtime capped at SM 6.5. The CI runners themselves support SM 6.6.Checklist
🤖 Generated with Claude Code
Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-23T01:36:31Z.
Full
devsuite atb1e3615(same environment as above, in-box D3D12 runtime and WARP10.0.19041.7811):spirv_ballot_extract_hardwareand_warpnow skip withskip: ballot fixture requires SM 6.6(before this change they failed here).gpu_alias_lookup_writes_warp, already known on this in-box WARP (#332, #369). It's unrelated to this change.mesh_*_warp,dxr_*_warp,bvh_*_warp,wave_shuffle_warp,cpu_shim_chain_warp,compute_mesh_texture_warp); no SM 6.6 in the in-box runtime (spirv_address_window_*,spirv_compare_sampler_*);bvh_wave64_hardwareandwave_shuffle_hardwareneed wave64; no ADX, SHA, CLFLUSHOPT or CLWB on this CPU (cpu_aot_adx,cpu_aot_crypto_sha,cpu_aot_fences_hints_clflushopt/_clwb,cpu_aot_x87_compare).