mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #1885] make_game, vk_subgroup_info: auto-enable --mesh-compute without VK_EXT_mesh_shader (MAKE-GAME-MESH-COMPUTE-NO-EXT) #1898
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#1898
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/1885
Author: @robot00f
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:feat/make-game-mesh-compute-no-ext📝 Commits (1)
5a82e80make_game, vk_subgroup_info: auto-enable --mesh-compute without VK_EXT_mesh_shader📊 Changes
8 files changed (+130 additions, -24 deletions)
View changed files
📝
README.md(+3 -2)📝
docs/design.md(+1 -1)📝
make_game.py(+24 -9)📝
tests/test_make_game_argparse.py(+1 -0)📝
tests/test_make_game_translator_flags.py(+44 -7)📝
tests/test_make_game_wave64.py(+1 -0)📝
tests/test_vk_subgroup_info.py(+37 -0)📝
tools/vk_subgroup_info.py(+19 -5)📄 Description
Claimed in the coordination issue as:
MAKE-GAME-MESH-COMPUTE-NO-EXT(https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7152196533; continued in #1608)What and why
make_game.pypreviously turned on--mesh-computeautomatically only on Intel's Windows Vulkan driver (BUILD-2202,runtime_gpu_mesh_draws_crash). Meanwhile,tools/vk_subgroup_info.pyonly reportedmesh_in_supported_stagesfromVkPhysicalDeviceSubgroupProperties.supportedStagesand skippedvkEnumerateDeviceExtensionPropertieson Vulkan 1.3 devices (core13). On GPUs withoutVK_EXT_mesh_shader/VkPhysicalDeviceMeshShaderFeaturesEXT.meshShader(such as NVIDIA Pascal, AMD RDNA1/GCN, older Intel iGPUs, and MoltenVK),make_game.pyleft--mesh-computeoff unless passed manually, translating nativeMeshEXTmodules that the target GPU cannot create or execute.tools/vk_subgroup_info.py: Enumerates device extensions on both Vulkan 1.2 and Vulkan 1.3 candidate devices, chainsVkPhysicalDeviceMeshShaderFeaturesEXT(sType = 1000328000, 40 bytes on 64-bit,meshShaderat byte offset 20 aftertaskShader) whenVK_EXT_mesh_shaderis advertised, and adds"mesh_shader"(bool) to the JSON output.make_game.py: Addsruntime_gpu_mesh_shader()and automatically enables--mesh-computeduring theshadersstage whenmesh_shaderisFalse(unless--native-meshis passed), beforewave64_settingsandmaxPushConstantsSize(152 B) are evaluated. When the GPU probe cannot answer (None),keep_recorded_fallback("--mesh-compute", work)preserves an existing--mesh-computetranslation as it already does forBUILD-2202.--mesh-compute/--native-meshCLI help,README.md,docs/design.md,tests/test_vk_subgroup_info.py, andtests/test_make_game_translator_flags.py.Tested
VK_LOADER_LAYERS_DISABLE=~implicit~):tools/vk_subgroup_info.pyomitted"mesh_shader"andmake_game.pyleft--mesh-computeoff on Pascal unless passed on the command line.python -I tools/vk_subgroup_info.pydeterministically reports"mesh_shader": false(3/3 runs) on GTX 1050 Ti, causingmake_game.pyto select--mesh-computeautomatically.python -m compileall -q make_game.py tools tests— PASSpython -I make_game.py --helpandpython -I tools/vk_subgroup_info.py --help— PASSpython -I tests/test_vk_subgroup_info.py— 55/55 PASS (including Vulkan 1.2/1.3VK_EXT_mesh_shaderpresence andtaskShader=1, meshShader=0offset verification)python -I tests/test_make_game_translator_flags.py— 36/36 PASS (includingmesh_shader=False,144 B -> --pc-tail-ubointeraction,--native-meshoverride, andkeep_recorded_fallback)tests/test_make_game_*.pysuites,tests/test_wave64_pipeline_audit.py,tests/test_docs_links.py,tests/test_docs_table_rows.py,tests/test_text_write_line_endings.py— 535/535 PASSpython -I scripts/check_no_game_data.pyon all touched files — PASSVK_EXT_mesh_shader(covered viaFakeVulkanunit tests for bothmeshShader=1andtaskShader=1, meshShader=0).GPUs tested: NVIDIA GeForce GTX 1050 Ti (Pascal, 4 GB), driver 582.28, Vulkan 1.4.312, Windows 10 Pro 10.0.19045
AI-assisted: yes (Antigravity)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed (updated the--mesh-computerow indocs/design.md).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.