Commit Graph

2403 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
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
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
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
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
15173f2ade Merge pull request #2737 from Vonsek 2026-11-22 13:17:27 -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
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
85f59988a0 Merge pull request #2714 from FreddyxS 2026-11-22 13:17:16 -05:00
4e646b96c1 Merge pull request #2712 from Davide 2026-11-22 13:17:15 -05:00
cddf26d366 Merge pull request #2708 from Lucy 2026-11-22 13:17:14 -05:00
a27ab3a74d Merge pull request #2705 from Ayinaki 2026-11-22 13:17:13 -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
2a853d019c Merge pull request #2695 from Kam471 2026-11-22 13:17:09 -05:00
0313e4d631 Merge pull request #2688 from Kosmabb8 2026-11-22 13:17:06 -05:00
e16cd98b67 Merge pull request #2685 from Vonsek
# Conflicts:
#	docs/design.md
2026-11-22 13:17:05 -05:00
50d5736032 Merge pull request #2684 from tikD1337 2026-11-22 13:17:04 -05:00
50e3c60d7d Merge pull request #2681 from Leonardo Guimaraes 2026-11-22 13:17:02 -05:00
cb6cd67a68 Merge pull request #2680 from OpenCode 2026-11-22 13:17:01 -05:00
d04ae898a7 Merge pull request #2675 from Linnard Alex Brown Jr. 2026-11-22 13:16:59 -05:00
efc5218612 Merge pull request #2673 from Vonsek 2026-11-22 13:16:59 -05:00
9b306d053c Merge pull request #2672 from Desamodeth 2026-11-22 13:16:58 -05:00
732f2d0a2a Merge pull request #2670 from Vonsek 2026-11-22 13:16:57 -05:00
7c41d396d0 Merge pull request #2668 from JavierBlanco23
# Conflicts:
#	docs/design.md
2026-11-22 13:16:57 -05:00
1a859d9e24 Merge pull request #2667 from AAyberkU 2026-11-22 13:16:55 -05:00
5be0d993a1 Merge pull request #2660 from veloraxxx 2026-11-22 13:16:53 -05:00
2c2f6ffbd7 Merge pull request #2658 from Vonsek 2026-11-22 13:16:52 -05:00
bd408f4fed Merge pull request #2655 from Youssef Rahmouni
# Conflicts:
#	docs/design.md
2026-11-22 13:16:52 -05:00
f149206993 Merge pull request #2654 from Tim Elery 2026-11-22 13:16:50 -05:00
9bf6431dcb Merge pull request #2650 from Vonsek
# Conflicts:
#	docs/design.md
2026-11-22 13:16:49 -05:00
f9e3e2b1ee Merge pull request #2649 from Vonsek 2026-11-22 13:16:47 -05:00
20ac4599cc Merge pull request #2639 from Kacper Serewis 2026-11-22 13:16:43 -05:00
e2340a7def Merge pull request #2638 from Vonsek 2026-11-22 13:16:43 -05:00
9a537102fe Merge pull request #2631 from Tim Elery 2026-11-22 13:16:40 -05:00
8e8046f0f0 Merge pull request #2629 from klarnet2009 2026-11-22 13:16:39 -05:00
68a05b6e3d Merge pull request #2610 from sds-228 2026-11-22 13:16:32 -05:00
78855ed7d6 Merge pull request #2608 from whoalin1 2026-11-22 13:16:32 -05:00
fb5d2c13fd Merge pull request #2606 from Vonsek
# Conflicts:
#	docs/design.md
2026-11-22 13:16:31 -05:00
e757222dd1 Merge pull request #2603 from Kosmabb8 2026-11-22 13:16:29 -05:00
cf9dc86395 Merge pull request #2602 from jvinpe 2026-11-22 13:16:28 -05:00