Repository navigation
gpu: gate the SPIR-V ballot readback on SM 6.6 - #763
Merged
Merged
Conversation
spirv_ballot_extract compiles cs_6_6 but ran through --compute-store-case, which has no capability gate, so runtimes without SM 6.6 (the Windows 10 in-box runtime) failed PSO creation instead of skipping. Add a dedicated --spirv-ballot operation with an SM 6.6 gate that reuses the compute-store readback, and self-test that a runtime capped at SM 6.5 exits 77. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Full ctest --preset dev --no-tests=error
|
lukaslw-lab
added a commit
to lukaslw-lab/Xbox2Windows
that referenced
this pull request
Nov 23, 2026
The SPIR-V MinLod fixtures compile ps_6_6. On a runtime capped at SM 6.5, such as the Windows 10 in-box runtime, pipeline creation failed instead of reporting a skip. Route the existing quad-LOD draw through a gated --spirv-minlod-quad-lod operation and gate --check-pixel-mip-clamp and --check-pixel-mip-blend the same way, as R0Y00#763 did for the ballot fixture. The self-test checks that each operation exits 77 below SM 6.6. Refs R0Y00#809 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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