Commit Graph

1249 Commits

Author SHA1 Message Date
20a4e5d891 Merge pull request #888 from narekshaghoyandev/ubiq-audit-shader4-regs-psv0-stagemap-and-atomic-json
OLD-7883: audit_shader4_regs: harden stage map loading, bound PSV0 reads, and write JSON atomically
2026-11-28 14:07:10 +01:00
e9bf75408a Merge pull request #2531 from cweohme/stdout-guard-remaining
tools/scripts: set errors=replace on stdout in the eight remaining programs (TOOL-STDOUT-GUARD-REMAINING)
2026-11-28 14:03:09 +01:00
3a7dc6126b Merge remote-tracking branch 'origin/main' into fix/explicit-lod-bias-moltenvk
# Conflicts:
#	.github/workflows/runtime.yml
2026-11-28 13:34:11 +01:00
c9f097eb50 Merge pull request #2419 from ProjectLeonida/fix/cvt-f16-denorm-and-clamp
rdna2spirv: preserve f16 denormals, NaN payloads, and bit-exact clamp in conversions (SHADER-CVT-F16-DENORM-AND-MODS)
2026-11-28 12:54:01 +01:00
87f12b9dcc Merge pull request #1587 from exoticLgk/fix-exp-f32-denorm
rdna2spirv: flush v_exp_f32 denormal results (SHADER-EXP-F32-DENORM)
2026-11-28 12:52:59 +01:00
11df2b0069 Merge pull request #1112 from klikso/carry/shader-f64-omods
rdna2spirv: the binary64 VALU ops take clamp and nothing else from their omod (SHADER-F64-OMODS-CARRY)
2026-11-28 12:52:22 +01:00
79babba6fa Merge pull request #1767 from kirigayakazima/fix/vs-input-survey-safe-paths-and-atomic-json
vs_input_survey: validate index.json filenames, accept UTF-8 BOM, guard inputs, and publish --json atomically (VS-INPUT-SURVEY-SAFE-PATHS-AND-ATOMIC-JSON)
2026-11-28 12:44:35 +01:00
f77b4d80d0 Merge remote-tracking branch 'origin/main' into fix/rdna2spirv-f16-interp-computed-ij 2026-11-28 03:05:44 -08:00
b1d5d1a30b Merge pull request #1610 from IlyassRS3/fix/check-apt-key-parsing-and-guards
check_apt_key: reject extra pub without fpr, secret keys, option injection, and unnormalized expected (CHECK-APT-KEY-PARSING-AND-GUARDS)
2026-11-28 11:37:19 +01:00
6470e5cab2 Merge pull request #1607 from IlyassRS3/fix/shader-stats-validation-and-cli
shader_stats: reject traversal shader names, support UTF-8 BOM, and harden CLI/number guards (SHADER-STATS-VALIDATION-AND-CLI)
2026-11-28 11:36:20 +01:00
3e9c4778f7 Merge pull request #1484 from kawaii-shakal/build-fallback-sandbox-user32
build_runtime: link user32 into vk_sandbox in the cl.exe fallback (BUILD-FALLBACK-SANDBOX-USER32)
2026-11-28 11:20:39 +01:00
89ee135fec Merge pull request #999 from TheGeogeo/fix/wine-duplicate-test-names
run_wine_tests: retain all results for duplicate names (WINE-DUPLICATE-TEST-NAMES)
2026-11-28 09:05:28 +01:00
c74ac8a4bb Merge pull request #2197 from EdenBendheim/ubiq/merge-check-blob-comparison
merge_check: distinguish legacy-encoded lines before reporting duplicates
2026-11-28 09:04:44 +01:00
ca0827cdc2 Merge pull request #2026 from alexandersato0830/codex/gpu-runner-replay-no-cases
Reject GPU disassembly replays with no runnable tests (GPU-RUNNER-REPLAY-NO-CASES)
2026-11-28 09:04:32 +01:00
20264ffa0a Merge pull request #1978 from vinceychu/fix/run-gpu-tests-versioned-llvm-mc
run_gpu_tests: find a versioned llvm-mc when --llvm-mc and LLVM_MC are unset (TEST-RUN-GPU-TESTS-VERSIONED-LLVM-MC)
2026-11-28 09:04:22 +01:00
f7ea55c194 Merge pull request #1899 from XeNS1/codex/check-no-game-data-v7-tar-20261125
check_no_game_data: inspect legacy V7 tar archives
2026-11-28 09:04:00 +01:00
73a5f3b102 Merge pull request #1770 from potatoe0100/carry/old-9776
OLD-9776: scripts: measure the translator (us per instruction) and compare two tools/ trees
2026-11-28 09:03:48 +01:00
8509d368b1 Merge pull request #1333 from delysidemanYT1/gpu-runner-probe-json
GPU-RUNNER-PROBE-JSON: Treat valid JSON that is not an object as an u…
2026-11-28 09:03:12 +01:00
7734dc8e45 Merge pull request #1310 from delysidemanYT1/gpu-runner-output-decode
GPU-RUNNER-OUTPUT-DECODE: keep diagnostics with undecodable bytes
2026-11-28 09:03:01 +01:00
17eb749473 Merge pull request #705 from abnalstlll-byte/feat/dx07-smoke-suite
tools: provide one-command synthetic source-only smoke suite (DX-07)
2026-11-28 09:02:05 +01:00
77d7d4ebb8 Merge pull request #1051 from shwepz/semantic-runner-exit-code
run_semantic_tests: name a failed module's exit code, and a crash that printed nothing (SEMANTIC-RUNNER-EXIT-CODE)
2026-11-28 09:01:53 +01:00
4314c1f33d Merge pull request #2071 from alexandersato0830/codex/semantic-runner-windows-child-cancel
Cancel Windows semantic test subprocess trees (SEMANTIC-RUNNER-WINDOWS-CHILD-CANCEL)
2026-11-28 09:01:36 +01:00
7e4093c9e8 Merge pull request #1437 from titoreinaldo/fix/semantic-runner-completion
Fail semantic runs that exit without a trustworthy result (SEMANTIC-RUNNER-COMPLETION)
2026-11-28 09:01:24 +01:00
553e794367 Merge pull request #1207 from robot00f/docs/history-manifest
history: a portable, hashed manifest of the old-pr tips and the old issue index (#563)
2026-11-28 08:46:56 +01:00
8bde3ce193 run_semantic_tests: call only known crash statuses a crash (review on #1051)
describe_exit labeled every code >= 0xC0000000 "the process crashed", but a
process can exit with any 32-bit value on purpose, so the range alone doesn't
show a crash. Only the NTSTATUS values in NTSTATUS_CRASHES (access violation,
illegal instruction, out of memory, stack overflow, heap corruption, fail
fast) get the crash label now. Ctrl+C (0xC000013A) is still named but not
called a crash, and any other value is just "exit code 0x...".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 14:17:11 +07:00
fd213dfe10 run_semantic_tests: name a failed module's exit code, and a crash that printed nothing (SEMANTIC-RUNNER-EXIT-CODE)
A failed module was printed as "==== FAILED: <name>" and its output, never its
exit code. A module whose interpreter crashes prints nothing, so it left a bare
header with nothing under it, and the run gave no clue why it failed.

The header now carries the exit code: "exit code 1" for a test failure, the
signal for a POSIX kill ("killed by SIGSEGV (-11)"), and the hexadecimal
NTSTATUS with its meaning for a Windows crash ("exit code 0xC0000005, access
violation (the process crashed)"). A module that printed nothing also gets a
"(no output: the process ended before printing anything)" line.

Only the FAILED print in main() changes; run_module is untouched.

Tests (tests/test_run_semantic_tests.py): the header of a plain failure, a
module that really crashes (SIGSEGV on POSIX, exit code 0xC0000005 on
Windows) and describe_exit itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 14:17:10 +07:00
25fd8e4776 Merge remote-tracking branch 'origin/main' into fix/rdna2spirv-f16-interp-computed-ij 2026-11-27 23:02:20 -08:00
27524a5e5b Merge remote-tracking branch 'origin/main' into fix/explicit-lod-bias-moltenvk 2026-11-28 02:57:41 +01:00
635bab171f tools/scripts: the eight remaining __main__ blocks set errors=replace on stdout
test_tool_stdout_encoding fails on main: leonida_launcher, ps_prompt_glyphs,
victory_saves, volume_stats, world_hotspots, fetch_vkd3d_proton, port_ctl and
sync_victory still print paths a Windows ANSI code page cannot encode, and die
with UnicodeEncodeError when stdout is redirected under python -I. Add the
same one-line guard the other programs already have (exe_sha.py, #605).

Tested: test_tool_stdout_encoding (4 tests), test_tool_startup,
test_victory_saves, compileall, run_semantic_tests (6397 tests, 0 failed).
AI-assisted: yes (Qwen Code).
2026-11-28 03:49:04 +03:00
13127c76db Fail semantic runs without a completed unittest verdict
Retain process tracking and interrupt/timeout handling from main.
2026-11-27 23:41:32 +00:00
d442851972 Merge remote-tracking branch 'mandy/main' into merge/mandy-main 2026-11-27 17:58:49 -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
3e4d890c56 Merge pull request #2435 from quartz-heron-58/mesh-serial-waves
rdna2spirv: --mesh-serial-waves, an emulated mesh program's waves one after the other (SHADER-W64-MESH-SERIAL-WAVES)
2026-11-27 23:50:27 +01:00
39f52f39c4 Merge pull request #2481 from enlight3d/boot-precompiled-journal
windows-boot: read the precompiled journal beside gta6rt.exe as the boot's seed (BOOT-PRECOMPILED-JOURNAL)
2026-11-27 17:47:31 -03:00
ac114f163a Merge pull request #2453 from Tyrannys/test-gpu-oob-harness-msg
GPU tests: give cs_pk_mul_lo_const its 128 words, keep the exit message of a dump row (TEST-GPU-OOB-AND-HARNESS-MSG)
2026-11-27 17:47:23 -03:00
5acf0fa3fc scripts: the short form v_add_co_ci_u32 vD, src0, src1 reads src0 (SCRIPTS-SHORT-CO-CI-OPERANDS)
audit_shader4_regs.rbw_registers and vs_input_survey.read_before_write took every VOP `_co_` op with a scalar
second operand as vdst + carry-out. The assembler's short form v_add_co_ci_u32 vD, src0, src1 (also sub and subrev)
has VCC as its carry-out and carry-in and names neither, so its second operand is src0, a read: an SGPR there was
counted as written and dropped from the read-before-write sets. For audit_shader4_regs that hid exactly the s3 read
the audit looks for. The same fix #2357 makes in lane_masks, wave64_halves and writes_exec (wavehs's follow-up there).

Tests: test_short_form_carry_in_reads_s3_in_the_audit and test_short_form_carry_in_reads_its_scalar_src0 fail on
main (s3 missing from the read-before-write sets) and pass here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JPqXc6svM4pbBagTsVEYA3
2026-11-27 18:30:50 +00:00
43a9d562d3 Merge pull request #2193 from EdenBendheim/ubiq/ci-check-parallel-stdlib
Verified the Windows check with Python 3.12: 509 standalone files passed with two workers. The seven changed or runner-related files passed on updated main. The .NET 8 build and diagnostics and the native BCPack checks passed with the prerequisite fixes, including #1771. CPU-only, AI-assisted testing.
2026-11-27 14:56:46 -03:00
2893fae21c windows-boot: compare the boot's journal and the seed by Windows' final paths (BOOT-PRECOMPILED-JOURNAL)
The seed was kept when LEONIDA_PIPELINE_CACHE_DIR named the precompiled folder under another spelling (a
junction, or the \\.\ device prefix), although the runtime's std::filesystem checks see one folder and turn
the journal off. Ask Windows for each folder's final path (GetFinalPathNameByHandle, from the deepest
existing parent), which sees through junctions, symbolic links, substituted and mapped drives, 8.3 names and
the \\?\ and \\.\ prefixes; the spelled paths remain the fallback when the helper is not available.
Reported by TheGeogeo's agent (repro on #2481); the approach was suggested by OreoFR's agent. The test file
gains the \\.\ and junction cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 18:50:56 +01:00
0fa2b4fc4f Merge branch 'feat/presentation' into port/d3d12-nvidia 2026-11-27 12:16:18 -05:00
701cc74966 Launcher and F1 menu: -Dlss, -FrameGen, -Aspect, -PresentScale, -DryRun
scripts\play-d3d12.ps1 and d3d12\scripts\play-nvidia.ps1:
  -Dlss quality|balanced|performance|ultra   DLSS makes the output from 2/3,
                0.6, 1/2 or 1/3 of its lines (Series X: 1440, 1296, 1080, 720)
  -FrameGen 2..6   DLSS frame generation
  -Aspect 21:9|32:9|W:H|auto, -PresentScale fit|stretch   the window's shape
  -DryRun       the settings a start would run with, and nothing started
With none of them a start sets what it set before (Series X: 1440 lines and
the title's own upscaler).

On Series X the launcher puts the pieces together after the F1 menu's saved
choices are read: DLSS or the stretch there means LEONIDA_FSR_UPSCALER=1 and no
LEONIDA_OWN_UPSCALER, with render scale 2/3 unless one is set; frame generation
there turns DLSS on (or is left off without DLSS's files), since its depth and
motion vectors come from that upscale. A menu choice of DLSS without the files
falls back to the title's own upscaler on Series X.

F1 menu: RENDER SCALE names the DLSS modes, UPSCALER's last value is the
game's own on either console, and WINDOW SHAPE and PICTURE IN ANOTHER SHAPE
(live) are new.

The script's own $dlss is now $dlssOn: PowerShell does not tell it from the
-Dlss parameter. Checked with -DryRun over the parameter and menu
combinations; not run in the game.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 12:12:38 -05:00
f0e451db06 Launcher: Smooth Motion back to opt-in (the one default start ended in the title's breakpoint)
leonida_sm.exe started by default ended 2.4 s in with 0x80000003 from the title's main loop; the
next start, of leonida.exe, ran. One start each: not looked into yet, so it is not the default.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 12:10:49 -05:00
d62bf5a0a9 Launcher: Smooth Motion by default (-NoSmoothMotion: only rendered frames)
The user's call (2026-11-27): generated frames to play with while the rendered rate is under 30.
The driver's profile for leonida_sm.exe was on already; the launcher now starts that copy unless
-NoSmoothMotion is given (measurements are made with it). The rendered rate is what the window
title and the log give.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 11:40:28 -05:00
ba19ca8ada windows-boot: read the precompiled journal beside gta6rt.exe as the boot's seed (BOOT-PRECOMPILED-JOURNAL)
boot.ps1 points the runtime at <OutDir>\pipeline-cache, so a boot never read the journal that
gta6rt --precompile-pipelines writes beside gta6rt.exe and compiled those pipelines again. When
pipeline_cache.d exists there, neither the shell nor -SetEnv/KEY= set LEONIDA_PIPELINE_JOURNAL_SEED_DIR,
and the boot's own journal is a different folder (the runtime turns the journal off for a seed that
overlaps its writable journal), pass it as the read-only seed and list it in the [boot] env lines.

tests/test_windows_boot_journal_seed.py runs boot.ps1 -DryRun against a temporary runtime folder
(Windows only; nothing is launched, no game files).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 17:36:00 +01:00
b54cd98cf7 history: a portable, hashed manifest of the old-pr tips and the old issue index (#563) 2026-11-27 11:58:33 -03:00
c5a52e67f5 check_compute_journal_overlay: catch executable launch OSError in main 2026-11-27 20:06:59 +08:00
199c8c17e0 corpus_watch: reject results and log aliases of corpus index files 2026-11-27 20:06:28 +08:00
f43076b07f first_look: clear stale exe json report before pe_inspect runs 2026-11-27 20:02:34 +08:00
bf41c1699f merge_check: reject non-positive --min-length 0 matching claim 2026-11-27 20:00:57 +08:00
e2377070d3 GPU tests: give cs_pk_mul_lo_const its 128 words, keep the exit message of a dump row
cs_pk_mul_lo_const runs 32 lanes that each store 16 bytes, 128 words, but
run_gpu_tests.py and check.py ran it without VKC_OUT_WORDS, so
vk_compute_test gave it the default 64 and lanes 16-31 wrote past the
buffer through its device address (GPU-AV:
VUID-RuntimeSpirv-PhysicalStorageBuffer64-11819). Both runners now pass
VKC_OUT_WORDS=128 (check.PK_MUL_LO_ENV), and the fixture's Run line
says so.

run_gpu_tests.py's dump rows (the bounds group, cs_heap_init,
cs_user_sgprs) showed the printed words whenever there were any. A run
that printed the right words and then exited non-zero (validation
errors) was a FAIL that showed only the expected words. dump_result now
reports "exit N: <output>" for a non-zero exit.

Found by kevincommits in the coordination issue (#1608).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 04:36:05 -06:00
dbdef2efd7 mesh-serial-waves: a GPU fixture whose two waves run loops of different length
ms_w64x_wave_loops: each wave loops while a wave-wide count is not 0, 5 iterations in wave 0 and 9 in
wave 1, so under --wave64-emulate the waves reach different numbers of workgroup barriers. Written after
stalls were reported with the serial form on an RTX 2070 SUPER (issue 1608). On an RTX 4080 (NVIDIA
621.24) it draws 4096/4096 pixels exact side by side and in series; that does not explain the stalls.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 17:29:50 +08:00