mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:50:52 +01:00
[PR #1529] Translator: --shader-list to translate only a subset of shaders (SHADER-SUBSET) #1558
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#1558
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/1529
Author: @x2Tweek
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:shader-subset-v2📝 Commits (5)
7811ea8Translator: --shader-list to translate only a subset of shaders3fd9e04Translator: --shader-list writes subset to separate dir, never touches full index6f18bc0Translator: --shader-list never touches the full index; add testsc3d1515make_game: include shader list content in shard plan identitye89c291Restore the full translation spirv-opt preflight📊 Changes
5 files changed (+269 additions, -71 deletions)
View changed files
📝
make_game.py(+95 -68)📝
tests/test_make_game_empty_translation.py(+70 -3)📝
tests/test_rdna2spirv_cli.py(+30 -0)📝
tests/test_shader_stage_resume.py(+63 -0)📝
tools/rdna2spirv.py(+11 -0)📄 Description
Claimed in the coordination issue as: SHADER-SUBSET (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7125745299)
What and why
Translator:
--shader-listto translate only a subset of shaders. Replaces closed PR #565 whose head conflicted with upstream/main. Rebased on upstream main at0bc810504.tools/rdna2spirv.py --shader-list FILEandmake_game.py --shader-list FILE: subset writes to<spirv>/subset/, never touches the fullspirv/index.json, skips fingerprint checks andverify_translation_completeness.SubsetListIdentityTestcases intests/test_shader_stage_resume.pycover same-list reuse, changed-list re-translate, and same-path overwrite re-translate.Tested
tests/test_shader_stage_resume.py: 50 passed (3 new SubsetListIdentityTest cases)tests/test_rdna2spirv_index_write.py: 8 passed, 1 skipped (9 total)tests/test_make_game_empty_translation.py: 16 passedtests/test_rdna2spirv_cli.py: 37 passedpython -m compileall -q make_game.py tools tests: cleanpython -I make_game.py --help: cleanGPUs tested: n/a
AI-assisted: yes (Claude Code)
Checklist:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
ref = {}releases (TEST-REF-MOVE-ONLY) #1771