ci: run the SPIR-V bridge GPU tests on Windows #720
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#720
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?
@rwZephyr on GitHub · 2026-11-22 22:33 UTC · original
Problem
The SPIR-V bridge's GPU tests never run in Windows CI. CMakeLists.txt registers
spirv_{address_window,sampler_views,ballot_extract,compare_sampler}_{hardware,warp}only insideif(SPIRV_WINDOW_AS AND SPIRV_WINDOW_VAL AND SPIRV_WINDOW_CROSS). Thewindows-2025jobs install neither SPIRV-Tools nor SPIRV-Cross, so the condition is false there. The four_warptests, which a hosted runner could run, are therefore never registered, andctest -E '_hardware$'passes without them. A missing toolchain causes silent omission rather than a reported skip: thepatrickworld measuredctest -N -R spirv→Total Tests: 0without the tools. The Linux job runs only the compile-only half of each driver.This came up on #681. R0Y00 noted that "running the SPIR-V draw tests automatically in Windows CI remains a separate follow-up", and #681 relied on exact-head local reports instead.
Proposal
Two small parts. They could land together or separately.
PATHbeforecmake --preset devand--preset release, so the four_warptests run on every PR. The local reproductions so far used SPIRV-Tools v2025.5 and SPIRV-Cross 57e4efcc84112abcd426dc5ec248b5339bee04f2. Two routes: build both from pinned source (cacheable, no installer), or install a pinned Vulkan SDK (simpler, larger download).spirv_*tests unconditionally and have each driver exit 77 when a tool is missing, so the omission shows up as a skip inctest -Nand in the test summary.Question for the maintainer: which install route is acceptable for CI? I can implement either once you choose.
Alternatives
Verification
windows-2025run,ctest --preset dev -N -R '^spirv_'lists 8 tests, and the four_warptests pass in the-E '_hardware$'selection.PATH(part 2), the same tests report as skipped (exit 77) instead of being absent.6f620f7(#681) all 8 passed locally on RX 9070 XT and WARP, Windows 11 build 26200.9974.AI-assisted.
Checklist
@R0Y00 on GitHub · 2026-11-22 22:57 UTC · original
Please use pinned SPIRV-Tools and SPIRV-Cross source revisions for both Windows jobs, with a cache keyed by the revisions and toolchain. Build only the three CLI binaries the tests need. A missing tool in a local checkout can be reported as CTest skip 77. In hosted CI, an install failure or a skipped WARP test should fail the dedicated check, so a green run proves all four tests actually ran. Please show both Windows presets and the tool-less local case. Leave physical GPU runs as manual evidence.
@R0Y00 on GitHub · 2026-11-22 23:55 UTC · original
#726 merged. Both Windows jobs on
87d3677loggedall 4 SPIR-V bridge WARP tests ran and passed, and Linux continued to pass its compile checks. This resolves the silent omission from #681. Physical adapter evidence remains separate from hosted WARP CI.