390 Commits

Author SHA1 Message Date
fe0fb68460 ASSET-AUDIO-SKIP: allow skipping audio export
Add an opt-in assets-stage switch to skip audio extraction and conversion, preserve existing audio outputs, and account for the lower disk requirement. AI-assisted implementation; focused tests passed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-12-01 12:49:31 -05:00
d2a564b66a Merge pull request #2865 from azsekazvamdimitar/feat/rtx3090-vram-perf-and-translator
d3d12/vulkan + rdna2spirv: staged VRAM arena, DMA readback batching, parallel shadows, stream-pool fix & wave64 perf (RT-ARENA-DEVICE-LOCAL-STAGED)
2026-12-01 18:17:55 +01:00
a43262a139 Merge pull request #2185 from Tauwni/fix/make-game-pick-macos-osascript
make_game --pick: on macOS, the folder dialog is osascript's choose folder, so it needs no Tkinter (MAKE-GAME-PICK-MACOS)
2026-12-01 16:17:33 +01:00
7813890589 Merge pull request #1372 from Mykolas009/build/shader-resume-identity
make_game: a saved translated index that names a shader not carved here is translated again (BUILD-SHADER-RESUME-IDENTITY)
2026-12-01 16:15:21 +01:00
8ebe7cc2e8 d3d12/vulkan + make_game: ReBAR DMA readback, budgeted staged slabs, test fixes & CLI wiring 2026-12-01 16:40:36 +02:00
8497337b4e Merge pull request #2145 from fiestorra/awc-skip-existing
tools: skip Ogg Opus outputs that already exist, so a stopped audio export resumes
2026-12-01 12:53:42 +01:00
a726736ec2 Merge pull request #1774 from Tauwni/fix/explicit-lod-bias-moltenvk
rdna2spirv: --explicit-lod-bias applies the S# LOD bias where MoltenVK drops the sampler's; ps_ssharp passes on Macs (SHADER-EXPLICIT-LOD-BIAS-MVK)
2026-12-01 12:45:24 +01:00
c6c8f5f5a3 scripts: build llvm-mc 23.1.5 by default, so the pipeline library translates (#1923)
* scripts, tools: build llvm-mc 23.1.5 by default, so the pipeline library translates

LLVM 21.1.8's gfx1013 decoder cannot decode 840 of the 2,684 compute
programs in the pipeline library of 1.0.2.1: their listings carry 79,490
undecodable words and 8,310 exp invalid_target_N lines, the translator
refuses all of them as "fall-through into undecodable words", and the
shaders stage keeps 1,844 of 2,684. LLVM 21 does translate all 26,503
shaders of shaders.rpf; the library is what it loses.

The same bytes under llvm-mc 23.1.5 have no rejected word in those 840,
and 839 of them translate and pass spirv-val (the last wants s_sethalt,
which the translator does not implement, under either version). The 1,844
that already translated were re-disassembled too: 1,674 listings change
and all 1,674 still translate, the other 170 are byte-identical, so the
stage goes from 1,844/2,684 to 2,683/2,684.

The build helper now builds 23.1.5 by default. The docs that name the
minimum version (README, docs/design.md, docs/testing.md, docs/linux.md)
and the three user-facing messages that still said 21+ (make_game.py's
preflight, shader_disasm.py's probe error, mc_command.py's install hint)
now say 23+, with the tests that assert those texts updated.

AI-assisted (DeepSeek Harness).
Written with an AI assistant.

* docs: LLVM 23 is what the shaders stage needs, and a test pins the script's default
2026-12-01 11:48:54 +01:00
0fa9a51ab0 make_game: keep recovery copies until an install succeeds
install_runtime() removed every .runtime-staging-* folder before it
started, including the folder an IncompleteRollback kept as the only
copies of the previous runtime. If the retry also failed, those copies
were already gone. Clean the stale folders only after a successful
publish, so a failed retry leaves the recovery folder in place.

RT-INSTALL-KEEP-RECOVERY.
2026-11-30 22:24:34 +01:00
cb89a384d2 tools: skip Ogg Opus outputs that already exist, so a stopped audio export resumes
awc_opus.py repacked every bank on every run, so a stopped assets run redid
the whole Ogg Opus step: on one machine 664,446 .ogg files were already
written and the restart began at bank 0. The stage marks the step done only
after it finishes, so there was no per-bank resume.

--skip-existing leaves an output that exists alone before packing a music
channel or writing a stream's .ogg/.wav, and make_game.py passes it in the
audio step. The staged writer publishes atomically, so an existing file is
always complete.

Measured on a 1 MB bank with 29 outputs: first export 0.8 s, second with the
flag 0.23 s and 0 files rewritten, while the same export without the flag
does rewrite them. tests/test_awc_opus.py covers that with the control.
2026-11-30 14:54:46 +01:00
ab09fd1f86 Merge main: keep --no-ftz32 and --integer-dot-fallback next to --explicit-lod-bias
tools/rdna2spirv.py: main's float-only typed implicit sample (OpImageSampleImplicitLod)
is used only without --explicit-lod-bias; with the flag the Grad path still
scales the derivatives by the S# bias.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 11:46:44 +01:00
b8508a974b Merge branch 'main' of https://github.com/ProjectLeonida/mandy into fix/rendering-correctness
# Conflicts:
#	tests/semantic/test_interp_computed_ij_fallback.py
2026-11-30 04:36:05 -05:00
95bc33f6e2 Built-in keyboard prompts, and both prompt movies built for every player
tools/pc_prompt_glyphs.py draws its own key caps, arrow keys and mouse in
code when --glyphs is not given (no pictures, Pillow or font), with the keys
of the runtime's on-foot table, each inside the outline of the Xbox glyph it
replaces and covering no more of the canvas (measured on the user's movie,
numbers only). tools/prompt_glyph_movies.py builds pc_ and ps_prompt_glyphs.gfx
over the title's movie (standalone if data.rpf cannot be read) into
d3d12/target, where leonida.exe looks; play-nvidia.ps1 runs it before a start
and make_game.py in its runtime stage. A movie the player made is never
touched or shadowed; its own are stamped and rebuilt only when inputs change.
2026-11-29 21:49:50 -05:00
cf0557ffc3 Merge pull request #909 from markankamaransheogarat-sys/ubiq/spirv-tool-tree-cleanup
SPIRV-TOOL-TREE-CLEANUP: rdna2spirv, make_game: terminate spirv-as/val children on abort and sweep stale .spirv-*.tmp
2026-11-29 20:01:11 +01:00
545f610fae Merge pull request #1235 from titoreinaldo/contrib/r2-cache
make_game: rebuild empty compute shader modules on resume
2026-11-29 20:00:43 +01:00
cc5682001f Merge pull request #1378 from Diegobecker07/make-game-plain-log
make_game: a run without the LEONIDA board still writes <work>/logs/<stage>.log (MAKE-GAME-PLAIN-LOG)
2026-11-29 19:27:43 +01:00
c7ad7ef90b Merge pull request #451 from EdenBendheim/ubiq/ttpf-zero-byte-dds-resume
Repair zero-byte DDS files on TTPF export resume
2026-11-29 19:27:26 +01:00
98b219eb28 make_game: a saved translated index that names a shader not carved here is translated again (BUILD-SHADER-RESUME-IDENTITY)
verify_translation_completeness compares only the number of entries, so on a
resumed shader stage an index left by other inputs with as many entries as the
carve passed for this folder's finished translation and no step ran.

A shader keeps its carved file's stem through unpacking, disassembly and
translation, so the stage now compares the index's names with the carve's: on
resume a stranger drops the index and its shard plan and translates again, and
after a translation a stranger fails the stage and removes the index and its
shard plan, so that a later run of the pipelines stage alone does not take the
index as finished and the next run of this stage does not merge the same parts
again. The names are checked before the counts. The disk-space check no longer
counts such a folder as reusable.

The index is read with read_translation_index and the carve with shader_stems,
as the other steps read them (a UTF-8 BOM included).

The fixture in test_make_game_empty_translation.py named its carved shader
"shader" and its translated one "shader_0"; it now uses one name.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-29 20:21:29 +02:00
eff40832ef Merge remote-tracking branch 'refs/remotes/mandy/main' into fix/rendering-correctness
# Conflicts:
#	runtime/shims/d3d12_com.cpp
#	runtime/shims/d3d12_vulkan_device.cpp
#	runtime/src/command_list.h
#	runtime/src/vulkan_replay.h
#	runtime/test/gfx10_descriptors_test.cpp
2026-11-29 11:51:06 -05:00
4ebfec34d7 Merge pull request #846 from TheGeogeo/fix/preserve-pipeline-crash-report
make_game: preserve crash reports when a retry fails setup (BUILD-PIPELINE-RETRY-CRASH-REPORT)
2026-11-29 16:44:37 +01:00
a58d22fe2e Merge upstream ProjectLeonida/mandy main (ddfe24fba) into fix/rendering-correctness 2026-11-29 09:37:37 -05:00
48ca87fa24 make_game: the plain stage logs show a command's output as decoded text, in the caller's encoding (MAKE-GAME-PLAIN-LOG)
PlainStageLogs passed a command's raw bytes to sys.stdout.buffer. A Windows console's buffer takes UTF-8, so
non-ASCII text a command wrote in its own code page showed U+FFFD on screen, where main's --no-tui (the command
inheriting the console) shows it right. Measured in a console with OEM 850 / ANSI 1252: a child writing cp850
"n\xc6o par\x83metro" showed "n\ufffdo par\ufffdmetro".

- run() decodes the output once as it arrives (an incremental decoder, so a character split between two reads
  stays whole) and sends that text to the console, encoded for sys.stdout with errors="replace", and to the log;
- the encoding is the one the caller names with run(..., encoding=), else what a text-mode pipe decodes with, as
  on the board.

Three new tests: the caller's encoding on the console and in the log, a UTF-8 character split between reads, and
a character the console's code page lacks.
2026-11-29 11:23:16 -03:00
24d89be173 make_game: a run without the LEONIDA board still writes <work>/logs/<stage>.log (MAKE-GAME-PLAIN-LOG)
Only the board wrote the stage logs, so a build with --no-tui (or with stdout redirected) left nothing in
<work>/logs to read afterwards. PlainStageLogs now covers that case while the build stages run:

- log() and fail() lines go to the console as before and to the running stage's log;
- a command run() starts for a build stage has its stdout and stderr through one pipe: every byte goes on to
  the console as it arrives (a \r progress line still redraws) and every \r- or \n-ended piece to the stage's
  log, the same split the board uses. The child keeps the console, so Ctrl+C reaches it as before; on Ctrl+C it
  gets 0.25 s to stop and is then killed, as subprocess.run does;
- a caller that sets its own pipes, and commands outside a build stage, keep subprocess.run;
- a stage's file is opened with its first line; an unwritable folder gives one note on stderr and the build
  goes on without the logs.

The module docstring and the --no-tui help say where the logs are in both modes.
tests/test_make_game_plain_logs.py covers the cases above with real child processes.
2026-11-29 10:16:57 -03:00
c34cec72ee Merge pull request #2593 from Bloh09/fix/ci-main-red-tests 2026-11-29 13:44:04 +01:00
314b4e73dd Merge upstream ProjectLeonida/mandy main (b589e0fe0) into round10 base
# Conflicts:
#	docs/design.md
#	runtime/shims/d3d12_vulkan_device.cpp
#	runtime/src/queue_holds.h
#	runtime/src/shader_library.h
#	runtime/src/vulkan_backend.h
#	runtime/src/vulkan_replay.h
#	runtime/test/vk_harness.cpp
#	tests/semantic/test_wave32_lane_select.py
#	tools/lane_masks.py
#	tools/rdna2spirv.py
2026-11-29 06:33:39 -05:00
eb4773b34c Merge pull request #2208 from whoalin1/pipeline-crash-report-lock
make_game: harden crash reporting, WINE resolution, and vulkaninfo probing
2026-11-29 09:18:54 +01:00
3aee823016 Merge pull request #2512 from TheGeogeo/fix/assets-bcpack-strict-history
make_game assets: reuse local BCPack history on resume (ASSETS-BCPACK-STRICT-HISTORY)
2026-11-29 09:14:19 +01:00
2b3a27c49d make_game: ignore vulkaninfo output after a failed probe 2026-11-29 04:04:54 +00:00
bf458bbcb3 Merge remote-tracking branch 'origin/main' into lb
# Conflicts:
#	docs/design.md
2026-11-29 04:52:45 +01:00
3fbfcc6f8d Merge upstream/main into fix/ci-main-red-tests
Resolved conflicts in bench_translate.py, export_old_pr_manifest.py,
pc_prompt_glyphs.py and xbox_prompt_glyphs.py by taking main's
errors=replace guards (#2590). Dropped CI-STDOUT-GUARD-NEW-TOOLS.
2026-11-28 19:40:09 -08:00
8bfd5ada37 Merge pull request #2550 from kirigayakazima/fix/ci-repo-url-rename
make_game, progress_dashboard: update default repository URL to ProjectLeonida/mandy (CI-REPO-URL-RENAME)
2026-11-29 04:36:47 +01:00
371d8556f9 Merge pull request #1528 from kawaii-shakal/input-out-of-the-box
make_game, gameinput: controller, keyboard and mouse input out of the box (INPUT-OUT-OF-THE-BOX)
2026-11-29 04:36:04 +01:00
24abe91a28 make_game: the index-shape error and the clone hint (CI-MAKEGAME-INDEX-SHAPE-MESSAGE, CI-REPO-CLONE-ADDRESS)
A non-object translated index says it must contain a JSON object again, and the
missing-submodule hint names the repository the README clones.
2026-11-28 17:31:05 -08:00
0f2025b168 Merge pull request #1013 from Diegobecker07/old-9924-bcpack-parallel
make_game assets: BCPack follow-up pass in worker processes, costliest pool first (OLD-9924)
2026-11-29 01:55:23 +01:00
5d7ac1ee5e Merge pull request #1233 from IlyassRS3/carry/old-10028-wine-relative-path
make_game: gta6rt.sh resolves a relative WINE before changing to the game folder (OLD-10028)
2026-11-29 01:53:56 +01:00
d8b57246c9 Merge pull request #1347 from PierreEbele/make-game-pick-fsdecode
make_game: a folder whose name the locale cannot decode no longer stops --pick on Linux (MAKE-GAME-PICK-FSDECODE)
2026-11-29 01:45:38 +01:00
e6546fe78a Merge pull request #1627 from KoLolX3/fix/make-game-case-inside-guard
make_game: reject case aliases inside the game directory (MAKE-GAME-CASE-INSIDE-GUARD)
2026-11-29 01:37:18 +01:00
f0ae5d3414 rdna2spirv, make_game: keep SIGTERM handler and stale .spirv-*.tmp sweep 2026-11-28 22:00:07 +00:00
660872215a Merge branch 'main' of https://github.com/ProjectLeonida/mandy into test/round10
# Conflicts:
#	make_game.py
#	runtime/README.md
#	tools/shader_meta.py
2026-11-28 16:35:38 -05:00
b2c9695962 Fix NVIDIA sparse arena, MSVC TLS callbacks, FTZ32 probe, teardown leaks, and cross-GPU tests 2026-11-28 16:34:52 -05:00
05a0f7f2a3 Merge remote-tracking branch 'refs/remotes/origin/main' into fix/explicit-lod-bias-moltenvk
# Conflicts:
#	make_game.py
#	tests/test_make_game_translator_flags.py
2026-11-28 16:58:31 +01:00
f2072b2fe7 Merge pull request #2513 from quartz-heron-58/makegame-mesh-serial
make_game: --mesh-serial-waves forwards the translator's switch (BUILD-MAKEGAME-MESH-SERIAL-WAVES)
2026-11-28 16:11:59 +01:00
32ee299d24 Merge pull request #1446 from LouisRiverstone/carry-old-9937
make_game: stage the runtime install and publish it all or none (RT-249) (OLD-9937)
2026-11-28 15:41:40 +01:00
11f48105c6 Merge pull request #1407 from Diegobecker07/pipelines-eta
make_game pipelines: after each batch, the share done and the time left, weighted by module size (PIPELINES-ETA)
2026-11-28 15:39:58 +01:00
ab95ff8427 Merge upstream main into PR #1528 2026-11-28 13:59:13 +00:00
a8b1abe4c2 Merge upstream ProjectLeonida/mandy main (0318164b8) into test/round10
# Conflicts:
#	tools/vk_subgroup_info.py
2026-11-28 08:35:30 -05:00
f238fb2756 Merge remote-tracking branch 'refs/remotes/origin/main' into HEAD 2026-11-28 14:30:44 +01:00
a8e427b442 Merge pull request #1945 from d6ge-dev/feat/crossover-runtime-launcher
Build: launch the packaged runtime in a CrossOver bottle (BUILD-CROSSOVER-BOTTLE)
2026-11-28 14:23:26 +01:00
3a7dc6126b Merge remote-tracking branch 'origin/main' into fix/explicit-lod-bias-moltenvk
# Conflicts:
#	.github/workflows/runtime.yml
2026-11-28 13:34:11 +01:00
66d4723f40 Merge upstream ProjectLeonida/mandy main (d48a957bb) into test/round10
Resolved conflicts in docs/design.md, runtime/CMakeLists.txt, and tests/semantic/spirv_wave_interp.py.
AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 07:00:01 -05:00