Commit Graph

185 Commits

Author SHA1 Message Date
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
e4142cb3d6 Merge pull request #3296 from Mulkku 2026-11-22 15:16:47 -05: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
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
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
f847748cc7 Merge origin/main (7 pull requests merged on GitHub)
# Conflicts:
#	docs/design.md
#	tools/psin_data.py
2026-11-22 14:46:26 -05:00
553ac7e3d7 BUILD-881: defer submodule initialization until preflight passes 2026-11-23 03:33:55 +08:00
adf687993d Merge upstream main into the Windows pipeline checker fix
Keep the pipeline crash-recovery code and the upstream translated-shader preflight while resolving the checker path once per selected runtime build.
2026-11-22 16:27:33 -03:00
aee179fdaa make_game: export models and textures again when the decoder changed (BUILD-866)
The assets stage skipped rpf9dump models|textures whenever a manifest.json existed, so a work folder kept the
old decoder's output after the rpf9-explorer pin or tools/rpf9dump changed. A digest of both is now written
beside each manifest; a folder with another digest or without the record is removed and exported again, as the
shaders stage does for the translator.
2026-11-22 20:27:01 +01:00
ea026dfedb fix(build): retry shader shards without completion markers
The merge checks both per-shard files. Rerun a shard if its marker is missing so a partially retained work folder can resume without rebuilding healthy shards.
2026-11-22 20:21:24 +01:00
4537c6b9c2 make_game: print a usable first-load diagnostic command
BUILD-887

AI-assisted-by: Codex Astra 6.2 High
2026-11-22 22:17:12 +03:00
a094bd2d53 rdna2spirv: declare DenormPreserve 16 so a driver keeps f16 denormals (SHADER-526)
ps_sdwa_f16_const read mrt0 lane y as 0x0000 instead of 0x1c00 on NVIDIA: the
_sdwa src0_sel:BYTE_1 selects the f16 denormal 0x0040 (2^-18), and the driver
flushed it on the way into f32 because the module declared no 16-bit denormal
mode. The translator models f16 arithmetic in f32 with integer narrowing, so no
f32 denormal is involved and that conversion is what the 16-bit mode governs.

Every module now also emits OpExecutionMode %main DenormPreserve 16 with the
matching capability (core since SPIR-V 1.4, so no extension), and the index
lists shaderDenormPreserveFloat16, which vk_pipeline_check requires and
--no-float-controls still drops along with the 32-bit mode.

Tested on an RTX 4070 SUPER (driver 610.88, validation layers on): the GPU test
goes from 4096/4096 mismatches to 4096/4096 pixels exact, and the full GPU suite
from 142/189 to 143/189 passed with 0 failures and the same 46 skips.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
2026-11-22 21:10:20 +02:00
3a52b21f3d README, make_game.py: name skipped shaders; fix the docstring's cache claim
Review follow-ups on #2815 (RT-191):
- vk_pipeline_check reports shaders whose features or partner stubs are
  unavailable as skipped rather than failed (vk_pipeline_check.cpp:8-9),
  so the README now says the stage reports any it has to skip.
- make_game.py's module docstring still said the cache is saved "so the
  first boot doesn't compile", which contradicts the README; it now says
  the stage builds pipelines for every shader (not only compute), reports
  rejected and skipped ones, and that the runtime doesn't load the cache yet.

Written with AI assistance (Claude, via OpenBot).
Tested: python -I tests/test_docs_*.py, test_i18n_index.py,
test_text_write_line_endings.py and every tests/test_make_game_*.py pass;
compileall clean (Windows 11, Python 3.14; no GPU involved).

Co-authored-by: OpenBot <335604065+openbotgit[bot]@users.noreply.github.com>
2026-11-22 16:04:56 -03:00
4c24f81613 Add an opt-in PS5 app0 input check 2026-11-22 19:02:30 +00:00
eb69a43995 make_game: reject a --out or --work that is a file before the build
With a separate --work, --out pointing at a file logged 'finished' and exited 0 without ever creating the destination; --work pointing at a file died in a raw FileExistsError from makedirs after the file check. Validate both destinations (and their nearest existing parent) right after they are resolved, and report one ERROR line with exit 1.
2026-11-22 12:58:45 -06:00
634b87d7f3 make_game: stop with the Python 3.12 requirement before code older Pythons can't run
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-22 18:49:10 +00:00
8da9c66188 make_game.py: the pipelines stage log names graphics pipelines too
The stage runs vk_pipeline_check without a --stage filter and the checker's default is all: cs become
compute pipelines, ps/vs/ms/gs become graphics pipelines with partner stubs (runtime/test/vk_pipeline_check.cpp),
so the announce line claiming compute only misled a review of #2815 (RT-191) into thinking graphics shaders
are only turned into modules. The line now says compute and graphics; a regression test pins the announce
line and fails on the old wording. Found by @iurysf.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-11-22 19:44:29 +01:00
355e67cbc4 Merge remote-tracking branch 'origin/main' into perf/wave64-emulate-dead-scc-exec-fold
# Conflicts:
#	make_game.py
2026-11-22 14:39:18 -04:00
81e0392f97 docs: document the low-disk run-only build and hint it in preflight 2026-11-22 18:32:05 +00:00
88475899c8 make_game: name a packaged XVC/XVD container instead of "not found"
The store keeps the game as one .xvc file, an XVD container whose contents
are encrypted. Pointed at it with --game, the build said "Game folder not
found"; pointed at a folder holding only that file it said "doesn't look
like a supported version"; --find skipped it silently.

Read the plain 4 KiB header (msft-xvd magic at 0x200, VolumeFlags,
ContentType, XvcDataLength, PackageVersion) and say what the file is and
that the build needs the folder holding MicrosoftGame.Config. Nothing is
decrypted and no key field is read. --find lists such files as "not
usable"; the not-found message, the pasted-folder prompt and --pick's
warning name the containers they saw.
2026-11-22 15:19:44 -03:00
d49b8e78e6 make_game: preflight counts an asset export that stopped part-way
#905 leaves the assets stage's 300 GB out of the space check only when the
export finished (xma.done). A run stopped after the models, textures and most
texture pools still asked for the full 330 GB, so a drive that already held
270 GB of that export and had 205 GB free refused to resume, although the
stage skips every finished step.

When the free space is short and the assets stage is selected, preflight now
subtracts the whole GB already under <work>/assets (capped at the 300 GB
estimate) and logs it. assets_bytes_on_disk() is one os.scandir walk that
does not follow links; it runs only in that short-on-space case. A fresh
folder still needs the full amount, and --wav still counts the whole
estimate, as in #905.
2026-11-22 15:17:11 -03:00
0ddeddc611 Merge pull request #2585 from Marco Luzzaro 2026-11-22 13:16:21 -05:00
fcac437afb Merge pull request #2561 from Vonsek 2026-11-22 13:16:11 -05:00
5d7d68ddf4 Merge pull request #2508 from whoalin1 2026-11-22 13:15:49 -05:00
500f38531f Merge pull request #2378 from skipper 2026-11-22 13:14:24 -05:00
ec8ec4c9a4 Fix what the round-40 merges broke
- docs: one row per topic again in design.md (59 topics merged sentence by sentence, keeping every
  number) and README.md (the current models/character rows); one Other languages line.
- docs/i18n: the two Spanish quickstarts had been concatenated; keep #1912's, drop #2277's row.
- make_game: the shader fingerprint covers spirv_asm.py and its tables; LF settings write.
- tools: pe_shader_containers, gamedata_maps and anim_rigs use report_paths.same_report_path (BUILD-589);
  stdout guard on five tools; LF text writes in three; user_sgpr_census tolerates an unreachable --json.
- tests: fspx stage fakes write real carve/unpack indexes (c7408a1f); typed f16 stores round toward zero
  (SHADER-358); test_ci_registration's helper is no longer collected as a test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:55:07 -05:00
ca85d3e2a3 BUILD-667: repair empty disassembly listings
Treat zero-byte listings as missing during preflight and resume, matching the disassembler. AI-assisted.
2026-11-22 18:44:03 +01:00
bf6c37182f BUILD-667: validate completed disassembly inventory
Keep the expected output set through interrupted repairs and preserve valid listings.
2026-11-22 18:30:56 +01:00
32c0105514 fix(build): rebuild FSPX caches with missing modules
Matching build settings could hide an incomplete shader cache and leave missing runtime upscaler modules after a rerun.
2026-11-22 18:29:17 +01:00
6b783318b3 BUILD-667: resume interrupted shader disassembly
Depends on: #2031. AI-assisted.
2026-11-22 18:24:00 +01:00
542d028004 Merge remote-tracking branch 'origin/main' into perf/wave64-emulate-dead-scc-exec-fold
# Conflicts:
#	docs/design.md
#	tools/rdna2spirv.py
2026-11-22 13:23:16 -04:00
1064a48b09 make_game: expose maxPushConstantsSize and auto-enable --pc-tail-ubo
Read VkPhysicalDeviceProperties.limits.maxPushConstantsSize (offset 328 on
64-bit) in tools/vk_subgroup_info.py and expose it as max_push_constants_size.

Add --pc-tail-ubo to make_game.py's forwarded translator fallback flags (so it
reaches translate(), fspx_shaders(), preflight(), and spirv/translator_flags.txt)
and enable it automatically for the shaders stage when the GPU the runtime would
use reports maxPushConstantsSize below what the shaders need (144 bytes, or 152
with --mesh-compute).

Co-Authored-By: Gemini 4 Neon <noreply@google.com>
2026-11-22 19:17:34 +02:00
d811bde9fa fix: use native wave64 on AMD Windows RDNA1 (BUILD-629) 2026-11-22 18:45:41 +02:00
b75eef50f5 Merge pull request #2142 from Samu3k 2026-11-22 11:42:11 -05:00
c97e961387 Merge pull request #2111 from Thatters 2026-11-22 11:41:53 -05:00