Commit Graph

18350 Commits

Author SHA1 Message Date
be2a1ab0fd D3D12-PIPELINE-CACHE-CONCURRENT-PUBLISH: tolerate concurrent publish on rename error 2026-11-30 05:17:50 -06:00
c23a0f51b3 D3D12-HLE-XNETWORKING-WIDE-ALIGNMENT: read UTF-16 URLs unaligned in wide() 2026-11-30 05:17:49 -06:00
3c2bfd4294 D3D12-SHADER-RDNA-LEGACY-MAD: restore RDNA LEGACY lowering path in legacy_mad 2026-11-30 05:17:48 -06:00
3472e6e6a5 Placed textures found before are found again in 64 tables under shared locks (LEONIDA_PLACED_SHARDS)
The six list threads looked every placed view of every table up in one map of 69,000 textures behind one lock
(a 60-byte key, a tree of some 16 levels): of their waits for contended locks, 55 % were under placed_texture
(profile list-d207; view_cast_serial alone 34 %), and in diagnostics builds the count of filler twins took a
second lock and a tree's search on most calls. texture_at now looks in one of 64 hash tables read under a shared
lock first, and fills it under the map's lock (never taken under a table's); the map keeps its resources for the
run, so what a table holds stays true. The twins are counted with it on only with LEONIDA_PLACED_TWINS=1. On unless
LEONIDA_PLACED_SHARDS=0; LEONIDA_AB can switch it.

AI-assisted (Claude). Tested on an RTX 4060 Ti, driver 616.64 (Windows 11): built; measured by turns next.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 06:10:50 -05:00
6239a99170 docs: ask for a negative control and a checked instrument in AGENTS.md
The guide asks an agent to measure, count over the corpus and quote where a
claim comes from. It does not ask for the two things that decide whether a
measurement means anything, and this repository's pull requests have been
reviewed with green tests that proved nothing as a result:

- a new test must be shown to FAIL without the fix - on main, or with only the
  changed source reverted - and the reply should say which of the two was done;
- the instrument must be checked: rebuild before ctest after switching branches,
  compare the change between branches rather than the file, and read the test's
  own header before describing what it proves.

Written with an AI assistant.
2026-11-30 12:02:09 +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
d367675c70 d3d12: index heap buffer spans as slots change (on in play-nvidia) 2026-11-30 05:51:58 -05:00
4e72cc8664 docs: a switch with a value needs it beside LEONIDA_AB
merzleckeier measured on #2708 that LEONIDA_GUARD_HOT and LEONIDA_SKIP_TRY_A
stay off on both sides when only LEONIDA_AB names them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 11:47:51 +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
709a6bbb16 d3d12 shader: find the wave sections after an unmatched saveexec
wave::sections() looks in a block for whole-wave sections: a saveexec of
every lane, the code under it, and the EXEC restore that ends it. When a
saveexec's restore was not in the block (it lies in a later one), the scan
stopped there (`let Some(end) = end else { break; }`), so every whole-wave
section later in the same block was missed and its reduction translated
the general way instead of as the section's shape. Such a saveexec is no
section; the scan now goes on past it.

Test: an_unmatched_saveexec_leaves_the_later_sections_of_its_block puts an
unmatched s_or_saveexec_b64 before the wave64 OR reduction the other tests
use and expects that section and its shape at index 1. On main it fails
("the section after an unmatched saveexec", left None).

Port of shh's fix and test in the sibling VIctory tree (TaynanGT/Vice-Tay
17e3e2c, GPL-3.0). The shader cache key covers leonida-shader/src, so
cached translations are made again.

Co-Authored-By: shh <marek8788@proton.me>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 11:39:15 +01: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
42b1f4ae4b d3d12: a guard page fails a copy and stays a guard page
Title memory has guard pages: stack guards, and guards the title sets up
itself. A copy, put or merge of title memory (safecopy, under the
write-catch handler in watch.rs) that touched one took
STATUS_GUARD_PAGE_VIOLATION, which clears the page's guard flag. The
handler sent every fault inside a copy to the copy's failing exit,
whatever the code, and nothing set the flag again: the page stayed an
ordinary page, so the title's next touch of it no longer raised the
guard fault it was set up for.

A guard fault inside a copy now sets the guard flag again on its page,
with the protection the page has, and fails the copy as before. The
re-arm checks that the page is still committed and that VirtualProtect
succeeds; a re-arm that fails, or a guard fault with no address, is
counted (NOT_REARMED) and the first one is logged. A guard fault outside
a copy still goes on to the next handler.

Tests: the source and destination cases for copy, put and merge (all four
fail on main with "...cleared the guard flag" / "the guard flag was
consumed"), and a_page_that_cannot_be_guarded_again_is_counted.

Port of zocram4cc's fix and tests in the sibling VIctory tree
(TaynanGT/Vice-Tay fa11650 and c277533, GPL-3.0).

Co-Authored-By: zocram4cc <79211006+zocram4cc@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 11:28:39 +01:00
139bfb21f3 Findings: a steady frame's chain, the frame meter by turns, the list ahead of each frame sampled
Timelines of run d200: the frame comes out of the title's threads (22-30 ms a frame), its own Sleeps, our list
threads' calls and the host's Present more than out of the submitting thread; the card busy 96-99 % by our count.
LEONIDA_METER_BESIDE by turns (d202, d203): no change to the frame. Profile ahead-d201: the copies' spans are most
of the list ahead's own work.

AI-assisted (Claude). Tested on an RTX 4060 Ti, driver 616.64 (Windows 11), Series X profile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 05:28:31 -05:00
2a1e66b157 The heap pass keeps a slot that shows each copy in a part's spans, not a hold on the copy
Sampled (run d201, the thread that records the list ahead of each frame): 54 % of its work is heap_buffer_pass
itself, and by line 81 % of that is making the copies' spans (SweepRanges::spans), 11 % setting the slots' ranges.
Each part's span held its copy (an Arc), and about every one of the 16 parts is made again each pass, so some 70,000
holds on copies other threads hold too were taken and let go a pass. A part's span now keeps a slot of the part that
shows the copy (a change that could leave that slot showing another copy or none makes the part stale, as before);
a pass takes one hold on each copy, which goes on into what it refreshes, and setting a slot takes none of its own.

AI-assisted (Claude). Tested on an RTX 4060 Ti, driver 616.64 (Windows 11): heap_range_tests (the spans kept by part
against every slot's, 600 random rounds) pass; the pass's time is measured in a standing run next.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 05:28:31 -05: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
6a321e5db4 tools: d3d12_switches and d3d12_run_fps set errors=replace on stdout
tests/test_tool_stdout_encoding.py asks it of every tool. d3d12_run_fps.py came
in with #2594 without it, which left that test red on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 11:23:47 +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
1b0f657f3d Merge pull request #2655 from OreoFR/docs/gdk-public-pages
docs: which imported GDK names have a public page (DOCS-GDK-PUBLIC-PAGES)
2026-11-30 11:04:41 +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
70ea7d6ec0 docs: document LEONIDA_TITLE_STREAM_BUDGET_MB in docs/d3d12_vulkan.md 2026-11-30 04:57:18 -05: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
bf85962d40 docs: say what the count of the switches page counts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 10:52:27 +01:00
c33baf8903 Merge main into fix/d3d12-gpu-pipeline-bytecode-alignment 2026-11-30 17:50:25 +08:00
ca8ad42c71 The frame meter's lines of each second are made on a thread of their own (LEONIDA_METER_BESIDE)
Made in the present, on the line's thread the frame waits for, the lines of a second held that thread some 37 ms
once a second (a timeline of run d141: 16.4 ms of it in VirtualQuery for the copy counters' busiest ranges, the
rest the lines themselves). Now the present counts the frame, cuts the second and hands the rest to a thread named
leonida-meter (a line still waiting for it is joined to the next); the window's caption is still set from the
present. On unless LEONIDA_METER_BESIDE=0; LEONIDA_AB can switch it. After kylepelham/El1xr d7ff66ab
(VICTORY_RAMLINE_BESIDE: that fork's present spikes were its memory lines made in the present).

AI-assisted (Claude). Tested on an RTX 4060 Ti, driver 616.64 (Windows 11): built; measured by turns next.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 04:49:15 -05:00
37163fc265 Findings: a key shows three frames later either way; the title's own ray tracing draws right at 3-8 frames a second
Runs d187/d188 (latency.py over every presented frame, standing): median 351.9 ms with frame generation, 310.0 ms
without, the first moved frame the third presented after the key in both. Runs d189/d190 (-RayTracing): the deck's
shadows and the water look right, the frame 158-217 ms (79-267 ms of it on the card), so it stays off by default.

AI-assisted (Claude). Tested on an RTX 4060 Ti, driver 616.64 (Windows 11), Series X profile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 04:49:15 -05: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
d359078453 d3d12: removal report says 'started', which is what STARTED counts
STARTED is counted at the start of a submission's preparation, before its
lists go to the queue, so while the submitting thread prepares one, that one
is among STARTED less FINISHED. 'sent' claimed more than the counter holds;
'started and not yet seen finished' is what it counts (review by
merzleckeier).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 10:39:50 +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
efc1929908 runtime: eliminate Windows 11 full-space commit_pages_locked broadcast storm, ShadowPages/TitleTextureCells guard conflict, and streaming budget bursts 2026-11-30 04:34:17 -05:00
4014af7fe9 Merge pull request #2704 from aslan2142/chore/tier2a-python-cleanup
chore: remove 13 dead one-off scripts, fix /home/nolan test paths, drop unused imports (CHORE-TIER2A-PYTHON-CLEANUP)
2026-11-30 10:31:12 +01:00
589b2d28fa docs: how to measure the D3D12 runtime's frame rates, and its LEONIDA_* variables
d3d12/docs/findings.md was reachable from d3d12/README.md alone, so a night of
runs repeated measurements it already holds. Index it, point AGENTS.md at it,
say how to measure (a switch by turns inside one run), and list the variables
the runtime names from its own sources: 415 of 669 were in no Markdown file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 10:29:56 +01:00
171af5d93e Merge pull request #2633 from aegish-zagi/fix/test-interp-computed-ij-rtz-carry
test(semantic): align computed-I/J f16 interp oracle with toward-zero p2 narrow (TEST-INTERP-COMPUTED-IJ-FALLBACK-RTZ carry)
2026-11-30 10:24:28 +01:00
c717967d0c test(semantic): align computed-I/J f16 interp oracle with toward-zero p2 narrow
Update `tests/semantic/test_interp_computed_ij_fallback.py` (#2239) to
narrow `v_interp_p2_f16` reference expectations toward zero (`f16_rtz` /
`f16_rtz_bits`), matching `SHADER-468` (#1181).

AI-assisted.
2026-11-30 04:22:16 -05:00
1bb726b30f Merge origin/main into next (Tier 1 hygiene, CMake test wiring, bink_index's report path)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 04:08:15 -05:00
0d2145ef4a Merge next into push/main-1130 (findings)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 04:07:57 -05:00
bb3c61711f Findings: the batch kept and the smoother by turns on NVIDIA do not move the frame (runs d185, d186)
And what a stable 30 frames shown with frame generation asks: 15 rendered, 66.7 ms a frame, against 71-79 now.

AI-assisted (Claude). Tested on an RTX 4060 Ti 16 GB, driver 616.64, Ryzen 5 7600X.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 04:07:48 -05:00