Commit Graph

9534 Commits

Author SHA1 Message Date
8b27343069 Merge pull request #816 from trigger337/fix/world-build-stage-cleanup
world_build: restore write mode before unlink on replace failure in _write_json_atomic (WORLD-BUILD-STAGE-CLEANUP)
2026-11-29 19:36:31 +01:00
761578d776 Merge pull request #1766 from sodove/fix/windows-boot-fault-context
windows-boot: report the loss API, fault query and checkpoint counts
2026-11-29 19:28:29 +01:00
5248a47e40 Merge pull request #1668 from xel1uz/fix/gen-gdk-runtime-classes-atomic-out
gen_gdk_runtime_classes: write --out atomically
2026-11-29 19:28:24 +01:00
157038f7b0 Merge pull request #1648 from xel1uz/fix/feature-scan-atomic-out
feature_scan: write --out atomically and keep the existing report on failure
2026-11-29 19:28:18 +01:00
ac5da9db8a Merge pull request #1623 from xel1uz/fix/buffer-arg-guards
buffer_format_fuzz: reject a negative --budget
2026-11-29 19:28:12 +01:00
fcf7b7d406 Merge pull request #1619 from xel1uz/fix/f16misc-arg-guards
f16misc_diff: reject a zero or negative --max-ops and --programs
2026-11-29 19:28:05 +01:00
65b9afc087 Merge pull request #1453 from Dashhhhhhhh/fix/world-drawable-verify-case-archive
world_drawable_verify: one archive under another case is the same source (WORLD-DRAWABLE-VERIFY-CASE-ARCHIVE)
2026-11-29 19:28:00 +01:00
cc5682001f Merge pull request #1378 from Diegobecker07/make-game-plain-log
make_game: a run without the LEONIDA board still writes <work>/logs/<stage>.log (MAKE-GAME-PLAIN-LOG)
2026-11-29 19:27:43 +01:00
c7ad7ef90b Merge pull request #451 from EdenBendheim/ubiq/ttpf-zero-byte-dds-resume
Repair zero-byte DDS files on TTPF export resume
2026-11-29 19:27:26 +01:00
98b219eb28 make_game: a saved translated index that names a shader not carved here is translated again (BUILD-SHADER-RESUME-IDENTITY)
verify_translation_completeness compares only the number of entries, so on a
resumed shader stage an index left by other inputs with as many entries as the
carve passed for this folder's finished translation and no step ran.

A shader keeps its carved file's stem through unpacking, disassembly and
translation, so the stage now compares the index's names with the carve's: on
resume a stranger drops the index and its shard plan and translates again, and
after a translation a stranger fails the stage and removes the index and its
shard plan, so that a later run of the pipelines stage alone does not take the
index as finished and the next run of this stage does not merge the same parts
again. The names are checked before the counts. The disk-space check no longer
counts such a folder as reusable.

The index is read with read_translation_index and the carve with shader_stems,
as the other steps read them (a UTF-8 BOM included).

The fixture in test_make_game_empty_translation.py named its carved shader
"shader" and its translated one "shader_0"; it now uses one name.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-29 20:21:29 +02:00
7b5cb29414 tests: include set-0 binding 29 (r64ui) capacity in test_spirv_metal_set0.py 2026-11-29 13:21:00 -05:00
c680918704 tests: require one matching stack reserve in the fallback link line (TEST-BUILD-FALLBACK-STACK-OPTION) 2026-11-30 02:21:00 +08:00
eace3acdd6 tests: require exactly the configured stack reserve (TEST-BUILD-FALLBACK-STACK-OPTION) 2026-11-30 02:07:54 +08:00
8db8335d23 tests/ci: fix llvmpipe skip on cs_w64x_dynamic_r32_uint, Set 0 binding 29 counts, and D16S8 table row 2026-11-29 12:59:52 -05:00
3cd08cfc78 tests: list bink_index in SHARED
The reviewers' red test: with this entry on main,
test_switched_tools_import_the_helper_and_define_no_copy fails with
"'from report_paths import same_report_path' not found"; with this branch
it passes.
2026-11-29 18:59:49 +01:00
c76c322bdf tests: allow link options after stack reserve (TEST-BUILD-FALLBACK-STACK-OPTION) 2026-11-30 01:48:04 +08:00
caf4fc3698 Merge upstream main into the PR branch 2026-11-29 16:54:24 +00:00
eff40832ef Merge remote-tracking branch 'refs/remotes/mandy/main' into fix/rendering-correctness
# Conflicts:
#	runtime/shims/d3d12_com.cpp
#	runtime/shims/d3d12_vulkan_device.cpp
#	runtime/src/command_list.h
#	runtime/src/vulkan_replay.h
#	runtime/test/gfx10_descriptors_test.cpp
2026-11-29 11:51:06 -05:00
ec400e9e6f launcher: Cancel before the process has started stops it once it has; the docs flag check knows cargo's flags
Two points from the review of old upstream PR 4578:

- A Cancel pressed before the process's Started event arrived set `cancelled` but had no pid to stop, and
  Started then stored the pid without looking, so the command ran on. Started now stops it when Cancel came
  first (launcher/src/app.rs).
- tests/test_docs_cli_flags.py was red: launcher/README.md quotes cargo's `--all-targets` and the test runner's
  `--ignored` and `--nocapture`, which no scanned source names. They join FOREIGN, the other programs' flags the
  docs quote.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 11:43:05 -05:00
f051ae5183 d3d12/tests: fix Windows MSVC build, CopyMemory collision, copy parity guard, and --no-ftz32 probe 2026-11-29 11:41:49 -05:00
59ce2c87b0 Merge origin/main into carry/pr-65
tools/rdna2spirv.py: main's d16 "destination is also read" check (now
DST_ALSO_READ, plus buffer_load_format_d16_hi_x) gains the PR's flat_load_
prefix. docs/design.md: main's 8/16-bit global row is kept and the PR's
"Flat memory" row follows it.

Co-authored-by: tiagonogueiraa-bit <360313680+tiagonogueiraa-bit@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 17:23:56 +01:00
51445af783 Merge origin/main into carry/pr-282
Conflict in the x_memory_order docstring (tools/rdna2spirv.py): main already
ignores ds_nop (80417b9c4), so the PR's part still new is ordering
image_sample, image_gather4 and image_bvh; its docstring is kept. The PR's
parity test probe gains x_one_lane, which main's Gen.x_memory_order reads.

Co-authored-by: totonii <totonicontato@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 17:14:37 +01:00
bd1521ca03 Merge pull request #1421 from thiefyzheng/fix/test-meshalloc-syspath
tests: test_mesh_alloc_single_writer inserts 'tools' by __file__, not cwd (TEST-MESHALLOC-SYSPATH)
2026-11-29 16:45:19 +01:00
4ebfec34d7 Merge pull request #846 from TheGeogeo/fix/preserve-pipeline-crash-report
make_game: preserve crash reports when a retry fails setup (BUILD-PIPELINE-RETRY-CRASH-REPORT)
2026-11-29 16:44:37 +01:00
fd5ad13bd9 Merge pull request #2154 from whoalin1/shader-stage-cache-crossroot
rdna2spirv: cache shader stages per carve root
2026-11-29 16:44:05 +01:00
d00d46c1e4 Merge pull request #1839 from delysidemanYT1/gpu-spirv-as-diagnostics
GPU-SPIRV-AS-DIAGNOSTICS: Preserve spirv-as diagnostics containing undecodable bytes
2026-11-29 16:43:01 +01:00
6ebdee1978 tests: honor GPU float32 flush-to-zero support in shader fixtures 2026-11-29 10:40:34 -05:00
7599556c37 awc_manifest: publish mode on Windows (AWC-MANIFEST-STAGE-CLEANUP)
agent: yes
AI-assisted: yes
2026-11-29 18:24:24 +03:00
eeb967c89e shader_disasm: restore write mode before unlink on replace failure and publish mode (SHADER-DISASM-STAGE-CLEANUP)
Apply published_mode(out_file) to temporary listing before atomic replacement,
and restore write permission (0o600) before unlinking in finally block
when replace fails, preventing Windows PermissionError [WinError 5] and
stranded temporary files.

agent: yes
AI-assisted: yes
2026-11-29 18:24:20 +03:00
ca8a627c5c bary_fallback_gs: restore write mode before unlink on replace failure and publish mode (BARY-FALLBACK-GS-STAGE-CLEANUP)
Apply published_mode(asm/spv) to temporary files before atomic replacement,
and restore write permission (0o600) before directory cleanup in exception block
when replace fails, preventing Windows PermissionError [WinError 5] and
stranded temporary files.

agent: yes
AI-assisted: yes
2026-11-29 18:24:17 +03:00
912d15cc7a mesh_compute_vs: restore write mode before unlink on replace failure and publish mode (MESH-COMPUTE-VS-STAGE-CLEANUP)
Apply published_mode(spv) to temporary staged SPV before atomic replacement,
and restore write permission (0o600) before directory cleanup in exception block
when replace fails, preventing Windows PermissionError [WinError 5] and
stranded temporary files.

agent: yes
AI-assisted: yes
2026-11-29 18:24:15 +03:00
cc5d5e3123 manifest: restore write mode before unlink on replace failure and publish mode (MANIFEST-STAGE-CLEANUP)
Apply published_mode(out) to staged manifest file before atomic replacement,
and restore write permission (0o600) before TemporaryDirectory cleanup in
exception block when replace fails, preventing Windows PermissionError [WinError 5]
and stranded temporary files.

agent: yes
AI-assisted: yes
2026-11-29 18:24:12 +03:00
3e0f3074c4 manifest_verifier: restore write mode before unlink on replace failure and publish mode (MANIFEST-VERIFIER-STAGE-CLEANUP)
Apply published_mode(path) to temporary cache file before atomic replacement,
and restore write permission (0o600) before unlink in exception block when
replace fails, preventing Windows PermissionError [WinError 5] and stranded
temporary cache files.

agent: yes
AI-assisted: yes
2026-11-29 18:24:10 +03:00
c22a0a7322 Merge pull request #719 from kirigayakazima/fix/glb-writer-ro-cleanup
glb_writer: cover failed replacement of a read-only GLB on Windows
2026-11-29 15:53:15 +01:00
f49bcfe7eb Merge pull request #694 from abnalstlll-byte/feat/pe-shader-containers-multi-image
pe_shader_containers: parse and validate multi-image container layouts (OLD-9775)
2026-11-29 15:38:36 +01:00
67837f00c3 Merge pull request #707 from abnalstlll-byte/feat/dx10-test-inventory
tools: provide synthetic test inventory and subsystem map (DX-10)
2026-11-29 15:38:27 +01:00
fd49353935 Merge pull request #1159 from Taffyyy-ops/fix/awc-markers-short-read
awc_markers: reject incomplete reads (AWC-MARKERS-SHORT-READ)
2026-11-29 15:38:18 +01:00
02bd09b41b Merge pull request #1142 from Taffyyy-ops/fix/anim-skel-report-error
anim_skel_match: report JSON write errors (ANIM-SKEL-REPORT-ERROR)
2026-11-29 15:38:07 +01:00
a554262ba8 Merge pull request #1136 from Taffyyy-ops/fix/audio-config-scan-search
audio_config: search sparse markers efficiently (AUDIO-CONFIG-SCAN-SEARCH)
2026-11-29 15:37:57 +01:00
74f470347a Merge pull request #1124 from Taffyyy-ops/fix/boot-trace-read-error
boot_trace: handle read errors during iteration (BOOT-TRACE-READ-ERROR)
2026-11-29 15:37:47 +01:00
a58d22fe2e Merge upstream ProjectLeonida/mandy main (ddfe24fba) into fix/rendering-correctness 2026-11-29 09:37:37 -05:00
6233946833 Merge pull request #1119 from Taffyyy-ops/fix/gdk-table-shape
gdk_runtime_calls: validate table lookup shapes (GDK-TABLE-SHAPE)
2026-11-29 15:37:37 +01:00
8843102027 Merge pull request #1115 from Taffyyy-ops/fix/d3d12-trace-sequence-limit
boot_trace: skip unparseable D3D12 sequence fields (D3D12-TRACE-SEQUENCE-LIMIT)
2026-11-29 15:37:27 +01:00
f605dfa54c Merge pull request #1060 from sodove/test/w64g-reference-default
Compare tier C references against a verified 32-wide draw (TEST-W64G-REF-DEFAULT)
2026-11-29 15:37:17 +01:00
91bab934d7 Merge pull request #835 from TheGeogeo/test/windows-known-folders-partial
tests: cover partial Windows known-folder results (TEST-WINDOWS-KNOWN-FOLDERS)
2026-11-29 15:27:11 +01:00
99c11d5827 Merge pull request #2215 from whoalin1/runtime-incremental-no-reloc-fixtures
runtime: link no-relocation fixtures without incremental linking
2026-11-29 15:27:02 +01:00
cd5ee11079 rdna2spirv(r9b): unconditional CS/MS LDS bounds, PS EarlyFragmentTests, mesh epilogue & PS quad swizzle
Round 9b translator fixes for rendering correctness and Mandy d3d12/ parity:

1. Unconditional CS & MS LDS OOB bounds (Mandy 21633b328 parity):
   - Record g.lds_declared from PSV0.shared for MS and RSRC2.LDS_SIZE for CS.
   - Whenever g.lds_declared > 0 (opt-out --no-lds-bounds), set
     g.lds_dwords = g.lds_bound = min(g.lds_declared, 16384) so every LDS
     read, write, sub-dword, wide, and atomic op goes through lds_access()
     (OOB reads return 0, OOB writes/atomics dropped instead of wrapping).

2. PS DB_SHADER_CONTROL bit 12 EarlyFragmentTests (Mandy f33940415/bf479a3cd):
   - Add fssm_header.db_shader_control() reading u32 at E + 0x138 (0x24C for
     rec = 0xB0; 3,023/12,101 corpus PS have bit 12 DEPTH_BEFORE_SHADER set).
   - Emit OpExecutionMode %main EarlyFragmentTests (opt-out --no-early-depth)
     and record early_depth in shader_meta when bit 12 is set and the PS does
     not export depth/stencil (no exp mrtz, DB_SHADER_CONTROL & 0x7 == 0, no
     OSG1 SV_Depth*/SV_StencilRef).

3. Defensive mesh epilogue & PS helper-lane quad swizzle:
   - MeshEXT and --mesh-compute epilogues explicitly write CullPrimitiveEXT =
     true (1) and (0, 0, 0) when %mli < %msp and !%ms_has_prim.
   - Lower quad-local ds_swizzle_b32 in PS via OpGroupNonUniformQuadBroadcast /
     OpGroupNonUniformQuadSwap (GroupNonUniformQuad capability) so Vulkan 2x2
     helper invocations participate on AMD RADV while EXEC-masked lanes still
     read 0.

Verified: compileall, check_no_game_data.py, 6,674/6,674 semantic tests (0
failures), 200/200 corpus slice (200/200 spirv-val), plus targeted LDS MS
(5/5), LDS CS (60/60), early-depth PS (120/120), and PS quad-swizzle (50/50)
corpus slices (100% spirv-val). AI-assisted.
2026-11-29 09:25:40 -05:00
48ca87fa24 make_game: the plain stage logs show a command's output as decoded text, in the caller's encoding (MAKE-GAME-PLAIN-LOG)
PlainStageLogs passed a command's raw bytes to sys.stdout.buffer. A Windows console's buffer takes UTF-8, so
non-ASCII text a command wrote in its own code page showed U+FFFD on screen, where main's --no-tui (the command
inheriting the console) shows it right. Measured in a console with OEM 850 / ANSI 1252: a child writing cp850
"n\xc6o par\x83metro" showed "n\ufffdo par\ufffdmetro".

- run() decodes the output once as it arrives (an incremental decoder, so a character split between two reads
  stays whole) and sends that text to the console, encoded for sys.stdout with errors="replace", and to the log;
- the encoding is the one the caller names with run(..., encoding=), else what a text-mode pipe decodes with, as
  on the board.

Three new tests: the caller's encoding on the console and in the log, a UTF-8 character split between reads, and
a character the console's code page lacks.
2026-11-29 11:23:16 -03:00
d3418c61d7 Merge pull request #2205 from whoalin1/compare-unexpected-exit2
conformance compare: harden crash and image input error handling
2026-11-29 15:13:32 +01:00
9bb67cb537 Merge pull request #987 from TheGeogeo/fix/semantic-mutants-zero-test-baseline
semantic_mutants: reject zero-test baselines (MUTANTS-ZERO-TEST-BASELINE)
2026-11-29 15:09:42 +01:00