Commit Graph

7125 Commits

Author SHA1 Message Date
dfd239266f make_game, first_light: a vk_pipeline_check or vk_harness older than its sources is rebuilt or reported, not reused silently 2026-11-24 07:35:50 +05:30
ff04f0a282 Merge pull request #10 from wavehs/psocache-tempdir-test
tests: psocache_extract pins the temporary directory it checks against
2026-11-23 20:40:32 -05:00
ac07c9b51b Merge pull request #9 from wavehs/test-platform-realpath
tests: compare the Wine launcher's physical paths with realpath
2026-11-23 20:40:29 -05:00
b22cd63731 Merge pull request #6 from wavehs/test-awc-readonly-manifest
tests: awc_manifest refuses a read-only manifest before it stages one
2026-11-23 20:40:20 -05:00
02b682db9c tests: psocache_extract pins the temporary directory it checks against
test_output_outside_the_temp_directory_is_refused expects the tool to
refuse an output path in the repository root, but the tool compares it
with the system temporary directory: a checkout under /tmp or %TEMP%
(the usual sandbox worktree) makes the repository itself 'inside', the
tool writes the cache there and the test fails with 0 != 2. Run the
tool with TMPDIR set to a fresh directory so the check holds wherever
the tree lives, and clean up the output path either way.

(cherry picked from commit 4c23e4f94d931725d26ab2381d0dbe8326e77a75)
2026-11-24 03:31:07 +02:00
28c5b70b1b tests: compare the Wine launcher's physical paths with realpath
test_wine_first_boot_uses_the_packaged_game_and_shader_paths runs on
POSIX only and three assertions failed on macOS: gta6rt.sh resolves its
own path with readlink -f and lets cd settle the game directory, so the
runtime sees /private/var/... while the test expected /var/... (macOS
keeps the temporary directory behind a symlink). The expectations are
now realpath'd, which is a no-op on Linux and on Windows.

(cherry picked from commit 93f77743581ec6ca2a41c4ccadfcf68033f12bfd)
2026-11-24 03:30:40 +02:00
1fa09754c3 tests: awc_manifest refuses a read-only manifest before it stages one
82b87bdd3 opens the destination for writing first, to keep the direct
writer's permission check, and only then stages the report. The test
still expected the old path (stage, inherit 0444, fail in replace_retry,
chmod 0600, unlink) and asserted that chmod happened, so it failed once
the pre-open raises PermissionError: on POSIX and Windows alike nothing
is staged.

Split it: a read-only manifest is refused with the previous report and
the directory unchanged, and a writable manifest whose replace_retry
fails still leaves no staging file.

(cherry picked from commit 2ccc600642cfd4f8252051a46c7cc8e2d7723820)
2026-11-24 03:28:52 +02:00
90edda52c3 tests: the BVH shader-stage fixture writes the FSPX key the step checks for
make_game.fspx_cache_complete only accepts an FSPX translation index
whose compute row carries fspx_code_sha256 (32c010551), which is the
key the runtime looks the program up by. tests/test_bvh_shaders_stage's
fake rdna2spirv.py still wrote a row with just stage, so shaders() ran
fspx_unpack.py and rdna2spirv.py again on every call and the second
stage() assertion failed. The fake now writes the key, as the real
translator does (tests/test_fspx_shaders_stage.py:167).

(cherry picked from commit fafba69e6f1a765234cde07be232727f8088c3a7)
2026-11-24 03:28:00 +02:00
0b589ea999 rdna2spirv: use OpAtomicStore for MSG_GS_ALLOC_REQ %ms_counts
(cherry picked from commit 0b094ae8e49dd846abf2abdac7e4b3588d18ee74)
(cherry picked from commit e1cbb27efc0fcddc0dad7a7ec560fcaa2e007300)
2026-11-23 19:42:47 -05:00
6dece92317 Merge TreXito's unmerged PRs: translator fixes, fuzzers, CPU emulation, xapu/chad shims
Merged from the TreXito/mangrove copy of the original repository, which carried
contributor pull requests that were never merged here.

Kept: rdna2spirv fixes (ds_append/ds_consume, v_ldexp_f16 under MODE.FP_ROUND,
thread-group SGPR, fma exact), the differential fuzzers (dot, vint, wint, vrel, cvt,
f16misc, salu, mode) with their tests, the exe/import fail-fast and int3 cause tools,
Zen 2 instruction emulation (cpu_emulation.h) and the xapu.dll/chad.dll shims.

Not taken, because they conflict with different implementations already on main:
the D3D12 Xbox-ABI layer, xmem, acphal, loader TLS, f64_diff, DirectStorage (needs the
typed-error zlib inflate), and the copy's own MANGROVE.md and README changes.
2026-11-23 19:42:33 -05:00
a8b7ddbd50 Make main's tests green, part 2: docs drift, bvh_slot_check, find_hash_lookup (#10002)
Seven more test files that fail on main at d083a2c, after #9896:

- test_docs_repeated_lines: tests/semantic/README.md's command block is a fenced block, which the check skips;
  its indented form put two lines with the same 40-character opening three lines apart
- test_docs_repo_paths: docs/retail_boot_intel_host.md names #8554's frame-loop notes instead of a path that
  is not in the tree
- test_docs_env_vars: runtime/README.md documents LEONIDA_RNG_SEED (runtime/shims/bcrypt_rng.cpp)
- test_docs_design_rows: docs/README.md gets one row each for strand_grooms.md and ped_catalogues.md (two
  rows each were merged in), and design.md escapes the pipe in `prim_cnt << 12 \| vtx_cnt`
- test_docs_cli_flags: docs/testing.md passes llvm-mc through LLVM_MC, so `brew --prefix` is no longer read as
  a bench_wave64.py flag; pt-PT's quickstart points to the web checker that replaced tools/pc_checker.py
  (5125a01), as README.md does; the spirv-opt passes docs/embedded_shaders.md quotes join FOREIGN
- test_bvh_slot_check: bvh_match.model_geometries() yields six fields since the render bucket was added;
  unpack the two it needs
- test_joaat_agreement (find_hash_lookup's half): hash over the Latin-1 bytes like hashdict.joaat, as #6254 and
  #7820 proposed

Still red, for a separate change: test_joaat_agreement's leonida_mods half (it hashes UTF-8 bytes like
runtime/src/mods.h, so both sides change together), test_f64_conversion and test_f64_output_modifiers (they
expect the output scaling #6314 gated by MODE) and test_bvh_shaders_stage.
2026-11-24 00:28:18 +01:00
d083a2cc37 Make main's tests green: 12 test files that drifted from the code (#9896)
Twelve test files failed on main at 2d53a8055 (CI's check and semantic-tests steps, run locally): most are a test
and the code it checks changed by different pull requests in the same merge round. Each fix below is either taken
from a closed pull request that already had it, or restores what an earlier merged change intended.

From closed pull requests:
- test_make_game_resume: FakeProc gets poll(), which translate() now calls (#7018)
- test_make_game_empty_translation: the Exited stub gets poll() and the failed-shard path is checked (#7214)
- test_shader_checks: stub table_fetch_test in the Wave64Checks harness and count it (#7433)
- test_runtime_paths: runtime.yml's path filter lists tools/replace_retry.py, which rdna2spirv.py imports (#7029)
- test_psin_names: patch the same_report_path helpers that report_paths now calls (#8719)
- test_report_source_collision: the fixture is a real Bink 2 header; bink_index refuses other files (#7408)
- test_missing_input_exit_codes: tile_probe checks its inputs before it asks for numpy (#4771)

Restored:
- merge_check: a failed `git show` is an error again (5b88d58); 21016cf brought back the lenient read that
  treated it as a new file, while new files are already left out when the diff is read
- rpf_probe: a symlinked --out updates its target again (44d3595); 55d21cc's staged write replaced the link

Updated to the code:
- test_shader_stage_resume: TRANSLATION_SOURCES lists fssm_unpack.py and shader_stage_manifest.py, which the
  translator imports; existing work folders translate once more after this
- test_tool_stdout_encoding: the 15 programs merged without the stdout guard get the same block as the others
- test_rdna2spirv_decode: drop the test of decode_any_format, which SHADER-849 replaced with the table decode
  that tests/semantic/test_format_decode_table.py checks

Co-authored-by: jewmaster1337 <102986566+jewmaster1337@users.noreply.github.com>
Co-authored-by: TanmaySatyam <248538550+TanmaySatyam@users.noreply.github.com>
Co-authored-by: evilclanker9000 <45567075+evilclanker9000@users.noreply.github.com>
Co-authored-by: slint6614-dev <359954236+slint6614-dev@users.noreply.github.com>
Co-authored-by: BlackNife <108077267+Poussistar@users.noreply.github.com>
Co-authored-by: fiestorra <65175643+fiestorra@users.noreply.github.com>
Co-authored-by: fearkov <289226582+fearkov@users.noreply.github.com>
Co-authored-by: DoubleD17 <48109637+DoubleD17@users.noreply.github.com>
2026-11-24 00:21:26 +01:00
a2c2ba8788 Merge pull request #4092 from ray3242/devin/1795389450-pipeline-crash-bisect
make_game pipelines: bisect crashes to the module and record its SPIR-V hash (TEST-895)
2026-11-24 00:18:42 +01:00
c95d935727 Merge pull request #4728 from rafaelpssz/fix/walk-bink_names
bink_names: a sub-folder the --out check cannot list is an error, not a silent skip (BUILD-1374)
2026-11-24 00:17:50 +01:00
f2c3a96a40 Merge pull request #4729 from rafaelpssz/fix/walk-bvh_index
bvh_index: a sub-folder the report-path check cannot list is an error, not a silent skip (BUILD-1374)
2026-11-24 00:16:18 +01:00
73ddc61cd5 Merge pull request #7788 from prampa/codex/boot-trace-last-call
boot_trace: report the last recorded D3D12 call
2026-11-24 00:15:16 +01:00
20cff7e367 Merge pull request #4738 from ray3242/docs/fix-navmesh-mojibake
docs: fix cp1252 mojibake in navmesh.md and add a docs encoding test
2026-11-24 00:14:30 +01:00
c1f6b5bb52 Merge pull request #3637 from ray3242/devin/1795381635-design-leftovers-2
docs/design: remove the duplicated image-query contract row
2026-11-24 00:12:17 +01:00
2462d00e7f Merge current Leonida main and retain last complete boot call 2026-11-24 00:02:27 +01:00
3faeaf2ca6 Merge remote-tracking branch 'origin/pr/8980'
# Conflicts:
#	scripts/merge_check.py
2026-11-23 17:43:03 -05:00
8b63b583ae Merge remote-tracking branch 'origin/pr/8995'
# Conflicts:
#	runtime/test/shaders/check.py
#	scripts/run_gpu_tests.py
2026-11-23 17:41:48 -05:00
7d8e7fe558 Merge remote-tracking branch 'origin/pr/8945' 2026-11-23 17:41:07 -05:00
17bbb2dfb8 Merge remote-tracking branch 'origin/pr/8946' 2026-11-23 17:41:06 -05:00
18a7d775a4 Merge remote-tracking branch 'origin/pr/8948' 2026-11-23 17:41:06 -05:00
dba337b128 Merge remote-tracking branch 'origin/pr/8949' 2026-11-23 17:41:06 -05:00
3febff89c0 Merge remote-tracking branch 'origin/pr/8950' 2026-11-23 17:41:06 -05:00
bdd2662a36 Merge remote-tracking branch 'origin/pr/8951' 2026-11-23 17:41:05 -05:00
0f7dbdd4e9 Merge remote-tracking branch 'origin/pr/8954' 2026-11-23 17:41:04 -05:00
0aedf6a72a Merge remote-tracking branch 'origin/pr/8958' 2026-11-23 17:41:03 -05:00
7128104187 Merge remote-tracking branch 'origin/pr/8960' 2026-11-23 17:41:03 -05:00
25f87acf2f Merge remote-tracking branch 'origin/pr/8961' 2026-11-23 17:41:03 -05:00
26e7c8525c Merge remote-tracking branch 'origin/pr/8962' 2026-11-23 17:41:02 -05:00
fd954347e2 Merge remote-tracking branch 'origin/pr/8963' 2026-11-23 17:41:02 -05:00
887a0e4ef2 Merge remote-tracking branch 'origin/pr/8965' 2026-11-23 17:41:02 -05:00
f1767b5658 Merge remote-tracking branch 'origin/pr/8967' 2026-11-23 17:41:01 -05:00
0fdb6c375f Merge remote-tracking branch 'origin/pr/8968' 2026-11-23 17:41:01 -05:00
3c96bb6960 Merge remote-tracking branch 'origin/pr/8970' 2026-11-23 17:41:01 -05:00
adf1bf8f64 Merge remote-tracking branch 'origin/pr/8971' 2026-11-23 17:41:00 -05:00
3268f28791 Merge remote-tracking branch 'origin/pr/8972' 2026-11-23 17:41:00 -05:00
bbb8c51020 Merge remote-tracking branch 'origin/pr/8973' 2026-11-23 17:41:00 -05:00
3f2292bcfe Merge remote-tracking branch 'origin/pr/8974' 2026-11-23 17:41:00 -05:00
c9bb5becf7 Merge remote-tracking branch 'origin/pr/8979' 2026-11-23 17:40:58 -05:00
a5c9e54bf5 Merge remote-tracking branch 'origin/pr/8982' 2026-11-23 17:40:57 -05:00
3141b5f828 Merge remote-tracking branch 'origin/pr/8983' 2026-11-23 17:40:57 -05:00
293b5f4a99 Merge remote-tracking branch 'origin/pr/8984' 2026-11-23 17:40:57 -05:00
51542d0f5a Merge remote-tracking branch 'origin/pr/8985' 2026-11-23 17:40:57 -05:00
4c55690e89 Merge remote-tracking branch 'origin/pr/8986' 2026-11-23 17:40:57 -05:00
e10ec61417 Merge remote-tracking branch 'origin/pr/8987' 2026-11-23 17:40:56 -05:00
d0c0fe437a Merge remote-tracking branch 'origin/pr/8988' 2026-11-23 17:40:56 -05:00
10aa2c0210 Merge remote-tracking branch 'origin/pr/8990' 2026-11-23 17:40:56 -05:00