Commit Graph

6425 Commits

Author SHA1 Message Date
90a6b5d052 first_light.py: refuse a linked first_light even when nothing stale lies behind it
Review of #3577: reset_run_folders() judged first_light only through the dxbc and spirv folders it found. When
first_light is a symlink or a junction to a folder that has neither, there was nothing to judge, and the new dxbc
was created in the folder the link points to, outside the work folder.

first_light itself is now checked before its children. tests/test_first_light.py gains the case with neither
folder behind the link (symlink and junction): it fails on the previous commit with "SystemExit not raised" and the
far folder gets a dxbc; with the check the run is refused and the far folder stays empty.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 23:21:26 +02:00
35fe778eb6 first_light.py: start each run with empty first_light/dxbc and first_light/spirv
The tool staged the chosen VS and PS containers in <work>/first_light/dxbc and had them translated into
<work>/first_light/spirv, and emptied neither. fssm_unpack.py, shader_disasm.py and rdna2spirv.py take every file
in the folder they are given, so a second run with another shader translated the first run's container again:
"3 shaders: 2 translated" for a pair, the extra one with "stage ?", and its files stayed beside this run's.

reset_run_folders() removes both folders at the start of translate() and creates an empty dxbc. first_light/out,
another --out and <work>/shaders are not touched. A folder that is a symlink or a junction, or sits behind a
linked first_light, is refused before anything is removed; a link inside is unlinked without being entered; a
file that cannot be removed ends the run with one line naming it.

tests/test_first_light.py: RunFolderTests runs the tool twice in one synthetic work folder, with stand-ins for
the three tools that take every file like the real ones. docs/first_light.md says the two folders are per-run.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 22:45:00 +02: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
81ec7f74c3 d3d12: link f16 halves between the VS and the PS, which is stages[2] since #2109
#2109 made the PSO stages {vs, gs, ps}; the --f16-interp-fallback link (SHADER-378, #2389) still read the PS from
stages[1], found the empty GS slot and never ran, so d3d12_f16_halves drew nothing. With a GS the PS reads the GS's
outputs, so the VS/PS link is skipped there (logged once). Also: xgameruntime_test re-reads the package id after
clearing the LEONIDA_PACKAGE_ID override.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 14:41:01 -05:00
15f5b2fbc0 Fix what the round-41 merges broke
- tests/semantic: BaseVertex/BaseInstance read 0 in the wave interpreter; the LDS MockGens follow
  SHADER-309 (lds_bound, lds_access, lds_atomic); abs emission tests load their operand, since
  SHADER-315 folds scalar ALU on constants.
- test_translate: the dynamic gather sampler is a loaded word, not s16 + 0 (SHADER-315 folds it).
- test_world_build: DDS downscale weights colours by alpha (62804d0d).
- test_fspx_shaders_stage: the fake disassembler writes the listing make_game now checks.
- xgameruntime_test: re-read the package id after clearing the LEONIDA_PACKAGE_ID override.
- docs: one row per topic again in design.md (72 topics) and README.md; one Other languages line;
  embedded_shaders.md keeps one copy of each bullet; animation.md links the heading anchor.
- tools/scripts: character_textures uses report_paths.same_report_path; stdout guard on six programs;
  LF write in vs_input_survey; the cl.exe fallback compiles winhttp_offline.cpp.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 14:30:33 -05:00
1b2e8ff3d6 Revert "Merge pull request #2732 from Kam471"
This reverts commit f8175dc501, reversing
changes made to 6e3426d694.
2026-11-22 14:25:31 -05:00
b93abf0dbe Revert "Merge pull request #2350 from slopgobblercobbler"
This reverts commit 451b0c0443, reversing
changes made to f7e4c21440.
2026-11-22 14:18:57 -05:00
da0dd72e73 Revert "Merge pull request #2335 from slopgobblercobbler"
This reverts commit bff23c395d, reversing
changes made to 168316fea6.
2026-11-22 14:18:57 -05:00
b270140c6d Merge pull request #2398 from Kam471
# Conflicts:
#	docs/README.md
#	docs/design.md
2026-11-22 13:57:31 -05:00
c2d42e9d9c docs/i18n/it: one sync line and one index row after merging #2213's update
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 13:57:29 -05:00
162821017e Merge pull request #2857 from Kam471/docs/low-disk
docs: document the low-disk run-only build and hint it in preflight
2026-11-22 12:51:15 -06:00
673d3d16c0 Merge pull request #2377 from Kam471/docs/sixstars-verified-format-facts
docs: record the 6stars format facts that reproduce
2026-11-22 12:50:28 -06:00
89c2d9ac12 Merge pull request #2309 from Faterek/asset-148-restofworld-textures
restofworld_index: identify embedded 0x980 textures and companion TTPF pools (ASSET-148)
2026-11-22 12:48:22 -06:00
cf066410ac Merge pull request #2542 from Faterek/shader-cmp-class-f32-mods
rdna2spirv: bitwise abs/neg in v_cmp(x)_class_f32 to preserve sNaNs (SHADER-457)
2026-11-22 12:48:02 -06:00
77444fa0fb Merge pull request #2773 from StandoffKitty75/codex/close-tool-startup-file
test: close tool source files after import scan
2026-11-22 12:43:48 -06:00
b8259d91a3 Merge pull request #2765 from klarnet2009/fix/psin-data-dump-oserror
fix(tools): catch OSError when opening --dump input in psin_data
2026-11-22 12:43:24 -06:00
6d119bd5e4 Merge pull request #2757 from Vonsek/codex/texture-index-small-dimensions
fix(tools): retain small textures in the descriptor index
2026-11-22 12:41:36 -06:00
81e0392f97 docs: document the low-disk run-only build and hint it in preflight 2026-11-22 18:32:05 +00:00
4102dcfd08 Merge pull request #2745 from Vonsek 2026-11-22 13:17:30 -05:00
b09569ffb2 Merge pull request #2743 from Contributor 2026-11-22 13:17:30 -05:00
4dc94c2b22 Merge pull request #2742 from Kosmabb8 2026-11-22 13:17:29 -05:00
9fde7d56f1 Merge pull request #2741 from slopgobblercobbler 2026-11-22 13:17:29 -05:00
15173f2ade Merge pull request #2737 from Vonsek 2026-11-22 13:17:27 -05:00
3a44e1926b Merge pull request #2736 from mrp1no 2026-11-22 13:17:27 -05:00
89d191af09 Merge pull request #2734 from admin 2026-11-22 13:17:26 -05:00
f8175dc501 Merge pull request #2732 from Kam471 2026-11-22 13:17:25 -05:00
6e3426d694 Merge pull request #2731 from tibzejoker 2026-11-22 13:17:25 -05:00
47449d3e29 Merge pull request #2729 from itsRevela
# Conflicts:
#	docs/design.md
2026-11-22 13:17:24 -05:00
5dbd34dacc Merge pull request #2728 from Størm 2026-11-22 13:17:23 -05:00
514d5ab410 Merge pull request #2727 from slopgobblercobbler 2026-11-22 13:17:22 -05:00
3c2ffa2df6 Merge pull request #2725 from Vonsek 2026-11-22 13:17:22 -05:00
702d4eb014 Merge pull request #2724 from Kosmabb8 2026-11-22 13:17:21 -05:00
5b63f6da7c Merge pull request #2722 from Tim Elery
# Conflicts:
#	docs/design.md
2026-11-22 13:17:21 -05:00
bd759946d2 Merge pull request #2719 from Vonsek 2026-11-22 13:17:18 -05:00
85f59988a0 Merge pull request #2714 from FreddyxS 2026-11-22 13:17:16 -05:00
9f53808e02 Merge pull request #2713 from Capital 2026-11-22 13:17:16 -05:00
4e646b96c1 Merge pull request #2712 from Davide 2026-11-22 13:17:15 -05:00
98d6888686 Merge pull request #2709 from totonii 2026-11-22 13:17:14 -05:00
cddf26d366 Merge pull request #2708 from Lucy 2026-11-22 13:17:14 -05:00
561a48abf1 Merge pull request #2707 from justr4mzi 2026-11-22 13:17:13 -05:00
a27ab3a74d Merge pull request #2705 from Ayinaki 2026-11-22 13:17:13 -05:00
57400b83fa Merge pull request #2704 from Vonsek 2026-11-22 13:17:12 -05:00
3a40f5a539 Merge pull request #2702 from Sc4ros 2026-11-22 13:17:12 -05:00
54289ad441 Merge pull request #2701 from Vonsek 2026-11-22 13:17:11 -05:00
432b164d9d Merge pull request #2699 from Kosmabb8 2026-11-22 13:17:10 -05:00
c5649de1a9 Merge pull request #2698 from justr4mzi 2026-11-22 13:17:10 -05:00
2a853d019c Merge pull request #2695 from Kam471 2026-11-22 13:17:09 -05:00
06dc014792 Merge pull request #2693 from admin 2026-11-22 13:17:08 -05:00
2f82f70645 Merge pull request #2692 from FIocker 2026-11-22 13:17:08 -05:00
8511fbad1d Merge pull request #2689 from Capital 2026-11-22 13:17:06 -05:00