Commit Graph

14 Commits

Author SHA1 Message Date
7817a454ae wave64_graphics_scan: harden --out guards, OSError privacy, atomic JSON, and tie-breaking 2026-11-25 06:05:31 +01:00
0d31cdd642 wave64_graphics_scan: use shared report_paths.same_report_path for --out guards (BUILD-589) (#6600)
Squash-merged after diff review of PR #6600
2026-11-23 11:18:44 -06:00
edc722c629 docs: point wave64_graphics_scan at its --help usage line (#6657)
Squash-merged after diff review of PR #6657
2026-11-23 11:04:31 -06:00
9bf15a8410 Protect wave64 scan FSSM headers from report output 2026-11-23 00:23:07 +01:00
efc5218612 Merge pull request #2673 from Vonsek 2026-11-22 13:16:59 -05:00
afe03f9e13 fix(tools): classify graphics wave size from FSSM headers
Missing the authoritative wave-size flag omitted wave64 graphics shaders whose code does not contain a wave-size marker.
2026-11-22 18:48:34 +01:00
d52ed5a159 wave64_graphics_scan: protect listings and stage metadata from report output 2026-11-22 17:50:36 +01:00
7354a9de81 Merge pull request #1821 from Tayar 2026-11-22 09:48:26 -05:00
aaba7e3bca wave64_graphics_scan: scan regular shader files only 2026-11-22 11:25:57 -03:00
ec9b6cf22b tools: text reports are written with LF line ends on every platform (BUILD-468)
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.
2026-11-22 14:20:30 +00:00
f698bf2206 tools: a path outside the console's code page no longer crashes a tool's output
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>
2026-11-22 11:27:00 +00:00
6fe3b119f3 wave64_graphics_scan: validate CLI arguments in main() and add CliTests 2026-11-22 15:04:18 +06:00
4888d60c0f wave64_graphics_scan: parse instructions like the translator, exec/vcc source split for mask words, candidate labels 2026-11-22 10:35:42 +03:00
0092055a72 wave64_graphics_scan: count cross-half-sensitive wave ops in wave64 VS/PS/GS (sizes the design.md:267 deferral) 2026-11-22 10:20:37 +03:00