mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:10:52 +01:00
[PR #269] runtime: stop the configure when Vulkan headers are too old for the Windows runtime #322
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#322
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/269
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/9998📝 Commits (1)
a2828eeruntime: stop the configure when Vulkan headers are too old for the Windows runtime📊 Changes
4 files changed (+154 additions, -0 deletions)
View changed files
📝
docs/testing.md(+1 -0)📝
runtime/CMakeLists.txt(+6 -0)➕
runtime/cmake/vulkan_headers_version.cmake(+45 -0)➕
tests/test_cmake_vulkan_headers_version.py(+102 -0)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Resubmission of
#7729, which was closed unmerged in the 22:42 migration sweep (ItsNotRexed). Unchanged: the branch merges cleanly ontomain7e39a81ea, which still has no Vulkan header version check.#7729had two independent passes (lucas-tafuri, airp1ane) and no change requests.Claimed in the coordination issue as: new BUILD item, claim
What and why
runtime/CMakeLists.txtaccepted anyvulkan/vulkan.h, so headers that are too old configured fine and then failed deep in the build. With conda-forge'svulkan-headers(it resolves to 1.3.231 next tollvm-tools, whichdocs/testing.mdsuggests forllvm-mc) the Windows build stops atd3d12_com.h(42): error C3646: 'calibrated': unknown override specifier(noPFN_vkGetCalibratedTimestampsKHR) with 100+ errors ind3d12_vulkan_device.cpp. With SDK 1.3.280.0 it gets tovk_harness.cpp(456):VkPhysicalDevicePipelineBinaryFeaturesKHRundeclared.runtime/cmake/vulkan_headers_version.cmakereadsVK_HEADER_VERSIONfrom the headersVulkan::Headerspoints at (FetchContent's$<BUILD_INTERFACE:...>is unwrapped) and stops the configure with the found and needed versions, and how to fix it (newerVULKAN_SDK+ deleteCMakeCache.txt, orLEONIDA_VULKAN_HEADERS_FETCH=ON).WIN32 AND LEONIDA_BUILD_WINDOWS_RUNTIME, which includes the xwin cross-build) check, so the portable Linux/macOS tool builds keep accepting distribution headers as before.ninja -k 0) built against Khronos Vulkan-Headers tags with MSVC 14.51:d3d12_com.h,d3d12_vulkan_device.cpp)vk_harness(VK_KHR_pipeline_binary)VK_KHR_pipeline_binary)If
#3869(vk_harness withoutVK_KHR_pipeline_binary) lands, the minimum can drop: everything else already builds at 1.3.280.docs/testing.md.Not the same as
#7142(missing headers in the Linux xwin preflight); no overlapping files.Tested
Windows 11, MSVC 14.51 (VS Build Tools), CMake 4.3.1-msvc1, commit
9ce9a7923:python -I tests/test_cmake_vulkan_headers_version.py: 8 tests OK (stub headers at 231, min-1, min,$<BUILD_INTERFACE:>, no version line; FetchContent and CI pins >= min; CMakeLists wiring).tests/test_cmake_vulkan_missing.py,tests/test_build_runtime_cmake.py,tests/test_docs_design_rows.py: OK.python -m compileall -q make_game.py tools tests: OK.scripts/check_no_game_data.pyon the new files: OK.tests/test_text_write_line_endings.pyfails onmaintoo, in files this PR doesn't touch (tools/leonida_tui.py:753,tools/wave_diff.py:373).-DLEONIDA_VULKAN_HEADERS_FETCH=ONwith no headers -> configures (and with the minimum temporarily raised to 999 it reports "has VK_HEADER_VERSION 363", so the FetchContent path is really checked); v1.3.294 configures and builds all 555 targets, v1.3.293 is refused.run_gpu_tests.pyon an AMD Raphael iGPU (Ryzen 5 7600X, AMD 32.0.21042.62): 217/240, 0 failed (#166entry).AI-assisted: yes
Checklist
docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.