Commit Graph

215 Commits

Author SHA1 Message Date
3784a3a6e2 Merge pull request #3974 from tedin7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/i18n/es/quickstart.md
#	docs/i18n/pl-PL/quickstart.md
2026-11-22 23:10:05 -05:00
d4ea397d8d Merge pull request #3930 from Maraco91
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:09:38 -05:00
da3556f634 Merge pull request #3623 from erickbobd
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:08:01 -05:00
618c0f31f4 make_game: narrow the empty-index guard to what a merge actually publishes
Main's suites model two neighbouring cases differently: an FSPX build that translates no programs is a
finished step, and the resume fixtures save an unreadable stand-in index. Keep the `{}` that --merge
publishes when it produced nothing (drop it, and translate again next run) and the pipeline preflight
that refuses an empty or unreadable index; drop the wider "0 programs" and "unreadable saved index"
premises, which broke tests/test_fspx_shaders_stage.py and tests/test_shader_stage_resume.py.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-22 21:49:01 -06:00
be8570ace1 Merge remote-tracking branch 'origin/main' into triage-r43
# Conflicts:
#	docs/runtime_imports.md
#	runtime/CMakeLists.txt
#	runtime/shims/xgameruntime.cpp
#	runtime/test/xmem_test.cpp
#	tools/rdna2spirv.py
2026-11-22 22:12:50 -05:00
33905dc9dd Fix what the round-43 merges broke (pytest)
Merges that each passed alone but clash together:
- v_cmp_class_f64: the earlier cmp_class_f64 (685d16ed9) (operand-form checks, test_cmp_class_f64) and the later f64 branch
  in cmp_class both handled the opcode; f64 goes to cmp_class_f64 again, f16 stays in cmp_class.
- rdna2spirv CLI tests: spirv-as/spirv-val now run in the output folder with the staging file's bare name, so
  the test doubles resolve it against cwd; assemble_spirv decodes the output only when it is bytes. (The doubles
  had been writing .spirv-*.tmp files into the repository root.)
- ps_w64 fixtures (TEST-722): an 18th fixture (ps_w64_a_discard) landed; its killed lanes export nothing and
  keep the clear value.
- first_light: a run without an OBJ removes mesh.bin, and harness_env reads manifest["files"]; batch_glb's stats
  name failures and dropped textures; run_gpu_tests reports a frame never written as a missing readback
  (TEST-837).
- make_game TRANSLATION_SOURCES and runtime.yml's paths include spirv_opt.py and report_paths.py (and
  wave64_emulate_opt.py), which the translator imports.
Repo rules: stdout guard on six tools; encoding on two opens (gen_gdk_runtime_classes' helper is read_utf8);
newline on one write; anim_skeleton_match's joaat encodes like hashdict.joaat; test_feature_scan's new test is
listed with the others its globals() runner reaches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 22:07:41 -05:00
53914e777b make_game: count assets already exported when a stopped build resumes
The preflight asked for all 300 GB of the assets stage free unless xma.done said the exports were finished, so a
build stopped part-way through the assets (279 GB written, 280 GB free) refused to resume. tree_bytes() sums what
is already under <work>/assets and the preflight subtracts it. Two tests: the subtraction and tree_bytes itself.

Tested: python3 -I tests/test_make_game_preflight.py (67 tests); a real resume on Fedora 43 that had been refused.
AI-assisted.
2026-11-23 00:27:54 +00:00
d196778e75 docs: say the disk figures are GiB, as the preflight and Windows Explorer count them (PROC-196 review) 2026-11-22 23:58:41 +01:00
b96d8309d8 docs: assets stage needs about 370 GB (400 GB full build), update README, quickstarts and preflight (PROC-196) 2026-11-22 23:44:54 +01:00
b763d04d2b make_game: start Windows PowerShell by its full path for the runtime stage
The runtime stage ran scripts/build_runtime.ps1 through the bare name
"powershell". CreateProcess searches System32 but not
System32\WindowsPowerShell\v1.0, so on a PC whose PATH no longer lists
that folder the stage ended in a FileNotFoundError traceback, after the
shader and asset stages had already run.

windows_powershell() returns the file under %SystemRoot%, and the bare
name where the file is not at its usual place.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 23:32:11 +01:00
fba8c6b609 Merge pull request #3733 from Hanioe2 2026-11-22 17:03:32 -05:00
69989945e6 Merge pull request #3656 from kotorvr 2026-11-22 17:03:13 -05:00
795c28d52e Merge pull request #3623 from erickbobd 2026-11-22 17:03:04 -05:00
e8fc21d301 Merge pull request #3484 from bobcatchris 2026-11-22 17:02:13 -05:00
3e7ca4a211 Merge pull request #3371 from CaravelaLabs 2026-11-22 17:01:43 -05:00
813e63318d Merge pull request #3328 from bobcatchris 2026-11-22 17:01:25 -05:00
0194d79fbe Merge pull request #3209 from Jadiac 2026-11-22 17:00:57 -05:00
3c7358cdec Merge pull request #3168 from Hanioe2 2026-11-22 17:00:48 -05:00
b27f24045e build: stop on inconclusive pipeline crash probes (BUILD-1030) 2026-11-22 18:57:37 -03:00
d324cbcc87 build: check drive-root paths across Windows volumes 2026-11-23 05:24:49 +08:00
30e676038b build: stop pipeline batches on native setup failures (BUILD-1030) 2026-11-22 18:24:03 -03:00
037e165bb2 Revert "Merge pull request #3006 from p3n1cillin"
This reverts commit 2657f443e2, reversing
changes made to 16572f2c03.
2026-11-22 16:14:22 -05:00
a82f81478a make_game: a GPU probe that can't tell keeps the automatic fallback flags of a finished translation
main() turns --f16-interp-fallback and --pc-tail-ubo on when
vk_subgroup_info.py says the runtime's GPU needs them. When the probe could
not tell (any error, or its 60 s timeout) the flags were simply absent, so
shaders() saw a changed flag set, logged "the fallback flags are now none
...: translating again" and translated the whole corpus without them; the
next run that could ask translated it a third time.

When the probe can't tell, a flag the existing translation was made with
now stays on, and the log says so. A probe that answers still decides, a
folder translated without the flag gets none from a failed probe, and the
flags the user passes are compared as before. wave64 `auto` already keeps
its mode for the same reason.

The main() wiring tests now build into an empty --out instead of the
user's default folder, since main() reads the recorded flags.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 21:08:22 +00:00
e4617613e7 build: bound pipeline checks and recover collective crashes (BUILD-1030) 2026-11-22 18:07:48 -03:00
0fb1a07b1f BUILD-881: finish pipeline checks before initializing assets 2026-11-23 04:59:03 +08:00
62b32ff9bd make_game: separate messages for no Git, ZIP download and failed submodule fetch
Reviewers on #3371 (paratustra, Maraco91) pointed out that with Git
installed the old text still said "Install Git", and that a failed
'git submodule update' in a real clone (offline, proxy) was reported as
a ZIP download. Each case now gets its own message, with tests.

AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:52:30 +01:00
6165533eef make_game: a failed translation shard invalidates the previous index 2026-11-22 14:39:45 -06:00
db5f650452 make_game: an uncommitted edit in the rpf9-explorer submodule changes the decoder digest (BUILD-866) 2026-11-22 21:17:07 +01:00
e4142cb3d6 Merge pull request #3296 from Mulkku 2026-11-22 15:16:47 -05:00
c101665b9d make_game: name the real clone URL when rpf9-explorer is missing
A "Download ZIP" from GitHub leaves out the submodule, and the error
said "git clone --recursive <this repository's URL>" with a literal
placeholder, which left non-developers stuck (#3276).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:16:31 +01:00
94d402f410 Merge pull request #3250 from desamodeth 2026-11-22 15:16:11 -05:00
9f5d0f7c66 Merge pull request #3209 from Jadiac 2026-11-22 15:15:43 -05:00
a28c7e3c3f Merge pull request #3168 from Hanioe2 2026-11-22 15:15:22 -05:00
93fe7b4f38 Merge pull request #3092 from Vonsek 2026-11-22 15:14:45 -05:00
a8b76ea638 Merge pull request #3073 from desamodeth 2026-11-22 15:14:34 -05:00
d0b036f078 Merge pull request #3040 from whoalin1 2026-11-22 15:14:17 -05:00
2657f443e2 Merge pull request #3006 from p3n1cillin 2026-11-22 15:14:00 -05:00
6cbd45eae5 Merge pull request #2968 from tupacfan04 2026-11-22 15:13:38 -05:00
f7d22cc2f6 Merge pull request #2943 from Rayhan Robin 2026-11-22 15:13:27 -05:00
1631d6a9e3 Merge pull request #2923 from jaybeebabageyus 2026-11-22 15:13:14 -05:00
8a84bf5b58 Merge pull request #2815 from iurysf 2026-11-22 15:12:16 -05:00
2fa446e5ef Merge pull request #2802 from Leonardo Guimaraes 2026-11-22 15:12:10 -05:00
7b7971b5d8 Merge pull request #2790 from Leonardo Guimaraes 2026-11-22 15:12:00 -05:00
969fc633b4 Merge pull request #2194 from Matheus Gomes 2026-11-22 15:10:19 -05:00
b616525c28 Pipelines: refuse an empty or unreadable translated shader index 2026-11-22 14:07:47 -06:00
aa780e3c7f Merge branch 'main' into perf/wave64-emulate-dead-scc-exec-fold 2026-11-22 16:04:21 -04:00
c506d00cde Only suggest the loader build when it fits 2026-11-22 21:53:27 +02:00
cc1d9926ef runtime: honor the Windows build job limit from make_game
BUILD-952

AI-assisted-by: Codex Astra 6.2 High
2026-11-22 22:52:23 +03:00
a9bb61e54b make_game: build the exporter before a stale asset export is removed (BUILD-866)
A changed decoder removed the old models or textures folder and only then built rpf9dump. With a build
that fails (rpf9-explorer not initialised, no dotnet) the folder was left with only decoder.sha256. The
exporter is now built first, so a failed build keeps the old export and its record.
2026-11-22 20:52:15 +01:00
b80e1f8717 make_game: credit only finished asset steps, never links or junctions
Review of #2790: the discount counted every regular file under <work>/assets,
so unrelated files or a step that stopped before its marker could let a short
drive through, and an NTFS junction (is_dir(follow_symlinks=False) is true for
one) was walked and counted.

assets_bytes_on_disk() now counts only the output of steps assets() skips on a
rerun: an archive's models/textures folder with its manifest.json, a texture
pool whose manifest ttpf_manifest() accepts, the audio banks once
audio_manifest.json exists, and audio/ogg or audio/xma once their .done marker
is there. Symbolic links and junctions are skipped, including <work>/assets
itself.

On a real stopped export the credit drops from 319.0 to 294.6 GiB; the
difference is the audio bank step that stopped before its manifest.
2026-11-22 16:51:46 -03:00