Commit Graph

6308 Commits

Author SHA1 Message Date
5399c667e2 Merge pull request #2721 from OreoFR/carry/pr-1907
reprend #1907: wave64_halves: model image_atomic_* as atomic memory sinks (SHADER-W64-HALVES-IMAGE-ATOMIC)
2026-11-30 16:11:53 +01:00
ed699ed767 rdna2_decode: name source operand 239 src_pops_exiting_wave_id, as llvm-mc does
The carry's new fixture ps_pops_wait_loop.asm reads it (s_add_i32), and
test_parity_with_llvm_mc_on_shader_fixtures failed where llvm-mc is installed:
the decoder gave raw src_239. rdna2spirv and shader_ir already expect the special name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 16:07:32 +01:00
89b895f287 tests: end the file with one newline, not two
No content change.
2026-11-30 15:47:26 +01:00
a70a976cd8 Merge remote-tracking branch 'origin/main' into reprise-1837 2026-11-30 15:38:14 +01:00
aa0687837f Merge remote-tracking branch 'upstream/main' into fix/decode-ds-llvm-parity 2026-11-30 14:04:40 +00: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
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
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
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
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
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
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
7df404beee Merge upstream/main into fix/ttpf-assets-stage-cleanup 2026-11-30 13:37:43 +03:00
c01916eeeb Merge upstream/main into fix/awc-manifest-stage-cleanup 2026-11-30 13:33:56 +03: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
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
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
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
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
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
45df09b843 chore: remove 13 dead one-off scripts, fix /home/nolan test paths, drop unused imports (CHORE-TIER2A-PYTHON-CLEANUP) 2026-11-30 04:00:53 -05:00
dcba958e52 Merge pull request #2637 from breachato/bink-index-shared-report-path
bink_index: ask report_paths for the report-path guard
2026-11-30 09:33:54 +01:00
f7764579a3 Merge pull request #2668 from aslan2142/chore/tier1-main-hygiene
chore: remove dead Tier 1 files, wire 5 unwired C++ tests, and fix play.ps1 path
2026-11-30 09:33:39 +01:00
b40e869e8c Merge pull request #908 from markankamaransheogarat-sys/ubiq/shader-disasm-failed-reset
SHADER-DISASM-PER-RUN-FAILED: shader_disasm: use a per-run failed list in main() and handle read OSError
2026-11-30 09:14:40 +01:00
d762b13973 Merge pull request #950 from barkodr/fix/x64-recomp-qemu-path
x64_recomp: find qemu through QEMU_AARCH64 or PATH, not a contributor's home folder
2026-11-30 09:13:23 +01:00
3c4c5a5cc9 Merge pull request #2666 from ItsYusei99/ps-glyphs-dualsense
PlayStation glyphs: --mono, a look close to the PS5's prompts; the DualSense d-pad; no black halo (PS-GLYPHS-MONO-DUALSENSE)
2026-11-30 08:12:10 +01:00
69454e705a Live prompts: call lnInit from each symbol class's constructor
In the second run in the title, Main's initialiser ran (the run-time
sentinels were found, four copies) but lnMade stayed 0: the hook in
mx.core.SpriteAsset never ran. The three movies that load the glyph movie
each define mx.core.SpriteAsset too, and theirs is the one used. The 38
Main_Button_N classes and platform_xbsx.input_icons.Main are defined only
in the glyph movie (the loaders' document classes are generic_movie.Main,
hud.Main and map_scripted_movie.Main), so each Main_Button_N constructor
now calls Main.lnInit(this) in a try block and SpriteAsset is left as it
is. 459 bytes to spare.
2026-11-29 23:20:51 -05:00
1fb8c4bfef Live prompts: sentinels made at run time, counters, PlayStation on top
The first run in the title found four copies of lnLo/lnFamily/lnHi eight
bytes apart, wrote them on every switch, and the prompts stayed keyboard.
The sentinels were the slots' defaults, so a template of defaults could
match, and the keyboard pieces were drawn over the PlayStation ones, so
code that never ran looked like writes that missed.

- Main's static initialiser now computes lnLo and lnHi (half of each
  sentinel times 2) before its own code: no copy of the movie or of a
  slot default holds them.
- lnMade (prompts made) and lnShown (pictures switched) follow lnHi; the
  runtime reads them through the found layout and logs them when found,
  on each write and every 30 s. A find needs whole numbers there and must
  not lie inside a copy of the movie; both rejects are counted.
- Sprites place the keyboard pieces first and the PlayStation pieces on
  top (the first named p): if the code does not run, prompts look
  PlayStation on every device.
2026-11-29 23:03:09 -05:00
54374cf53e Button prompts that follow a device switch during play
tools/live_prompt_glyphs.py builds ps_live_prompt_glyphs.gfx over the
title's glyph movie on the player's PC: each Main_Button_N sprite holds the
PlayStation and the keyboard picture (the first keyboard piece named k),
and the title's ActionScript block gets three static Number slots on Main
(lnLo, lnFamily, lnHi, the outer two sentinels), four static methods that
show the pad or the keyboard pieces when a prompt is made and on each frame
while it is on the stage, and a call from SpriteAsset's constructor, the
base of exactly the 38 symbol classes. Everything added is in try blocks.
tools/abc_file.py reads and writes ABC byte for byte. Both sets and the
code fit the 28,148 bytes with 1,057 to spare on the user's movie.

leonida-hle serves the live movie for a PlayStation pad or the keyboard
(unless LEONIDA_PROMPTS forces a family; LEONIDA_PROMPTS_LIVE=0 restores
one family's movie, LEONIDA_PROMPTS_PAD=xbox keeps a keyboard start on the
keyboard movie), with lnFamily's default set to the family in use, then a
below-normal thread finds the slots by their sentinels through
ReadProcessMemory and writes each change of the active family.

prompt_glyph_movies.py builds the live movie too (only over the title's).
Tested: the added code checked path by path and run in an interpreter over
fake display objects, the sentinel scan and writes on a fake heap. Not yet
run in the title.
2026-11-29 22:24:55 -05:00
95bc33f6e2 Built-in keyboard prompts, and both prompt movies built for every player
tools/pc_prompt_glyphs.py draws its own key caps, arrow keys and mouse in
code when --glyphs is not given (no pictures, Pillow or font), with the keys
of the runtime's on-foot table, each inside the outline of the Xbox glyph it
replaces and covering no more of the canvas (measured on the user's movie,
numbers only). tools/prompt_glyph_movies.py builds pc_ and ps_prompt_glyphs.gfx
over the title's movie (standalone if data.rpf cannot be read) into
d3d12/target, where leonida.exe looks; play-nvidia.ps1 runs it before a start
and make_game.py in its runtime stage. A movie the player made is never
touched or shadowed; its own are stamped and rebuilt only when inputs change.
2026-11-29 21:49:50 -05:00
18936010df chore: remove dead Tier 1 files, wire 5 unwired C++ tests, and fix play.ps1 path 2026-11-29 20:00:40 -05:00
4ae05e76c0 PlayStation glyphs: --mono, a look close to the PS5's prompts; the DualSense d-pad; no box behind a glyph
- `--mono` draws white keys and discs with black symbols, as the PS5's own button prompts look.
- In that look the d-pad is the DualSense's: four separate arrow keys pointing at the middle,
  the pressed ones white and the rest grey (all white for the plain d-pad and for all four).
- Mono sprites have no see-through bounding box behind them: when a menu highlights an option,
  the title's colour change showed that box as a black halo around the glyph.
- tests: no box behind any glyph in the mono look, the d-pad's key colours, the mono movie builds.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 18:32:16 -06:00