Commit Graph

9534 Commits

Author SHA1 Message Date
aa51a9693e tests: swizzle_search's CLI gates ask the way the tool runs too
The same in-process numpy check, in the file whose CLI tests spawn
`python -I`: HAVE_NUMPY stayed for the tests that call numpy here, and the
nine CLI gates now use NUMPY_VISIBLE_TO_TOOL, the isolated probe.

Measured on main b8bd37111, Windows 11, Python 3.13: 3 failed, 23 passed,
5 skipped before; 21 passed, 10 skipped after. Where -I sees numpy the probe
returns true and every gate opens as before.

Written with an AI assistant.
2026-11-30 14:55:47 +01:00
3c26f69f0c tests: tile_probe's numpy gate asks the way the tool runs
HAVE_NUMPY used importlib.util.find_spec in this process, while the tests run
the tool with python -I, which hides the --user install this machine has. The
gate opened and four cases died on "needs numpy" instead of testing what they
name. The file already did this correctly for Pillow (HAVE_PIL_ISOLATED); this
applies the same probe to numpy and gates the four cases that reach it, keeping
the eleven that test behaviour before numpy.

Measured on main b8bd37111, Windows 11, Python 3.13: 5 failed, 12 passed before;
11 passed, 4 skipped after. Where -I sees numpy the probe returns true and the
four run as before.

Written with an AI assistant.
2026-11-30 14:55:47 +01:00
aec457e1d7 tests: exercise amd_swizzle guards with isolated dependencies
AI-assisted with OpenAI Codex.
2026-11-30 14:55:41 +01:00
34046550a8 amd_swizzle: validate without numpy, and ask the gate the tool's question
Two things kept this test file red on a machine where numpy came from
pip install --user:

- the tool imported numpy at module level, so a bad --width reported
  "needs numpy" instead of "must be at least 1". numpy is imported late now
  and only the computation requires it;
- the skip gate asked whether numpy imports *here*, while the tests run the
  tool with -I, which hides the user site. It now probes the way the tool runs.

Measured on main b8bd37111, Windows, Python 3.13: 9 failed, 8 passed, 3 skipped
before; 14 passed, 6 skipped after. On a machine where -I sees numpy, the probe
returns true and the three gated cases run exactly as before.

Written with an AI assistant.
2026-11-30 14:55:41 +01:00
0d94741771 tests: the script run also executes FeatureScanAtomicOutputTests
The `__main__` scan collects the `test_*` globals, so the class's three methods
never ran in the plain-script invocation CI uses - which means the two skips this
PR adds never took effect there either. The class is loaded explicitly now.

Measured here: the script run goes from 13 top-level tests to those plus
"Ran 3 tests ... OK (skipped=2)", and pytest still reports 14 passed, 2 skipped.

Written with an AI assistant.
2026-11-30 14:55:30 +01:00
6c923fb419 tests: the two write-failure cases need preexec_fn, which Windows does not have
They fail on Windows today, and CI cannot see it because that file runs on Linux
there: FeatureScanAtomicOutputTests' two "failed write" cases pass
preexec_fn=fail_file_writes to subprocess, which is POSIX-only.

Measured on main b8bd37111, Windows 11, Python 3.13: 2 failed, 14 passed before;
14 passed, 2 skipped after, with the reason printed. On POSIX nothing changes.

Written with an AI assistant.
2026-11-30 14:55:30 +01:00
7c99b8e504 tests: compare the local baseline's numbers, not a timing threshold
merzleckeier measured what a bigger limit buys and it is not enough: at a 1024x
slowdown the 1000x draft still failed 0/3, while comparing the run's baseline
back against the file it was given passed 3/3. A limit measures the runner;
the numbers do not.

So the case now reads the measured values out of the baseline it just wrote and
asserts the second run used exactly those, with no --max-slowdown on that
invocation. The over-limit behaviour keeps its own deterministic test
(--max-slowdown 0.01 must report one), untouched.

Verified here: 10 passed, 5 subtests; and substituting a different baseline
makes the case fail (1 failed), which is what the assertion is for.

Written with an AI assistant.
2026-11-30 14:55:19 +01:00
37626c0ace tests: the local-baseline case does not measure CPU contention
test_a_local_baseline_replaces_the_committed_one asks that a locally written
baseline replaces the committed one; the 5x limit was incidental to that, and on
a shared runner it turned the case into a performance test whose only observed
failure was a contended box (macos-python on #2641: returncode 1 with empty
stderr, i.e. the tool's own over-limit verdict).

The over-limit behaviour keeps its deterministic coverage: --max-slowdown 0.01
must report one, and that case asserts it.

Written with an AI assistant.
2026-11-30 14:55:18 +01:00
8b605a7b71 awc_opus: a kept Ogg still contributes its cue-sheet limit
merzleckeier found it: the early `continue` on an Ogg that --skip-existing keeps
also skipped `frame_limits[cid]`, so a rebuilt cue sheet described only the
channels this run wrote.

The kept file's own EOS granule is the authority - recomputing the limit from
this run's packets would describe a file that was not written - so read it back
with ogg_last_granule(). The regression test fails without the change.

Written with an AI assistant.
2026-11-30 14:54:47 +01:00
90cf6be69b tests: expect --skip-existing on the ogg opus call
The assets test asserted the command line without the flag this branch adds,
so it failed as soon as the stage started passing it. The flag is the point of
the change: a stopped export leaves most of the Ogg files written and no
marker, and --skip-existing makes the restart keep the ones already done.

Written with an AI assistant.
2026-11-30 14:54:46 +01:00
cb89a384d2 tools: skip Ogg Opus outputs that already exist, so a stopped audio export resumes
awc_opus.py repacked every bank on every run, so a stopped assets run redid
the whole Ogg Opus step: on one machine 664,446 .ogg files were already
written and the restart began at bank 0. The stage marks the step done only
after it finishes, so there was no per-bank resume.

--skip-existing leaves an output that exists alone before packing a music
channel or writing a stream's .ogg/.wav, and make_game.py passes it in the
audio step. The staged writer publishes atomically, so an existing file is
always complete.

Measured on a 1 MB bank with 29 outputs: first export 0.8 s, second with the
flag 0.23 s and 0 files rewritten, while the same export without the flag
does rewrite them. tests/test_awc_opus.py covers that with the control.
2026-11-30 14:54:46 +01:00
f44904d21c Merge pull request #2718 from OreoFR/carry/pr-1726
reprend #1726: run_gpu_tests: sort cs_dump tables one entry per line (TEST-RUN-GPU-SORTED-TABLES)
2026-11-30 14:54:12 +01:00
f474c74b04 Merge origin/main (f9f3ec4c6) into the carry of #2174
Current main after #2566. New conflict on top of the earlier carry merge:
tools/rdna2spirv.py, _translate (straight-line and CFG paths): main passes
extra=meta_extra to _shader_meta.collect and reads the literal samplers
after it; the PR's g.note_pops_word(insns) runs right after that block,
before fit_shared_memory / needs_barrier_rounds as before.

Co-authored-by: QemmHD <290605352+QemmHD@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 14:30:43 +01:00
de2acaf955 Merge origin/main (f9f3ec4c6) into the carry of #2362
Current main after #2566. New conflict on top of the earlier carry merge:
docs/design.md, DPP row: main rewrote the absent-lane part of the row
(present-lane ballot for FI=1); main's text is kept and the PR's sentence on
Gen.dpp_insn forwarding neg/abs is inserted at the same place as before,
after the HW-DPP-NEG-INVALID-LANE sentence.

Co-authored-by: ShotTechOp <95485630+ShotTechOp@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 14:30:06 +01:00
5b34dc36fd Merge origin/main (f9f3ec4c6) into the carry of #65
Current main after #2566; no new conflicts on top of the earlier carry merge.

Co-authored-by: tiagonogueiraa-bit <360313680+tiagonogueiraa-bit@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 14:28:57 +01:00
af0e265607 Merge origin/main (f9f3ec4c6) into the carry of #282
Current main after #2566; no new conflicts on top of the earlier carry merge.

Co-authored-by: totonii <totonicontato@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 14:19:23 +01:00
e7d32a034a Merge origin/main (f9f3ec4c6) into the carry of #1994
Current main after #2566; no new conflicts on top of the earlier carry merge.

Co-authored-by: ShotTechOp <anurag7870977875@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 14:19:22 +01:00
c06660c318 Merge origin/main (f9f3ec4c6) into the carry of #1906
Current main after #2566; no new conflicts on top of the earlier carry merge.

Co-authored-by: Jordan <44410206+JordanWebDev@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 14:19:21 +01:00
5eed9c43d5 Merge origin/main (f9f3ec4c6) into the carry of #1907
Current main after #2566; no new conflicts on top of the earlier carry merge.

Co-authored-by: Jordan <44410206+JordanWebDev@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 14:19:21 +01:00
57f3a3c1c5 Merge origin/main (f9f3ec4c6) into the carry of #2093
Current main after #2566; no new conflicts on top of the earlier carry merge.

Co-authored-by: JARVIX <273200855+jarvixaiassistant-glitch@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 14:19:20 +01:00
105dd3a37b Merge origin/main (f9f3ec4c6) into the carry of #1406
Current main after #2566; no new conflicts on top of the earlier carry merge.

Co-authored-by: abdoulaahmad <104858675+abdoulaahmad@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 14:19:19 +01:00
c3f63575a2 Merge origin/main (f9f3ec4c6) into the carry of #1726
Current main after #2566; no new conflicts on top of the earlier carry merge.

Co-authored-by: TanmaySatyam <lavidivwaker@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 14:19:18 +01:00
4bc552caf1 Merge origin/main (f9f3ec4c6) into the carry of #2130
Current main after #2566; no new conflicts on top of the earlier carry merge.

Co-authored-by: d7ommy <abnalstlll@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 14:19:17 +01:00
1271b2433b Merge remote-tracking branch 'origin/main' into tests/lds-src2-mc-stdin
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 12:34:19 +01:00
8a2736fe6a Merge remote-tracking branch 'origin/main' into tools/chain-check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 12:33:59 +01:00
e187014f7c Merge remote-tracking branch 'origin/main' into feat/picture-metrics
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 12:33:46 +01:00
be3f75821a Merge current main to recheck launcher CI
Bring the launcher change onto the current base, including the F16 reference test fix from #2633.
2026-11-30 12:24:34 +01:00
f462c263e9 test_shader_build_fallbacks: pin LEONIDA_EXPLICIT_LOD_BIAS=0 in the ftz32 test
main's new test mocks exactly two subprocess.run calls (the ftz32 probe and the
translator); unset, build.py's --lod-bias probe ran first and used one of them,
so the translator call raised StopIteration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 12:00:36 +01:00
ab09fd1f86 Merge main: keep --no-ftz32 and --integer-dot-fallback next to --explicit-lod-bias
tools/rdna2spirv.py: main's float-only typed implicit sample (OpImageSampleImplicitLod)
is used only without --explicit-lod-bias; with the flag the Grad path still
scales the derivatives by the S# bias.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 11:46:44 +01:00
0568cd62ee Merge pull request #2708 from MoonEyes/docs/d3d12-measuring
docs: how to measure the D3D12 runtime's frame rates, and its LEONIDA_* variables (DOCS-D3D12-MEASURING)
2026-11-30 11:45:10 +01:00
45c15d0528 Merge upstream/main into fix/shader-disasm-stage-cleanup 2026-11-30 13:39:37 +03:00
72b02e491d Merge upstream/main into fix/bary-fallback-gs-stage-cleanup 2026-11-30 13:39:23 +03:00
ff5c8e8717 Merge upstream/main into fix/mesh-compute-vs-stage-cleanup 2026-11-30 13:39:09 +03:00
b12a39375a Merge upstream/main into fix/manifest-stage-cleanup 2026-11-30 13:38:51 +03:00
e0e50e30c7 tests/test_manifest: remove unused import shutil 2026-11-30 13:38:51 +03:00
7df404beee Merge upstream/main into fix/ttpf-assets-stage-cleanup 2026-11-30 13:37:43 +03:00
7798e28e11 tests/test_ttpf_assets: add regression tests for published_mode and mode restoration on replace failure 2026-11-30 13:37:43 +03:00
d401ff1200 awc_manifest: assert published_mode on staged file in windows publish test 2026-11-30 13:34:15 +03:00
c01916eeeb Merge upstream/main into fix/awc-manifest-stage-cleanup 2026-11-30 13:33:56 +03:00
4e1e864ca1 tests: a run that reached its limit says so with seconds at the limit (after #2028)
Takes over #1837: since #2028, main reports "time limit reached" only when
the run's seconds reach the limit, so the UTF-8 BOM case writes 60 s for a
60 s limit instead of 45; what it checks (both files parsed through the BOM)
is unchanged.

Co-authored-by: kirigayakazima <46666711+kirigayakazima@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 11:29:53 +01:00
ca71fd7f5c Merge remote-tracking branch 'origin/main' into reprise-1837 2026-11-30 11:29:46 +01:00
012b79a678 Merge pull request #2566 from aslan2142/integration/perf-cpu-gpu-r6
[integration] PageMirror, GPU detile, async queue & RDNA2->SPIR-V performance stack (INTEGRATION-PERF-CPU-GPU-R6)
2026-11-30 11:24:25 +01:00
4c13169991 Merge remote-tracking branch 'origin/main' into docs/d3d12-measuring 2026-11-30 11:19:20 +01:00
454df8e954 Merge pull request #2678 from bobcatchris/fix/compute-workers-win-venv
COMPUTE-WORKERS-WIN-VENV: launch Windows compute workers with sys._base_executable
2026-11-30 11:12:46 +01:00
a4300e3eb0 Merge pull request #2594 from owenjbendon-creator/tools-d3d12-run-fps
tools: frame rate of a D3D12-runtime run by draws a frame, and two runs side by side (TOOLS-D3D12-RUN-FPS)
2026-11-30 11:04:31 +01:00
6dec36053c Merge pull request #2625 from bimo0o/dash-junit-root-v2
progress_dashboard: reject non-JUnit XML reports (DASH-JUNIT-ROOT)
2026-11-30 11:04:21 +01:00
07905380dc ps_ssharp: probe the bias at +-0.26, not +-0.3
NVIDIA (RTX 3090, driver 610.88) moves NEAREST mip selection to level 1 at
about +0.289, inside Vulkan's 0.25..0.5 range, so a single +0.3 already read
level 1 there (found by zmasi). +-0.26 stays under that on every driver, and
the bias counted twice (+-0.52) still crosses 0.5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 10:55:18 +01:00
f98f4973ec docs: what the judge of the switches page found
The launcher column saw one way of assigning of four, three kinds were wrong,
names read by turns through a constant, a function or asked_for! were missing,
and test modules with a brace in a raw string were cut short. measuring_fps.md
now says how to give LEONIDA_AB to the launcher and what GPU_TIMING and
PROFILE need.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 10:42:33 +01:00
8f374d2ae8 Merge remote-tracking branch 'origin/main' into docs/d3d12-measuring 2026-11-30 10:42:33 +01:00
b8508a974b Merge branch 'main' of https://github.com/ProjectLeonida/mandy into fix/rendering-correctness
# Conflicts:
#	tests/semantic/test_interp_computed_ij_fallback.py
2026-11-30 04:36:05 -05:00