Commit Graph

9534 Commits

Author SHA1 Message Date
c8eea9466f d3d12: the last choice wins between the command line and the F1 menu (D3D12-MENU-LAST-CHOICE-WINS)
play-nvidia.ps1 applied leonida-settings.txt (what F1 saved) over the command line at every start. An empty value
there removed what the command line set, so a later -Resolution, -Dlss or -SeriesS was lost without a word.

Now leonida-launch.txt (git-ignored) keeps what the last start's command line made:
- A setting this command line makes otherwise than that start's did wins. The menu file drops its value, so F1
  shows and saves the new one.
- A setting it makes as before keeps the menu's value, the newer choice.
- Each start says which values came from the menu and which the command line replaced.
- A dry run writes neither file.

The F1 menu gets the native render scale (1, which -Resolution makes at the output's height) and the dynamic
resolution's lowest scale (LEONIDA_RENDER_SCALE_MIN, from -Lowest).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:16:56 -03:00
b3910e5e3d Merge pull request #2814 from TheGeogeo/test-red-green-compiler-crash
scripts: red_green.py tells a crashed compiler from a build error (TEST-RED-GREEN-COMPILER-CRASH)
2026-12-01 15:06:18 +01:00
3e7b34a52a Merge pull request #2799 from aznohonza/docs/quad-any-partial
rdna2spirv: quad_any's docstring says partial quads are exact (DOC-QUAD-ANY-PARTIAL)
2026-12-01 14:51:25 +01:00
f2357faa5f rpf9dump: harden Util.Safe for cross-platform and Windows filenames 2026-12-01 21:08:22 +08:00
ed867d7b2f Merge pull request #779 from trigger337/fix/awc-manifest-stage-cleanup
awc_manifest: publish mode on Windows (AWC-MANIFEST-STAGE-CLEANUP)
2026-12-01 13:53:58 +01:00
5a569c5e5e Merge pull request #795 from trigger337/fix/ttpf-assets-stage-cleanup
ttpf_assets: restore write mode before unlink on replace failure and publish mode on Windows (TTPF-ASSETS-STAGE-CLEANUP)
2026-12-01 13:51:38 +01:00
1723dec945 Merge pull request #542 from kotekompotek/work/test-cfg-structure-extra
tests: add edge-case tests for cfg_structure single-block, irreducible, and nested loops
2026-12-01 13:49:25 +01:00
fca9005779 Merge pull request #538 from kotekompotek/work/test-fssm-header-extra
tests: add edge-case tests for fssm_header wave_size and binding_table
2026-12-01 13:49:13 +01:00
5111dd3909 Merge pull request #372 from kotekompotek/work/test-shaders-build
test: unit tests for runtime/test/shaders/build.py
2026-12-01 13:49:00 +01:00
c3c206bb17 Merge pull request #371 from kotekompotek/work/test-shaders-check
test: unit tests for runtime/test/shaders/check.py
2026-12-01 13:48:47 +01:00
ccc7ef4f07 Merge pull request #370 from kotekompotek/work/test-sandbox
test: unit tests for tools/sandbox.py
2026-12-01 13:48:28 +01:00
018e98ab5b Merge pull request #352 from kotekompotek/work/test-run-guest-scene
test: unit tests for scripts/run_guest_scene.py
2026-12-01 13:48:13 +01:00
2bc4f94e1c Merge pull request #341 from kotekompotek/work/test-conformance-compare
test: unit tests for tools/conformance/compare.py
2026-12-01 13:47:58 +01:00
2d4f316b04 Merge pull request #351 from kotekompotek/work/test-hw-oracle-asm
test: unit tests for tools/hw_oracle/asm.py
2026-12-01 13:39:35 +01:00
8a72e40d87 Merge remote-tracking branch 'origin/main' into tools/cgroup-memory-peak 2026-12-01 13:22:50 +01:00
8ceb5ef4b3 chain_check: read the slow compute pipeline line as the runtime prints it now
The line says where the pipeline came from since 7acf84d38, so the pin in
tests/test_chain_check.py failed on main. Only a compile counts as a build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 13:09:06 +01:00
c60ce461af Merge pull request #2334 from kirigayakazima/fix/merge-check-safety
merge_check: guard ref option injection, bounds, and git timeouts
2026-12-01 12:57:50 +01:00
8275269bdc Merge pull request #656 from kirigayakazima/fix/rpf9dump-segments-and-cli
rpf9dump: harden segment bounds and CLI option validation (RPF9DUMP-SEGMENTS-AND-CLI)
2026-12-01 12:57:36 +01:00
abf475ef65 Merge remote-tracking branch 'origin/main' into tools/cgroup-memory-peak
# Conflicts:
#	tests/test_run_game_wine.py
2026-12-01 12:55:58 +01:00
8497337b4e Merge pull request #2145 from fiestorra/awc-skip-existing
tools: skip Ogg Opus outputs that already exist, so a stopped audio export resumes
2026-12-01 12:53:42 +01:00
3fbc120df4 Merge pull request #1397 from whoalin1/mask-regs-data-read
rdna2spirv: a VALU data read of a lane-mask operand yields the wave's mask word
2026-12-01 12:53:35 +01:00
1b83716379 Merge pull request #2455 from MoonEyes/feat/picture-metrics
tools: picture_metrics.py and the PICTURE block, numbers only from a frame on your disk (TOOLS-PICTURE-REPORT)
2026-12-01 12:48:22 +01:00
427aa19b69 Merge pull request #2231 from MoonEyes/tools/chain-check
tools: chain_check.py, one page of counts for the whole shader chain (TOOL-CHAIN-CHECK)
2026-12-01 12:46:48 +01:00
a726736ec2 Merge pull request #1774 from Tauwni/fix/explicit-lod-bias-moltenvk
rdna2spirv: --explicit-lod-bias applies the S# LOD bias where MoltenVK drops the sampler's; ps_ssharp passes on Macs (SHADER-EXPLICIT-LOD-BIAS-MVK)
2026-12-01 12:45:24 +01:00
13573d9252 Merge pull request #1519 from whoalin1/vk-fuzz-run-pctail
vk_fuzz_run: --pc-tail-ubo under LEONIDA_PC_TAIL_UBO, VK_FUZZ_SKIP_CRASH for driver crashes
2026-12-01 12:44:12 +01:00
21e6bbf4b9 Merge pull request #2671 from fiestorra/fix/amd-swizzle-numpy-late
amd_swizzle: validate arguments before needing numpy, and gate the tests the way the tool runs
2026-12-01 12:30:45 +01:00
4913ef152e Merge pull request #2436 from kawaii-shakal/wine-run-shader-cache
run_game_wine.sh: keep the drivers' shader cache from run to run (WINE-RUN-SHADER-CACHE)
2026-12-01 12:30:40 +01:00
d9df071e91 Merge pull request #1585 from whoalin1/nc-i16-clamp-nv
rdna2spirv: emit OpBitFieldUExtract for the VOP3 16-bit result mask (NVIDIA And-&-0xFFFF miscompile)
2026-12-01 12:30:35 +01:00
acaa1d69b4 Merge pull request #2672 from fiestorra/fix/tile-probe-numpy-gate
tests: four numpy gates decided in the wrong process, so their cases judged the exit code instead
2026-12-01 12:29:51 +01:00
8e8e5b3ed2 Merge pull request #2667 from fiestorra/fix/feature-scan-posix-only
tests: the two write-failure cases in test_feature_scan need preexec_fn, which Windows does not have
2026-12-01 12:29:37 +01:00
678d1fbc45 Merge pull request #2653 from fiestorra/fix/bench-baseline-threshold
tests: the local-baseline case does not measure CPU contention (macos-python's only red)
2026-12-01 12:29:21 +01:00
4baba68f2d Merge pull request #1733 from MoonEyes/tests/lds-src2-mc-stdin
test_lds_src2: feed llvm-mc through stdin, so a WSL LLVM_MC can read it (TEST-LDS-SRC2-MC-STDIN)
2026-12-01 12:29:07 +01:00
b13b6b3d3f Merge remote-tracking branch 'upstream/main' into HEAD 2026-12-01 19:17:10 +08:00
f613e6d8ea Merge remote-tracking branch 'upstream/main' into HEAD
# Conflicts:
#	scripts/merge_check.py
2026-12-01 19:13:49 +08:00
19d62a98d4 Linux: enable scoped copy and descriptor tracking defaults (#2700)
* Linux: enable scoped copy and descriptor defaults

* Test Linux launcher optimization defaults and opt-outs
2026-12-01 11:52:20 +01:00
c6c8f5f5a3 scripts: build llvm-mc 23.1.5 by default, so the pipeline library translates (#1923)
* scripts, tools: build llvm-mc 23.1.5 by default, so the pipeline library translates

LLVM 21.1.8's gfx1013 decoder cannot decode 840 of the 2,684 compute
programs in the pipeline library of 1.0.2.1: their listings carry 79,490
undecodable words and 8,310 exp invalid_target_N lines, the translator
refuses all of them as "fall-through into undecodable words", and the
shaders stage keeps 1,844 of 2,684. LLVM 21 does translate all 26,503
shaders of shaders.rpf; the library is what it loses.

The same bytes under llvm-mc 23.1.5 have no rejected word in those 840,
and 839 of them translate and pass spirv-val (the last wants s_sethalt,
which the translator does not implement, under either version). The 1,844
that already translated were re-disassembled too: 1,674 listings change
and all 1,674 still translate, the other 170 are byte-identical, so the
stage goes from 1,844/2,684 to 2,683/2,684.

The build helper now builds 23.1.5 by default. The docs that name the
minimum version (README, docs/design.md, docs/testing.md, docs/linux.md)
and the three user-facing messages that still said 21+ (make_game.py's
preflight, shader_disasm.py's probe error, mc_command.py's install hint)
now say 23+, with the tests that assert those texts updated.

AI-assisted (DeepSeek Harness).
Written with an AI assistant.

* docs: LLVM 23 is what the shaders stage needs, and a test pins the script's default
2026-12-01 11:48:54 +01:00
4009a3426d Merge pull request #1659 from whoalin1/snan-fma-cmpclass
fmisc_diff: do not judge the class bits of a NaN whose quiet bit is unmodelled
2026-12-01 11:31:31 +01:00
6da607c096 scripts: --help on the Python and shell entry points
check_no_game_data.py read `--help` as a path and answered "cannot read --help", exit 2, in the tool every
contributor is told to run; it now prints the usage text it already carries and exits 0. play-linux.sh and
run_wine_session.sh print their usage before any environment check, where they used to answer with an error
(and play-linux.sh's no-argument case still prints the same usage, on stderr, exit 2).

run_game_wine.sh's one-line Usage line names the required --shaders, which its Inputs section already listed.

A test per script fails on main's copies and passes here.
2026-12-01 10:29:39 +01:00
ad7c62edbd Merge pull request #1524 from jarvixaiassistant-glitch/fix/decode-ds-llvm-parity
rdna2_decode: align DS single-offset and ds_swizzle_b32 ROTATE/FFT formatting with LLVM (DECODE-DS-PARITY)
2026-12-01 09:39:30 +01:00
2e822df666 Merge pull request #2803 from thiefyzheng/test/w64-append-consume-barrier
W64-APPEND-CONSUME-BARRIER-REGRESSION: guard one-wave branch barriers
2026-12-01 09:17:52 +01:00
1d73465e88 Merge pull request #2818 from imShangLi/fix/argparse-gpu-probe-list
test_make_game_argparse: the shaders stage probes two GPUs the test does not mock
2026-12-01 09:01:51 +01:00
501b3e6c5c Merge pull request #2805 from TheGeogeo/d3d12-gate-pwsh7
gate: game-gate.ps1 says it needs PowerShell 7 (D3D12-GATE-PWSH7)
2026-12-01 08:50:36 +01:00
d9c470cd30 game_run_summary: record the run cgroup's memory peak 2026-12-01 08:41:52 +01:00
d696c86509 rdna2spirv: fix quad_any's other stale partial-quad wording 2026-12-01 08:04:17 +01:00
0d41b0a0c0 Merge pull request #2639 from breachato/meshlet-page-shared-report-path
meshlet_page: ask report_paths for the report-path guard
2026-12-01 08:01:18 +01:00
4edb90521b game_run_summary: keep the breakpoint when the guest also exited 3
A startup-trace exit event with code 3 no longer hides a title
breakpoint; a device loss still takes precedence when it is the only
explanation, because the breakpoint is its handler.

AI-assisted.
2026-12-01 07:36:57 +01:00
74e3be90c0 game_run_summary: let a guest exit win, and match any breakpoint code
A device-lost line written during teardown no longer renames a clean
guest exit or a time limit. The breakpoint check now looks at every
exception code, normalised for 0x and case, so a later teardown fault
does not hide it. The docstring says the [rt] lines are the C++ runtime's,
not the native Rust runtime's.

AI-assisted.
2026-12-01 07:35:45 +01:00
555a8f7a18 game_run_summary: name device lost and title breakpoint in the END words
The summary called a device loss and the title's own int3 both
"process exit 3, no exit event". Use the RUN block's END words: the
runtime's device-lost line becomes "device lost", and exit 3 whose last
exception is 0x80000003 becomes "title breakpoint".

AI-assisted.
2026-12-01 07:18:51 +01:00
872d2e7534 tests/test_make_game_argparse: the shaders stage probes two more GPUs than the test mocks
test_custom_jobs_forwarded_to_shaders asserts fallbacks=() but neutralises only four of the six
runtime_gpu_* probes the shaders stage consults. The two it misses answer False on hardware
tools/vk_subgroup_info.py documents: denorm_flush_to_zero_f32 on NVIDIA Vulkan drivers (VK_FALSE)
and integer_dot_product on a Vulkan 1.2 device such as MoltenVK's. Where a probe answers False,
make_game.py sets the fallback flag unconditionally instead of going through
keep_recorded_fallback(), so the assertion fails with fallbacks=('--no-ftz32',).

Add the two missing patches, the same six-probe list tests/test_make_game_translator_flags.py
already uses.
2026-12-01 09:20:26 +08:00
f442c3dfba scripts: red_green.py tells a crashed compiler from a build error (TEST-RED-GREEN-COMPILER-CRASH)
A verification's only trial said "red does not build" while rustc had crashed (0xC0000005). A side whose
cargo output shows rustc or a build script ending with a Windows crash status, an internal compiler
error or a failed allocation now builds again once, and the report says so; a second crash gives the
verdict `compiler crashed` (exit 1), not `red does not build`. A test binary that crashes stays a test
result.
2026-12-01 01:49:41 +01:00