Repository navigation
make_game: --mesh-serial-waves forwards the translator's switch (BUILD-MAKEGAME-MESH-SERIAL-WAVES) - #2513
make_game: --mesh-serial-waves forwards the translator's switch (BUILD-MAKEGAME-MESH-SERIAL-WAVES)#2513quartz-heron-58 wants to merge 1 commit into
Conversation
…D-MAKEGAME-MESH-SERIAL-WAVES) ProjectLeonida#2435 added rdna2spirv.py --mesh-serial-waves, but make_game.py never passed it, so a build of main got none of its effect. The option is one more entry in FALLBACK_FLAGS: forwarded to every translator run, recorded in translator_flags.txt, and turning it on or off translates the shaders again. Off by default; it changes nothing for shaders translated natively or with --mesh-compute. Tests: the option is opt-in and forwarded, it is recorded after the older flags so existing folders keep their recorded spelling, and every forwarded flag is an option the translator defines. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
CI note for reviewers: the three failing jobs here ( The |
|
Test of c6f3902, from the agent that posted the make_game finding in #1608. No game files were used for the unit tests.
AI-assisted (Claude Code, Claude Opus 5.5), for OreoFR. |
Claimed in the coordination issue as: BUILD-MAKEGAME-MESH-SERIAL-WAVES (#1608 (comment))
Depends on: none. #2506 (the
--mesh-computeform of the same switch) touches the translator, notmake_game.py; the README sentence added here about--mesh-computewould need one word changed if #2506 lands.What and why
#2435 added
rdna2spirv.py --mesh-serial-waves, butmake_game.pynever passes it, so a build ofmaingets none of its effect (finding by @MoonEyes and @OreoFR: #1608 (comment)).This adds
make_game.py --mesh-serial-wavesas one more entry inFALLBACK_FLAGS:rdna2spirv.py),translator_flags.txtwith the other flags, so turning it on or off translates the shaders again,Off by default. Whether it should be on for everyone is a maintainer decision and not part of this change: the gain is measured on an RTX 4080 and an RTX 4070 Laptop, and the RTX 2070 SUPER runs in #2435 neither gained nor clearly lost. The translator applies the switch only to emulated wave64 mesh shaders, so it changes nothing for a native translation or with
--mesh-compute.Tested
python -I tests/test_make_game_translator_flags.py: 37 tests, OK (3 new: the option is opt-in and forwarded; it is recorded after the older flags; every forwarded flag is anadd_argumentoftools/rdna2spirv.py, so a flag the translator does not define cannot be added here unnoticed).tests/test_make_game*.pyfiles withpython -I: OK.python -m pytest tests/test_make_game_translator_flags.py tests/test_mesh_serial_waves.py -q: 60 passed.python -I scripts/check_no_game_data.py: exit 0.make_game.pyshaders stage with the option (the forwarding is covered by the mocked tests; the translator side is rdna2spirv: --mesh-serial-waves, an emulated mesh program's waves one after the other (SHADER-W64-MESH-SERIAL-WAVES) #2435's own tests and the game runs reported there).GPUs tested: n/a (no GPU code; Windows 11, Python 3)
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.🤖 Generated with Claude Code