Commit Graph

20 Commits

Author SHA1 Message Date
844b2834f6 Merge branch 'main' into test-shader-link-publish 2026-11-28 22:42:52 +05:00
34d44bdf56 Merge pull request #715 from kirigayakazima/fix/shader-link-check-ro-cleanup
shader_link_check: restore writable mode before unlinking staging file on failure (SHADER-LINK-CHECK-RO-CLEANUP)
2026-11-28 14:04:42 +01:00
00131bb85e main keeps its own runtime, tools and tests; the branch's variants stay on port/d3d12-nvidia
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>
2026-11-27 17:58:38 -05:00
b87abdef57 Merge mandy's main into port/d3d12-nvidia
Brings the D3D12 runtime branch (d3d12/, its launcher scripts and notes, and the pull requests reviewed and applied
on it) together with mandy's main.

Conflicts (67 files, none under d3d12/): docs/, make_game.py, runtime/, scripts/build_runtime.ps1, tests/ and
tools/. Every one takes main's side: main is where that code is maintained, and this branch's copies were older
states of the same files or the same pull requests in another form. tests/test_fspx_unpack.py is main's too, as it
tests main's tools/fspx_unpack.py. Nothing under d3d12/ is changed by the merge.

Checked before pushing: python -m compileall over make_game.py, tools and tests; make_game.py --help;
scripts/check_no_game_data.py over the files this adds to main; tests/test_text_write_line_endings.py. The
translator suite, the C++ runtime build and CI have not run on the result.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 17:50:37 -05:00
0208fb8e33 PR #807: shader_link_check: restore write mode before unlink on replace failure (SHADER-LINK-CHECK-STAGE-CLEANUP)
From https://github.com/ProjectLeonida/mandy/pull/807 (head 0f53b3eecd), applied as a reviewed patch.

Co-authored-by: trigger337 <trigger337@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 15:42:14 -05:00
7323d81f06 shader_link_check: share the report collision guard
Use report_paths.same_report_path for the report and its inputs, so a missing input whose name differs only by spelling on a case-folding volume is refused before the report is written.
2026-11-24 21:14:34 +01:00
534c159bc4 Update test_shader_link_check.py 2026-11-25 00:55:51 +05:00
940b0ae227 shader_link_check: restore writable mode before unlinking staging file on failure 2026-11-24 20:49:04 +08:00
7c8aa0c0b0 shader_link_check: select entry points for individual stages (#6857)
Squash-merged after diff review of PR #6857 - shader_link_check: select entry points for individual stages
2026-11-23 09:46:11 -06:00
c6920fe155 shader_link_check: read the batch manifest as utf-8-sig, so a Windows BOM is not a JSON error (EGEN-SHADERLINK-MANIFEST-BOM) (#6881)
Squash-merged after diff review of PR #6881 - shader_link_check: read the batch manifest as utf-8-sig, so a Windows BOM is not a JSON error (EGEN-SHADERLINK-MANIFEST-BOM)
2026-11-23 09:42:14 -06:00
79ae33a9ca Merge pull request #4608 from leather147
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:16:23 -05:00
cc8fdf19af spirv_interface: reflect MeshNV outputs
AI-assisted (Codex).
2026-11-23 06:07:44 +03:00
e50a5e8e19 Use file identities in shader link report preflight 2026-11-23 02:28:09 +01:00
68303f3af1 Merge pull request #2507 from bbareth 2026-11-22 13:15:49 -05:00
eb2a6c36d3 shader_link_check: refuse duplicate keys in batch manifests 2026-11-22 18:17:57 +01:00
a046567310 fix(tools): reflect shader array specialization defaults
The link checker has no specialization overrides. Use the literal default of an interface array length instead of rejecting the module it can compare.
2026-11-22 18:06:45 +01:00
edeb3589bf Merge pull request #1925 from Rafael 2026-11-22 10:39:29 -05:00
8c8a0adc4f shader_link_check: accept the corpus's shader names in a batch manifest
`batch` only accepted shader names matching [a-zA-Z0-9_][a-zA-Z0-9_.-]*. make_game's corpus names
(shader_carve stems) mostly don't: on my 1.0.2.1 copy 21,043 of 26,503 failed it, 18,359 of them
for "~", the others for "!", "&", "(" or a leading ".". So a manifest built from the translation
folder, as the docs suggest, stopped at "expected a shader name without directories".

The rule's purpose is to keep the name a single path component inside --shader-dir.
is_shader_stem() now checks exactly that. It rejects separators and a drive colon, "." and "..",
the characters a Windows file name can't hold, control characters, and surrounding spaces.
Every other name is accepted.

Real data (counts only): all 26,503 corpus names are accepted (5,460 before). A 50-pipeline
manifest of VS/PS stems containing "~", run against the translated corpus, is refused by main
(exit 2). With this change all 50 are checked: 33 compatible and 17 incompatible, from
randomly chosen pairs.

Tests: test_corpus_style_names_are_accepted_and_paths_are_not accepts "VS~1", "pixel!2&x",
"a(b)c", "x y", "_~-.ok" and ".dotted" (main refuses the first five), and still refuses
"../vertex", "..", ".", "sub/vertex", "sub\vertex", "C:vertex", "a|b", NUL, " vertex" and "".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:04:46 -03:00
461218a6be fix(spirv_interface): reject 64-bit vec2 at Component 2 spanning two locations 2026-11-22 11:59:14 -03:00
f696ad2468 Check SPIR-V interfaces between translated graphics stages
Reflect actual binary user-defined inputs and outputs. Audit stage pairs and chains by location, component, type, and per-primitive domain. Handle arrays used for invocation indexing and explicit maintenance4 matching. Add batch reports, inspection, and standard-library regression tests.

Tested on Linux with synthetic modules and Mesa llvmpipe. VS+PS and VS+GS+PS fixtures draw 4096 expected pixels each. Vulkan validation and the auditor agree on the missing Location 5, Component 2 of a negative case. Mesh+PS fixtures pass spirv-val and the interface check. AI-assisted.
2026-11-22 14:22:26 +01:00