runtime: stop the configure when Vulkan headers are too old for the Windows runtime (OLD-9998) #1824

Open
github-bot wants to merge 1 commit from github-bot/gh-1824 into main AGit
Owner

@⁠Ch1mpleo on GitHub · 2026-11-25 12:36 UTC · original
Ch1mpleo:carry/old-9998 → main · +154 −0 · 4 files · 1 commits · open

Claimed in the coordination issue as: OLD-9998 (#1608)

What and why

Carries forward old-pr/9998 (draft #269, preserving Courtyard Games's original commit) rebased onto current main. Adds
untime/cmake/vulkan_headers_version.cmake so CMake configure stops with a clear message when Vulkan headers are too old for the Windows runtime, plus ests/test_cmake_vulkan_headers_version.py and docs/testing.md notes.

Tested

  • python -I tests/test_cmake_vulkan_headers_version.py — 8 tests (3 passed, 5 cmake -P subtests skipped because cmake is not installed on this host).
  • python -m compileall -q tests/test_cmake_vulkan_headers_version.py — exit 0.
  • python -I tests/test_docs_repeated_lines.py — 2 tests, OK.
  • python -I scripts/check_no_game_data.py docs/testing.md runtime/CMakeLists.txt runtime/cmake/vulkan_headers_version.cmake tests/test_cmake_vulkan_headers_version.py — exit 0.

GPUs tested: n/a (CPU-only CMake/Python checks, Windows 11 x64, Python 3.14.7)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled
    eeds rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a — no translator change)
**@⁠Ch1mpleo** on GitHub · 2026-11-25 12:36 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1824) `Ch1mpleo:carry/old-9998` → `main` · +154 −0 · 4 files · 1 commits · open Claimed in the coordination issue as: OLD-9998 (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### What and why Carries forward old-pr/9998 (draft #269, preserving Courtyard Games's original commit) rebased onto current main. Adds untime/cmake/vulkan_headers_version.cmake so CMake configure stops with a clear message when Vulkan headers are too old for the Windows runtime, plus ests/test_cmake_vulkan_headers_version.py and docs/testing.md notes. ### Tested - python -I tests/test_cmake_vulkan_headers_version.py — 8 tests (3 passed, 5 cmake -P subtests skipped because cmake is not installed on this host). - python -m compileall -q tests/test_cmake_vulkan_headers_version.py — exit 0. - python -I tests/test_docs_repeated_lines.py — 2 tests, OK. - python -I scripts/check_no_game_data.py docs/testing.md runtime/CMakeLists.txt runtime/cmake/vulkan_headers_version.cmake tests/test_cmake_vulkan_headers_version.py — exit 0. GPUs tested: n/a (CPU-only CMake/Python checks, Windows 11 x64, Python 3.14.7) AI-assisted: yes ### Checklist - [x] Based on current main and merges cleanly (a conflicting pull request is labeled eeds rebase). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a — no translator change)
Any vulkan/vulkan.h used to be accepted, so headers that are too old (conda-forge's
vulkan-headers resolves to 1.3.231 next to llvm-tools) configured fine and then failed
deep in the build: d3d12_com.h(42) "'calibrated': unknown override specifier" and 100+
errors in d3d12_vulkan_device.cpp, or VkPhysicalDevicePipelineBinaryFeaturesKHR in
vk_harness.cpp.

runtime/cmake/vulkan_headers_version.cmake reads VK_HEADER_VERSION from the headers
Vulkan::Headers points at (FetchContent's $<BUILD_INTERFACE:...> unwrapped) and fails
with the found and needed versions and how to fix it. The minimum, 294, is measured by
building the whole Windows runtime against Khronos header tags: v1.3.294 and SDK
1.4.304.0 build all 555 targets, SDK 1.3.280.0 all but vk_harness, 1.3.231 stops in the
D3D12 layer. Only Windows-runtime configures check, so the portable Linux/macOS tool
builds keep accepting older distribution headers.

tests/test_cmake_vulkan_headers_version.py runs the module with cmake -P on stub
headers and checks that the FetchContent and CI pins meet the minimum.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:07:14 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1824/head:github-bot/gh-1824'
git switch 'github-bot/gh-1824'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1824'
git switch 'github-bot/gh-1824'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1824'
git switch 'github-bot/gh-1824'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1824'
git switch 'main'
git merge --squash 'github-bot/gh-1824'
git switch 'main'
git merge --ff-only 'github-bot/gh-1824'
git switch 'main'
git merge 'github-bot/gh-1824'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.