ci: run the SPIR-V bridge GPU tests on Windows #714

Closed
opened 2026-11-22 22:33:29 +00:00 by rwZephyr · 2 comments
rwZephyr commented 2026-11-22 22:33:29 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rwZephyr on 2026-11-22T22:33:29Z.


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 inside if(SPIRV_WINDOW_AS AND SPIRV_WINDOW_VAL AND SPIRV_WINDOW_CROSS). The windows-2025 jobs install neither SPIRV-Tools nor SPIRV-Cross, so the condition is false there. The four _warp tests, which a hosted runner could run, are therefore never registered, and ctest -E '_hardware$' passes without them. A missing toolchain causes silent omission rather than a reported skip: thepatrickworld measured ctest -N -R spirv → Total Tests: 0 without 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.

  1. Install pinned tools on both Windows jobs. Put SPIRV-Tools and SPIRV-Cross on PATH before cmake --preset dev and --preset release, so the four _warp tests 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).
  2. Make a missing toolchain visible. Register the spirv_* tests unconditionally and have each driver exit 77 when a tool is missing, so the omission shows up as a skip in ctest -N and in the test summary.

Question for the maintainer: which install route is acceptable for CI? I can implement either once you choose.

Alternatives

  • Keep exact-head local reports in PRs (what #681 did). This works, but it depends on each contributor having the tools and a reviewer checking the report. A regression in an unrelated PR would go unnoticed.
  • Only part 2. The gap becomes visible, but the tests still don't run.
  • Only part 1. The tests run, but if the toolchain step ever breaks, they silently disappear again.

Verification

  • On a windows-2025 run, ctest --preset dev -N -R '^spirv_' lists 8 tests, and the four _warp tests pass in the -E '_hardware$' selection.
  • With the tools removed from PATH (part 2), the same tests report as skipped (exit 77) instead of being absent.
  • Reference: at 6f620f7 (#681) all 8 passed locally on RX 9070 XT and WARP, Windows 11 build 26200.9974.

AI-assisted.

Checklist

  • I checked for an existing issue or pull request for this change.
  • I did not include game files, dumps, distribution links or credentials.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6548679655 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/720). Originally posted by [rwZephyr](https://github.com/rwZephyr) on 2026-11-22T22:33:29Z. --- ### 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 inside `if(SPIRV_WINDOW_AS AND SPIRV_WINDOW_VAL AND SPIRV_WINDOW_CROSS)`. The `windows-2025` jobs install neither SPIRV-Tools nor SPIRV-Cross, so the condition is false there. The four `_warp` tests, which a hosted runner could run, are therefore never registered, and `ctest -E '_hardware$'` passes without them. A missing toolchain causes silent omission rather than a reported skip: thepatrickworld measured `ctest -N -R spirv` → `Total Tests: 0` without 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. 1. **Install pinned tools on both Windows jobs.** Put SPIRV-Tools and SPIRV-Cross on `PATH` before `cmake --preset dev` and `--preset release`, so the four `_warp` tests 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). 2. **Make a missing toolchain visible.** Register the `spirv_*` tests unconditionally and have each driver exit 77 when a tool is missing, so the omission shows up as a skip in `ctest -N` and in the test summary. Question for the maintainer: which install route is acceptable for CI? I can implement either once you choose. ### Alternatives - **Keep exact-head local reports in PRs** (what #681 did). This works, but it depends on each contributor having the tools and a reviewer checking the report. A regression in an unrelated PR would go unnoticed. - **Only part 2.** The gap becomes visible, but the tests still don't run. - **Only part 1.** The tests run, but if the toolchain step ever breaks, they silently disappear again. ### Verification - On a `windows-2025` run, `ctest --preset dev -N -R '^spirv_'` lists 8 tests, and the four `_warp` tests pass in the `-E '_hardware$'` selection. - With the tools removed from `PATH` (part 2), the same tests report as skipped (exit 77) instead of being absent. - Reference: at `6f620f7` (#681) all 8 passed locally on RX 9070 XT and WARP, Windows 11 build 26200.9974. _AI-assisted._ ### Checklist - [x] I checked for an existing issue or pull request for this change. - [x] I did not include game files, dumps, distribution links or credentials.
R0Y00 commented 2026-11-24 06:48:49 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T22:57:53Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7087209496 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/720#issuecomment-7087209496). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-22T22:57:53Z. --- 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 commented 2026-11-24 06:48:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T23:55:15Z.


#726 merged. Both Windows jobs on 87d3677 logged all 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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7087929559 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/720#issuecomment-7087929559). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-22T23:55:15Z. --- #726 merged. Both Windows jobs on `87d3677` logged `all 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.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows#714
No description provided.