Commit Graph

1249 Commits

Author SHA1 Message Date
8d686309b0 Merge main into integration/boot-combined (RT-BOOT-COMBINED)
Conflict in runtime/shims/d3d12_xs_device.cpp, proxy_copy_descriptors_simple:
keep this branch's copy_null_rtv_marks call and main's fsdraw::enabled()
gate for the descriptor-copy diagnostic.

tools/rdna2spirv.py merged without a textual conflict, but #1662 on main
calls restore_dot4_inline_sel in the exact re-anchoring path, which this
branch had deleted. The merge puts main's function back so that call
resolves; the next commits reconcile it with the dot4 op_sel rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:49:53 -05:00
a88bb83e06 Merge remote-tracking branch 'origin/main' into fix/explicit-lod-bias-moltenvk 2026-11-26 02:29:04 +01:00
3edb3119fe runtime: answer the console model the title reads from the registry
The title takes its console model from HKLM\Software\Microsoft\Windows NTCurrentVersion\OEM\ConsoleMode, not from XSystemGetDeviceType alone; a PC
has no such value. registry_oem.cpp (ported from VIctory's xsystem.rs)
answers RegOpenKeyW/RegOpenKeyExW/RegQueryValueExW/RegCloseKey for that
key with 0x64 (Series X; 0x60 with LEONIDA_DEVICE_TYPE=6) and passes every
other key to the host. advapi32.dll stays a host module for LoadLibrary.

Found on the real title: its render-target pool budget (0x4000000 or
0x5200000) is picked by this model. The title still stops at its pool
check (game_scarlett_master.exe+0x247af2d): it counts the back buffers
through its XMemAlloc hooks, which Leonida does not call yet.

Tested: registry_oem (new) and d3d12_title_memory pass; gta6rt binds the
four imports to the shim.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:19:40 -05:00
d9bb374655 Fix the third red check, and guard the scripts that landed since (#1561 review)
- test_tool_stdout_encoding: three scripts merged since this PR opened
  (check_compute_journal_overlay.py and compute_workers_win.py with #2098,
  corpus_watch.py with #817) get the same stdout guard as the tools here.
- test_runtime_paths: the runtime workflow's two path filters now include
  tools/conformance/**, which runtime/CMakeLists.txt names. The change is
  #1673's (xel1uz), carried here since #1673 duplicates this PR.

With it, test_tool_stdout_encoding, test_runner_calls_all_tests and
test_runtime_paths all pass on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 19:54:10 -05:00
15350f6da6 rdna2spirv: seed the POPS collision word so the wait loop ends (SHADER-POPS-COLLISION-SEED)
A pixel shader with an ordered section (POPS) reads the hardware's collision word, which sits in the SGPR after the
user SGPRs and the primitive mask: collision wave id in bits 0-9, this wave's id in bits 16-25, overlap in bit 31.
The program waits until wave_id + ~collision_id is below src_pops_exiting_wave_id + ~collision_id (unsigned). The
translator orders the section with fragment-shader interlock and reads the exiting id as 0, and the word was
whatever the push constants held at that dword, usually 0. With wave id == collision id the test is
0xffffffff < 0xffffffff, never true, so a wave that reached the loop ran it until the loop guard (65,536 rounds).
The overlap test before the loop skips it whenever a lane is on in EXEC, so it is a wave (a host subgroup) with EXEC
all off there; on 32-wide subgroups that is either half of a wave64 program whose lanes are all off.

The SGPR is now the source of the program's wave-id extract (s_bfe_u32 with field 0x000a0010) when the program reads
that SGPR's entry value (shader_meta's user_sgpr_reads), and it is set at entry to 0x00010000 (no overlap, wave id 1,
collision id 0): the loop leaves after one round. A program without that extract keeps the old behaviour.

- tools/rdna2spirv.py: pops_collision_sgpr and the entry store.
- tests/semantic/test_pops_collision_seed.py: subgroups of 64 and 32 lanes, with and without the seed, and the SGPR
  search; the GPU fixture runtime/test/shaders/ps_pops_wait_loop.asm (check.py, run_gpu_tests.py) and its llvm-mc
  listing.
- tests/semantic/spirv_wave_interp.py: the interlock instructions run as no-ops (a run has no other primitive).
- runtime/test/vk_harness.cpp: a fragment shader that needs pixel interlock on a device without it is unsupported
  (77), as for barycentrics.
- docs/design.md, docs/d3d12_vulkan.md: the POPS rows.

GPU: on an RTX 4070 SUPER the fixture gives 4096 of 4096 pixels as expected; with the seed taken out every pixel's
round count is 0x00010000.

Idea from Marvisak/VIctory 7ac1f54, written anew.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SR1Fv7eQNgZjM6miWPKjHf
2026-11-25 19:45:31 -05:00
3a2820b3bf Merge main c1e1ef0b8 into RT-POST-LOAD-GPU-MEMORY (#2098)
Two conflicts:

- d3d12_com.cpp, note_direct_heap_indexing: main's console_descriptor_table_va(cbv_srv_uav_base_) for the tracked
  table, with this branch's per-site once() flag instead of note_once on every draw.
- d3d12_vulkan_device.cpp, PipelineState::build_compute: this branch's body (build_compute_pipeline, journal, compile
  helper). main's dev_status::Build around the compute create moves into build_compute_pipeline, next to the
  pipeline_profile::DriverCall, so the status line still names the compute pipeline in the driver.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:36:19 -05:00
b145659304 Merge remote-tracking branch 'origin/main' into fix/explicit-lod-bias-moltenvk
# Conflicts:
#	tools/vk_subgroup_info.py
2026-11-25 23:54:57 +01:00
c5f1807515 rdna2spirv: translate v_cmpx in DPP form (SHADER-VOPCX-DPP)
Extend #957's DPP VOPC compare to v_cmpx: the same lane selection, with the
result written to EXEC. v_cmpx prints no destination, so src0 is its first
operand. Only the forms where every lane writes its bit are taken, as for
v_cmp. 78 pipeline-library pixel shaders of 1.0.2.1 were refused for it; all
78 now translate and pass spirv-val.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:36:00 +01:00
5baca71609 Merge port/bcpack: BCPack decoder in C++, bit-exact with VIctory's
Bit-exact with VIctory's Rust decoder on all 105,845 BCPack chunks of the
1.0.2.1 package (BC1, BC3, BC4, BC5, BC6H, BC7; 16.4 GB decoded), about as
fast on one core (59-61 MB/s against 57).

Merge resolution: gta6rt no longer compiles src/bcpack_decode_stub.cpp,
which as an object file would have silently replaced the decoder in
gta6rt_bcpack; only dstorage_xs_test links the stub now. bcpack_decode.h
keeps both sides' notes; build_runtime.ps1 lists the union of sources
without the stub.

Tested: gta6rt builds with the Vulkan device; bcpack, bcpack_tables (with
local tables) and dstorage_xs pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:32:37 -05:00
7bde974af5 runtime: port VIctory's BCPack decoder (gta6rt_bcpack, leonida_bcpack_decode)
BCPack is the console's DirectStorage codec for BC1-BC7 block streams.
src/bcpack.h and src/bcpack.cpp port victory-formats' bcpack.rs
(GPL-3.0-or-later, Marvisak and contributors) and the table loading
around bcpack::decode in victory-hle's dstorage.rs. src/bcpack_decode.h
declares leonida_bcpack_decode, the entry point the DirectStorage port
calls; the definition here replaces that branch's stub. Drop
bcpack_decode_stub.cpp when merging: a static library member is only
pulled in for unresolved symbols, so a stub left in gta6rt's sources
would win without a link error.

The format tables are not under the project's license and are never
committed: they are read on first use from LEONIDA_BCPACK_TABLES, else
bcpack-tables.bin next to the executable, and refused unless their
SHA-256 is the one VIctory's Initialize-FormatTables.ps1 pins; without
them every BCPack request fails. Decoding allocates nothing and shares
nothing mutable, so worker threads may decode at once.

Checked against VIctory's decoder (Rust, release build) on all 105,845
BCPack chunks of the user's texture pools (BC1 100,020, BC3 35, BC4 77,
BC5 325, BC6H 268, BC7 5,120; 12.1 GB packed, 16.4 GB decoded): every
output is byte-identical. One core, every 10th chunk, decode calls only:
59-61 MB/s out for the port against 57 MB/s for VIctory's build (BC1
64-66 against 62, BC7 29-30 against 27; Ryzen 5 7600X, MSVC 2022,
RelWithDebInfo).

bcpack_test (CTest bcpack) needs no game data or tables: SHA-256
vectors, table parsing and loading, VIctory's fixed BC4 stream, and
streams it encodes itself against tables of its own. bcpack_tables
repeats the checks on the real tables (SKIP, exit 77, without them) and
pins the hashes of the blocks VIctory's decoder makes of the streams it
builds; VIctory's reference_chunks test passes on those streams.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:30:15 -05:00
2daf532562 Merge port/audio: APU, DSP and audio coprocessor shims ported from VIctory
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	scripts/build_runtime.ps1
2026-11-25 17:27:11 -05:00
b739685995 Merge pull request #730 from aslan2142/build589-vs-layout-census-guard
OLD-8645: restore old upstream PR 8645 - vs_layout_census: refuse a --json that is an input or a directory before survey() (BUILD-589)
2026-11-25 23:27:04 +01:00
1a3f1ebee8 port_ctl.py: name the line ending of the run log it opens
tests/test_text_write_line_endings.py requires every text writer to name
its line ending.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:26:16 -05:00
908fb65d8a runtime: port VIctory's audio HLE (xapu, chad, acphal coprocessor, XMA)
Ported from VIctory (victory/crates/victory-hle/src/modules/apu.rs, dsp.rs,
audio.rs; victory-formats/src/xma.rs), GPL-3.0-or-later, Marvisak and
contributors (DexNom fork), keeping its measured ABI: XApu records
(CommandId 0x18, Activate 0x38, Process 0x40, ApuResult 0x50), command
kinds, options and HRESULTs; XDsp StreamDesc 0x1c, Status 16, Command
0x20; IAcpHal slot order, 28-byte messages, command ids 1-3, 5-8, 18;
SHAPE_CONTEXTS 0x60.

- shims/xapu.cpp (xapu.dll): queues and results are real. PLACEHOLDER
  decoding: no Opus decoder is in the repository (VIctory uses the
  opus-pure crate), so a process command parses its packet
  (src/opus_packet.h, RFC 6716 framing as libopus checks it) for its
  frame count, output length and errors, and writes silence. Malformed
  packets fail with BAD_PACKET; rate conversion stays E_NOTIMPL.
- shims/chad_dsp.cpp (chad.dll): completion (status words, tickets) is
  real; convolutions and transforms output silence, as in VIctory.
- shims/acphal.cpp: the coprocessor acknowledges commands with VIctory's
  messages (fmod waits for the first in System_Create; the old stub never
  answered), sets notification words, and decodes enabled XMA contexts on
  a thread into their rings. Context arrays get device addresses that map
  back. Fixes: SHAPE_CONTEXTS is 0x60 (APU addresses are 32-bit; 120
  bytes wrote 24 past the title's structure); AcpHalReleaseShapeContexts
  writes nothing through its argument (the title passes a handle); the
  non-cached heap's device addresses start on a 64 KiB boundary; state
  the decoding thread reads is immortal.
- src/xma_decode.*, src/xma_tables.h: real XMA2 decoding (VIctory's port
  of FFmpeg's WMA Pro decoder) with four fixes from VIctory's history
  that the DexNom snapshot lacks (ba42db643, d4d182204, 03a6f2290,
  4eb0898b3); src/xma_context.*: the context machine, with three more
  (7a5d85e6a, 1054fe87d, 985d8d4b0).

Host output is unchanged: the title's middleware opens WASAPI through
COM (com_shim.cpp forwards CoCreateInstance to the host), as in VIctory.

Tests (CPU only, no game data, in CTest): xma (decoder against a
direct-sum IMDCT, VIctory's frame walk, noise and ring tests), xapu,
chad_dsp, and acphal extended (messages, notification words, the
decoding thread filling a ring). gta6rt --dry-run on 1.0.2.1 binds all
ten xapu/chad imports (unimplemented 11 -> 1: DStorageGetFactory).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:25:05 -05:00
eaa3792fd8 Merge pull request #713 from aslan2142/audit-shader4-limit-zero
OLD-7087: restore old upstream PR 7087 - audit_shader4_regs: --limit must be at least 1; 0 audited nothing and printed a zero report
2026-11-25 23:23:29 +01:00
bffc6395b1 Merge main into RT-POST-LOAD-GPU-MEMORY (#2098)
main d3b8251bc brings #1889 (large compiles within a memory budget), #1987 (unbound T# reasons), #1759, #1860
and others under this branch. Conflicts:

- d3d12_vulkan_device.cpp, includes: both (pipeline_cache_journal.h and large_module_gate.h).
- d3d12_vulkan_device.cpp, fix_console_slot's T# branch: main's form (counts refused_reasons, #1987), with this
  branch's comment on why a slot that is no T# is nulled. The same reason count is added to console_tsharp_check,
  the GPU console-heap path's T# registration, so its log line has the reasons too.
- d3d12_vulkan_device.cpp, the heap log: both blocks (the release filter / GPU heap lines and main's "unbound T#s by
  reason" line).
- d3d12_vulkan_device.cpp, PipelineState::build_compute: this branch's body (build_compute_pipeline, journal, compile
  helper) behind main's entry: the `Work` argument and enter_build, so a large module takes its place at
  big_compile_gate() before variants_mutex_, as #1889 requires (a thread that waits for memory holds no PSO lock).
  build_compute_pipeline's own big_compile mutex now follows main's BigCompiles: taken only with
  LEONIDA_SERIAL_BIG_COMPILES=1 (it was on by default here), so the default is main's budget, not one at a time.
- d3d12_vulkan_device.cpp, queue_locked: this branch's Build-state jobs (claim, defer, finish). main's
  `requested_`/`publication` mechanism they replace is not kept. build_variant passes Work::speculative for a
  "warmup" build and Work::demand otherwise, as main's queue_build did.
- vulkan_replay.h, ComputePipeline: main's comment on `large`, and this branch's `await`.
- vulkan_backend.h: this branch's LEONIDA_SUBMIT_ASYNC block, with main's lock order in the state_mutex_ comment
  (state_mutex_ -> pipeline_mutex_ -> resource_mutex_ -> tracker_mutex_ -> submit_mutex_).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:21:25 -05:00
b4ae8916ef Merge pull request #653 from aslan2142/pe-inspect-linux-classes
OLD-7084: restore old upstream PR 7084 - pe_inspect: classify system DLLs on Linux through the Wine prefix, bundled names without case
2026-11-25 23:19:58 +01:00
0d97ae62ee runtime: Xbox DirectStorage (XCRDAPI.dll), ported from VIctory's dstorage.rs
gta6rt --run stopped at the first unimplemented import, XCRDAPI.dll!DStorageGetFactory.
shims/dstorage_xs.cpp now serves it, ported from VIctory's
crates/victory-hle/src/modules/dstorage.rs (GPL-3.0-or-later; Marvisak and contributors,
DexNom fork) with VIctory's measured ABI: the factory interface id, the factory, file,
status-array and queue method tables in their slot order, the 0x48-byte request and the
queue description (shims/dstorage_xs.h), and its status and error reporting.

- One pool of workers runs every queue's requests: started in queue order, queues shared
  by priority with weighted round robin (about 10x per level, in bytes), at most the
  staging buffer's worth of compressed source in flight. A status entry is written once
  every earlier request of its queue has finished, with the first failure since the last
  entry. A queue submits itself at half its capacity and blocks when full; Close drops
  what has not started and waits for what runs.
- Files open through the title's CreateFileW shim, so GAME: and G: paths read the
  overlay copy or the package. zlib is leonida::zlib_inflate. Destinations are addresses
  or xmem physical pages, whose page array is read when the request runs (waiting up to
  100 ms for numbers still zero); new rt::xmem::physical_span/write_physical write the
  pages through their section's own view, committed first.
- Raw file reads into title memory are read beside and copied in (VIctory's fix for
  ERROR_INVALID_USER_BUFFER): here a ReadFile into an untouched mapped physical page fails
  with ERROR_NOACCESS, while our copy faults into xmem's commit handler.
- BCPack goes through leonida_bcpack_decode (src/bcpack_decode.h); the stub linked for
  now returns false, so BCPack requests complete with HRESULT_FROM_WIN32(ERROR_INVALID_DATA),
  logged once per BC format.
- No thread_local with a destructor: it made gta6rt.exe's CRT register its thread-local
  destructor callback with the UCRT, which takes one per process, and the title's CRT
  startup then ended the process with 0xC0000409 after its static initializers.
- LEONIDA_DSTORAGE_TRACE (failed or all requests) and LEONIDA_DSTORAGE_RETRIES (physical
  page write retries) are documented in runtime/README.md.

dstorage_xs_test (CTest dstorage_xs, no game files): reads from a synthetic GAME: file
through a queue, zlib streams compressed by the test, memory sources, statuses completing
in order with the first failure (EOF, bad zlib, BCPack, unsupported option, oversized
read), self-submission, closed queues, the scheduler's priority and staging choices, and
physical-page destinations (one allocation, several, a late page array, an unknown page,
a raw read into untouched pages). 59 checks pass.

On the 1.0.2.1 package, --run now gets the factory, sets the 32 MiB staging buffer and
opens 12 RPF archives through DirectStorage; it then stops in the D3D12 device proxy's
slot 26 (GetCustomHeapProperties), which receives the hidden return pointer in RCX.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:04:24 -05:00
5c79445cc4 Merge upstream main into build-fallback-sandbox-user32 2026-11-25 21:56:34 +00:00
865e2d7912 Merge commit 'refs/fix2/main' into fix2-653 2026-11-25 16:51:53 -05:00
a9692a8c98 smoke, test_docs_cli_flags: guard stdout encoding and map dev.py smoke subcommand
Address review feedback from @Poussistar on #705:
1. Reconfigure sys.stdout with errors='replace' in scripts/smoke.py's
   __main__ block to satisfy repository-wide test_tool_stdout_encoding.py.
2. Register 'smoke': 'scripts/smoke.py' in tests/test_docs_cli_flags.py
   DEV_PRODUCERS map so fenced docs commands invoking 'dev.py smoke --quick'
   do not report --quick as an unknown flag of dev.py.

AI-assisted (Claude Code)
2026-11-26 00:38:47 +03:00
c87512e482 smoke: redirect compileall diagnostics from stdout to keep --json clean on failure 2026-11-26 00:38:46 +03:00
bd6afab9e8 tools: provide one-command synthetic source-only smoke suite (DX-07) 2026-11-26 00:38:46 +03:00
0bae6f545a Merge main into wave64-partial-wave-zero
scripts/run_gpu_tests.py: main added cs_w32_wrxchg2_ext and
cs_w32_wrxchg2st64 to the same name list; keep main's list and add
cs_w64x_partial_swizzle to it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:37:28 -05:00
d96b3a8644 Merge pull request #857 from ohshitwaddup/tests/gpu-wrxchg2-b32
tests: GPU fixtures for the ds_wrxchg2_rtn_b32 pair cases and ds_wrxchg2st64_rtn_b32 (TEST-WRXCHG2-B32-EXT)
2026-11-25 22:28:36 +01:00
0283d40cb4 runtime: build on MSVC without the Vulkan device; fix SHAPE context sizes
d3d12_xs_device.cpp called rt::d3d12::create_console_descriptor_heap
(slot 14, 3630610ca) without including d3d12_com.h, which exists only with
the Vulkan device (LEONIDA_VULKAN_DEVICE), so gta6rt did not compile
without Vulkan headers. The console path is now built with the Vulkan
device only, and when the helper refuses a host D3D12 device the PC call
makes the heap from the 16-byte desc, as before 3630610ca.

acphal.cpp: SHAPE_XMA_CONTEXT's bit fields fill five dwords and
SHAPE_PCM_CONTEXT's six, so with 10 and 1 reserved dwords the structs
were 60 and 28 bytes and the GDK-size asserts (64, 32) failed on MSVC.
Only the size is used (the stride of the title's context arrays), so the
reserved tails are 11 and 2 dwords.

Tested: gta6rt builds (VS 2022, RelWithDebInfo); gta6rt --dry-run and
--init on the Xbox Series 1.0.2.1 package map and initialise all five
modules; --run stops at the first unimplemented import,
xcrdapi.dll!DStorageGetFactory.

docs/port_status.md: Leonida is the base, VIctory the patch source.
port_ctl.py: shot --small writes a reduced copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:27:46 -05:00
fb5796b8ed Merge pull request #609 from TuroYT/fix/gpu-runner-tbuffer-verdict
run_gpu_tests: record the cs_tbuffer_store verdict (GPU-RUNNER-TBUFFER-VERDICT)
2026-11-25 22:27:40 +01:00
72006d61d5 Merge pull request #817 from fitzypopper/corpus-watch-tool
CORPUS-WATCH: add counts-only corpus regression watch tool and tests
2026-11-25 22:06:45 +01:00
1c5aa29a36 Merge branch 'integration/translator-fixes' into local/boot-combined
# Conflicts:
#	runtime/src/main.cpp
2026-11-25 16:06:19 -05:00
e762895f06 Rename the runtime's user-facing name from DexNom Runtime to Leonida
Window title and frame-rate caption, the diagnostics overlay, launcher
messages, the setup script (Setup-Leonida.ps1), its Start menu shortcuts
and install folder (%LOCALAPPDATA%\Leonida). Credits to DexNom and VIctory
are kept. Crate, binary and VICTORY_* switch names are unchanged so
upstream VIctory updates still merge.

port_ctl.py strips the log's colour codes before reading it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 15:51:50 -05:00
5aec2353db Add VIctory sync and run-control tools; let the pad file press buttons
scripts/sync_victory.py fetches DexNom/VIctory and merges new commits into
victory/ with git subtree pull. scripts/port_ctl.py starts a run with its
logs, captures and saves outside the repository, presses stand-in pad keys
through VICTORY_MOVEMENT_FILE, saves frames through VICTORY_CAPTURE_REQUEST
and reads the frame-rate lines.

The movement file now takes every key of the stand-in pad's table (Enter,
Back, Esc, Tab, the D-pad, shoulders, triggers, stick clicks), so menus can
be driven by a script. Tested with cargo test -p victory-hle --features
diagnostics movement (4 passed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 15:48:32 -05:00
9f98dcc617 Improve post-load GPU memory and pipeline handling (RT-POST-LOAD-GPU-MEMORY)
Fall back to a dedicated buffer allocation when the shared arena fills.
Update console descriptors and resource backing, preserve pipeline cache
entries, and replay mesh records using bounded indirect arguments. Keep
scripted input available until read and cover the runtime and translator
paths with synthetic tests.

Co-authored-by: Plaaasma <47513553+Plaaasma@users.noreply.github.com>
Co-authored-by: ivanepsilondelta <264061546+ivanepsilondelta@users.noreply.github.com>
2026-11-25 14:30:51 -06:00
b8b192ea22 Bound serial semantic runner polls by the timeout 2026-11-25 13:38:15 -06:00
721a3b85ae Merge main into wave64-partial-wave-zero
Conflict in scripts/run_gpu_tests.py: the dump-test name list gained
cs_w64x_cmp_sdst on main and cs_w64x_partial_swizzle here; both are kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 14:37:20 -05:00
4895588a93 check_no_game_data: refuse invalid explicitly named inputs
Keep default git-list skips, but require regular files for explicit path arguments. Report missing paths, stat errors and non-regular entries with exit 2, without following symlinks or opening FIFOs. Continue scanning siblings and preserve match exit-1 precedence.

Synthetic regressions: 15 scanner tests and 3 workflow tests pass; full semantic suite 6165 tests with no failed files. Claimed as CHECK-NO-GAME-DATA-EXPLICIT-PATHS in issue #14. AI-assisted.
2026-11-25 20:35:27 +01:00
b70bde278b run_wine_tests: reject overflowing process timeouts 2026-11-25 20:33:39 +01:00
59a51c2c79 run_wine_tests: retain results for repeated test names 2026-11-25 20:33:37 +01:00
c503337301 Cancel Windows semantic test trees before their roots exit 2026-11-25 13:31:28 -06:00
4cfbdfc0b2 Merge remote-tracking branch 'origin/main' into rt-xapu-opus-on-1144 2026-11-25 14:12:01 -05:00
98b22aee0b ps_ssharp_ld, ps_ssharp_b: the S# mip fields on image_sample_l, _d and _b, judged by SAMPLER_CASES (SHADER-EXPLICIT-LOD-BIAS-MVK)
GPU coverage for the --explicit-lod-bias paths ps_ssharp doesn't run: the Lod
of image_sample_l, the 2^bias Grad scale of image_sample_d and the bias of
image_sample_b. check.py's SAMPLER_FIXTURES runs all three with the same cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 19:58:22 +01:00
a03715c46a vk_subgroup_info --lod-bias: measure mipLodBias with one compute dispatch, no test programs needed (SHADER-EXPLICIT-LOD-BIAS-MVK)
tools/vk_lod_bias.py clears a two-level R32_SFLOAT image to 0.0 / 1.0 and
samples it at explicit LOD 0 through samplers with mipLodBias 0 and +1, from
Python through ctypes. vk_subgroup_info.py --lod-bias reports the answer as
explicit_lod_bias; lod_bias_probe.py uses it first and draws ps_ssharp only as
a fallback, with the Homebrew llvm-mc hint when llvm-mc is missing (#1774
review). build.py and make_game.py can now measure too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 19:38:34 +01:00
85e522c3b0 Reject GPU disassembly replays with no runnable tests 2026-11-25 12:29:41 -06:00
30a2a1862c run_semantic_tests: terminate process tree on Windows via taskkill and increase sleep margin (SEMANTIC-RUNNER-INTERRUPT)
- On Windows, terminate child processes using taskkill /F /T /PID to ensure
  launcher processes (e.g. venv python.exe wrappers) terminate all child workers.
- Increase synthetic sleep duration in tests from 5s to 10s and timeout margin to
  eliminate timing flakiness under high machine load.

AI-assisted (Claude Code).
2026-11-25 19:55:46 +03:00
7bb023788b Keep Wine runner resources scoped to one prefix owner 2026-11-25 10:51:22 -06:00
ab3eb20e6d Reserve synthetic guest scene output before writing reports 2026-11-25 10:46:20 -06:00
4d05364902 Honor CTest fixture cleanup ordering in the Wine runner 2026-11-25 10:24:21 -06:00
b1475198b1 Discover versioned Python in the POSIX launchers 2026-11-25 18:19:12 +02:00
542c046c50 run_semantic_tests: stop active subprocesses and cancel queued modules on interrupt (SEMANTIC-RUNNER-INTERRUPT)
Catch KeyboardInterrupt in run_semantic_tests.py, cancelling queued test modules via pool.shutdown(wait=False, cancel_futures=True) and terminating active child subprocesses so that no orphaned zombie processes or queued modules run after Ctrl+C. In serial mode (-j 1), terminate the discover subprocess on interrupt.

Return exit code 130 and output 'interrupted' to stderr without printing a false success summary.

Adds regression and lifecycle tests in tests/test_run_semantic_tests.py.

AI-assisted (Claude Code)
2026-11-25 19:11:41 +03:00
7dcca92ce2 fix(check-no-game-data): inspect legacy V7 tar archives
Recognize checksum-valid legacy tar headers without a ustar marker, while retaining the existing handling of damaged modern tar archives. Add synthetic CLI regressions for raw, compressed and nested archives, clean text, and non-archive controls.

AI-assisted: OpenAI Codex
2026-11-25 20:05:51 +05:00
66b27ac6e2 lod_bias_probe: measure whether the sampler applies mipLodBias instead of keying --explicit-lod-bias on MoltenVK's driver ID (SHADER-EXPLICIT-LOD-BIAS-MVK)
The same MoltenVK 1.4.2 drops the bias on an Apple M3 and applies it on an
Apple M5 Pro (#1774 review), so the driver-ID rule turned ps_ssharp red on
the M5 Pro. tools/lod_bias_probe.py translates vs_ids and ps_ssharp without
the flag and draws LOD_BIAS 0, +1 and -1 with vk_sampler_test; the flag is
on only when +1 and -1 read the no-bias levels. run_gpu_tests.py, build.py
and make_game.py take its answer; vk_subgroup_info.py is back as on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 15:18:12 +01:00