`same_output_path` was a second derivation of `report_paths.same_report_path`, which CONTRIBUTING.md asks a report writer to call, and it missed the helper's folding-volume probe (vfat/exFAT/CIFS). The name stays as a one-line delegation because `tests/test_shader_profile.py` calls it by name.
After the merge the tree held this branch's older states of files main maintains. Run against main's code,
tests/test_acphal_abi.py and 11 of the 15 translator tests that differed failed, and the C++ runtime would have
been built from two generations of its sources. So that the merge cannot break what main builds and tests:
- runtime/ is main's, file for file (68 files only this branch had are not carried over);
- every file under tools/, tests/ and docs/ that both sides have is main's (80 files);
- ten translator tests only this branch has, which test rules main's translator does not have, and their
fixtures are left out.
What main gains: d3d12/ (the Rust D3D12 runtime), its launchers and helpers (Launcher.bat, scripts/play*.ps1,
play-linux.sh, port_ctl.py, smooth-motion.ps1, fetch_vkd3d_proton.py, sync_victory.py), mods/example_lua, eleven
notes under docs/, seven tools and the tests that pass with main's code, the README's sections and credits, and
the "Runtime traps" section of AGENTS.md. Everything left out here is on the branch port/d3d12-nvidia.
Checked: compileall; make_game.py --help; check_no_game_data.py over every file this adds to main; the
line-ending, docs-encoding, CI-registration and docs tests; each test file that differs from main, on its own.
Not run: the whole translator suite, the C++ build, cargo over d3d12/ after the merge (d3d12/ is byte for byte the
branch's), CI.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
open(path, "w") without newline= turns each \n into \r\n on Windows, so the same JSON report, manifest or assembly
listing was CRLF there and LF elsewhere. 91 text-mode writes (open, os.fdopen, Path.write_text) under tools/, scripts/,
make_game.py and runtime/test/shaders/ now pass newline="\n". tests/test_text_write_line_endings.py reads the source
with ast and fails for a writer that forgets it; CONTRIBUTING.md names the convention.
AI-assisted (Claude), on behalf of dev-ewann.
The per-stage report took the stage from the file name's first two characters before an
underscore, but most corpus names carry no stage prefix, so on my 26,503-shader corpus 25,040
(94%) landed under "?" (ps 1,228, vs 225, ms 10, cs 0). shader_carve.py's index.json next to the
disasm folder has every container's stage from its program header, as rdna2spirv.stage_of reads
it; stage_map() now loads it and the name prefix is only the fallback for shaders it doesn't list
(or when there is no readable index).
Real data (counts only), the same 26,503 shaders, main -> this change:
? 25,040 -> 0, ps 1,228 -> 12,101, ms 10 -> 9,282, cs 0 -> 2,689, vs 225 -> 2,236, gs 0 -> 195.
Tests: test_cli_takes_the_stage_from_the_carve_index (main: every listed shader without a prefix
is "?", and a name prefix wins over the index).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Windows a redirected stdout uses the console's ANSI code page, and python -I ignores PYTHONUTF8 and
PYTHONIOENCODING, so a caller path with a character outside that code page ended a run with
UnicodeEncodeError as soon as a tool printed it. #1406 fixed make_game.py; every CLI tool in tools/ now starts
its __main__ block the same way (stdout errors="replace").
tests/test_tool_stdout_encoding.py checks every tool's __main__ block and reruns two measured crashes
(analyze_4240_full.py, meshlet_page.py) with a private-use-named input. Found by @abilliontokens.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A missing source or a file given as one ended in a traceback from
os.listdir. An --out in a folder that doesn't exist (or that is a
folder itself) failed only after the whole corpus had been profiled,
again as a traceback. The source and the output folder are now checked
first, and a failed write is caught; each case prints one line naming
the path and exits 2.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
profile_shader() and register_footprint() were only called from the tests.
main() now runs profile_shader() on every shader and adds a "registers"
section to profile.json: per stage, the max and mean VGPR/SGPR count and a
VGPR histogram (<=32/64/128/256). --per-shader also lists each shader's
instruction count and VGPR/SGPR footprint. Existing output is unchanged.
Tested with hand-written disassembly only (tests/test_shader_profile.py).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011jW1LkcxdgoMR14Ng7tzCo
Shader pipeline (carve, FSSM unpack, gfx1013 disassembly, RDNA2 to SPIR-V),
asset export via rpf9-explorer's Core (submodule), PE loader and shim
skeleton, and make_game.py, which builds from the user's own copy of the game.
No game data, keys or executables are included.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>