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.
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.
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.
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>
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>
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.
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>
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.
#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.
- 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>
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>