mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:05:54 +01:00
[PR #61] make_game: --gpu-info FILE decides the shaders stage for the PC that will run the port #113
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#113
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/61
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/9784📝 Commits (1)
f247681make_game: --gpu-info FILE decides the shaders stage for the PC that will run the port📊 Changes
3 files changed (+175 additions, -15 deletions)
View changed files
📝
README.md(+14 -0)📝
make_game.py(+56 -15)📝
tests/test_make_game_wave64.py(+105 -0)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Claimed in the coordination issue as: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116525882 (new item)
Depends on:
#5530,#8068(both changeruntime_gpu_per_vertex/wave64_settings, which this PR also touches; whichever lands second rebases)What and why
The shaders stage asks the build machine's GPU whether to emulate wave64 and which fallback flags to turn on. When
the shaders are translated somewhere other than the PC that will run the port, it answers for the wrong GPU. Under
WSL the only Vulkan device is llvmpipe, which reports
max_subgroup_size8 andper_vertex_inputsfalse (measuredon Ubuntu 26.04 under WSL2). A WSL build for an RX 6900 XT therefore turned on wave64 emulation and
--f16-interp-fallback, though that GPU needs neither, and the only workaround was hiding WSL's Vulkan loader(
VK_DRIVER_FILES) and passing--wave64-emulate off.--gpu-info FILEtakes the answerspython -I tools/vk_subgroup_info.py > gpu.jsonsaved on the target PC.auto's subgroup size taken from the file'smax_subgroup_size;--f16-interp-fallback;--pc-tail-ubo;--bary-fallback;--mesh-compute.vulkaninfo.last line, or the tool's own
{"error": ...}record.runtime_gpu_per_vertex()now readsruntime_gpu_info()like the other questions, insteadof starting the probe itself.
--wave64-emulate.Tested
Windows 11 Pro (build 26100), AMD Radeon RX 6900 XT, AMD driver 32.0.21045.29003, Python 3.14.7; WSL2 Ubuntu
26.04 with Python 3.14.4.
tests/test_make_game_wave64.py(GpuInfoFileTest, 5 tests), all failing before the change:subprocess.runrefuses any call;a size;
main()with an llvmpipe build machine: without the option it translates emulated with--f16-interp-fallback, and with the RX 6900 XT's file it translates native with no flags and asks the buildmachine nothing.
python -Ion test_make_game_wave64, test_make_game_argparse,test_make_game_preflight, test_make_game_translator_flags and test_vk_subgroup_info.
test_text_write_line_endings and test_docs_repo_paths fail with the same messages on clean
main. The changeadds no entry to any of them.
per_vertexFalse, wave64 emulation on.per_vertexTrue,max_push_constants256, no mesh crash, native wave64.AI-assisted: yes (Claude Code)
Checklist
docs/design.md, with how it was confirmed. (Not applicable: no translator change.)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.