mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #1307] make_game: --gpu-info FILE decides the shaders stage for the PC that will run the port (OLD-9784) #1337
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#1337
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/1307
Author: @ambroseautomation
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:carry/old-9784-make-game-gpu-info📝 Commits (1)
5ee6e22make_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
Summary
Coordination item:
OLD-9784(carry-forward of draft #61 /old-pr/9784, preserving original authorSimone Beduzzi).Problem & Root Cause
make_game.py's shaders stage probes the build machine's GPU (tools/vk_subgroup_info.py) to decide wave64 emulation and fallback flags (--f16-interp-fallback,--pc-tail-ubo,--bary-fallback,--mesh-compute). When building on a machine whose GPU differs from the target PC (for example, WSL2 exposing 8-widellvmpipewithoutPerVertexKHRwhen building for an RDNA2/Windows target), the shaders stage selects wrong emulation/fallback flags for the target GPU.Implementation
--gpu-info FILEtomake_game.pyso every GPU probe question is answered from JSON previously saved bypython -I tools/vk_subgroup_info.pyon the target PC, without invokingvk_subgroup_info.pyorvulkaninfoon the build host.--gpu-info FILEis missing, unreadable, contains no JSON object on its last line, or holds an error record.runtime_gpu_per_vertex()throughruntime_gpu_info()consistently with the other probe helpers.--gpu-info FILEinREADME.mdand addsGpuInfoFileTestintests/test_make_game_wave64.py.Tests Run
Environment: Windows 11 Pro 64-bit, Python 3.12.10, synthetic fixtures only (no game data).
python -I -m py_compile make_game.py tests/test_make_game_wave64.py— PASSpytest tests/test_make_game_wave64.py tests/test_make_game_pipelines.py tests/test_docs_links.py tests/test_text_write_line_endings.py -v— 80/80 PASS (exact count verified below)python -I scripts/check_no_game_data.py README.md make_game.py tests/test_make_game_wave64.py— PASSDisclosure
AI-assisted: yes (carry-forward, rebase onto current
main, and local verification; original implementation by Simone Beduzzi).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.