Commit Graph

5744 Commits

Author SHA1 Message Date
f4af48eb0e Merge #1513 (GPU results): keep both table rows 2026-11-28 05:36:01 +01:00
574b77e519 Merge #1527 (GPU results): keep both table rows 2026-11-28 05:36:00 +01:00
e092e2c6e1 Merge #1825 (GPU results): keep both table rows 2026-11-28 05:36:00 +01:00
ef8fbf09f3 Merge pull request #1718 from Tauwni/gpu-results-m3
gpu-test-results: Apple M3 on MoltenVK 1.4.2 (macOS 26.5.1) at 626d1281a (GPU-M3)
2026-11-28 05:21:52 +01:00
0c5cc28e82 Merge pull request #1826 from Ch1mpleo/carry/old-9791
docs/gpu_test_results.md: record NVIDIA GeForce RTX 5060 Ti (Windows 11, 610.88) results (OLD-9791)
2026-11-28 05:21:36 +01:00
6184e43bd1 Merge pull request #1870 from Anzymanz/gpu-rx9070xt-radv
gpu-test-results: RX 9070 XT on RADV (Mesa 26.2.6, CachyOS) at main 5e95fa2 (GPU-RX9070XT-RADV)
2026-11-28 05:21:26 +01:00
a51bffa621 Merge pull request #2172 from ammonium231/gpu-results-rtx3090-win
gpu results: RTX 3090 (Windows, 621.40)
2026-11-28 05:21:16 +01:00
ec44050661 Merge pull request #2353 from budanga/gpu/rx9060xt-win
gpu-test-results: RX 9060 XT (AMD 26.11.2, Windows 11) at 73516a29 (GPU-RX9060XT-WIN)
2026-11-28 05:21:05 +01:00
f4df7c4797 Merge remote-tracking branch 'mandy/main' into test/round4 2026-11-27 23:03:33 -05:00
5c815be84b Merge the upstream shared BC image fix into per-format staging
Retain staging for shared BC images on devices without host copies and keep the per-image fallback for formats without usable host-transfer backing.

AI-assisted-by: OpenAI Codex (GPT-6)
2026-11-28 14:00:35 +10:00
725d223757 Merge pull request #1549 from Mike7581/mvp-gpu-04-stub-pipeline
d3d12: LEONIDA_STUB_PIPELINES builds a real graphics pipeline from built-in stages (MVP-GPU-04)
2026-11-28 00:48:22 -03:00
bdfde3a93f rdna2spirv: refine HW_REG_MODE FTZ32 check and loop sbuf_slow_xN helpers
Check exact HW_REG_MODE bit-range overlap with FP_DENORM.fp32 [5:4]
(including numeric/simm16 forms) so FP_ROUND-only writes keep FTZ32
enabled, and rewrite sbuf_slow_{ro,rw}_xN as compact DontUnroll loops
with NonWritable %sl_blk1 loads on read-only wide scalar loads.

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-27 22:20:00 -05:00
4e721d781a Merge remote-tracking branch 'origin/main' into fix/mods-gui-tkinter-hint-macos 2026-11-28 04:18:59 +01:00
9547582ffd Merge remote-tracking branch 'origin/main' into gpu-results-m3 2026-11-28 03:59:20 +01:00
0508c53713 Merge branch 'r3b/img-sampler' into test/round3
# Conflicts:
#	docs/design.md
#	tests/semantic/spirv_mini_interp.py
#	tools/rdna2spirv.py
2026-11-27 21:18:18 -05:00
07e86a0263 Merge branch 'r3b/alu-smem' into test/round3 2026-11-27 21:16:08 -05:00
871cb697b9 Merge branch 'r3/absent-lane-ub' into test/round3 2026-11-27 21:15:20 -05:00
73fdc2a4c6 rdna2spirv: enable FTZ32/fmulz and per-load NonWritable SMEM with outlined slow paths
Enable DenormFlushToZero 32 alongside DenormPreserve 16 (with --no-ftz32
override and fmulz fusion), add sound per-load NonWritable scalar memory
analysis for descriptor/read-only SMEM loads, and outline wide s_buffer_load
partial-OOB slow paths into shared helper functions.

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-27 21:13:24 -05:00
072327cfad runtime: tighten TitleMirror/GeometryViews lifetime guards and PR hygiene
Guard GeometryViews retirement with command_list_epochs, defer TitleMirror
freed-home ticket stamping until flush + note_mirror_bind under submit_mutex_
(including TitleImageUpload submits), fix queue lock ordering and lock-free
wait_submitted, remove dead helpers and process labels, and scrub game shader
identifiers from docs/design.md.

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-27 21:13:23 -05:00
67273351ec rdna2spirv: add coherent VMM, literal sampler SpecId, float image elision, table store, and writes_buffer meta
Emit VulkanMemoryModel NonPrivatePointer/MakePointerVisible/Available for
glc/dlc buffer ops and reads_glc_buffer metadata, specialize literal S#
samplers via OpSpecConstant, elide dead uint/sint image_read_typed paths
when float-only, replace the 77-way buffer_store_format switch with a
compact lookup table, and emit writes_buffer + buffer_write_slots metadata.

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-27 21:12:04 -05:00
37163d100f ws2_offline: the host reports an extension lookup's completion; AI_NUMERICHOST keeps localhost a name
From timbot103's review of #2533.

- The ConnectEx and WSASendMsg lookups no longer complete the caller's
  overlapped themselves (complete_now). That posted no packet for a socket on
  an I/O completion port, so a caller waiting in GetQueuedCompletionStatus
  hung, and it signalled an overlapped a socket without WSA_FLAG_OVERLAPPED
  must ignore; its APC record also leaked if the thread never waited
  alertably. The host's WSAIoctl now gets the caller's overlapped and
  completion routine again, so the completion is reported as Winsock reports
  it, but writes its own pointer and byte count into storage of the shim's
  (wrap_extension_lookup): freed when the call completed, kept if the host
  reports it pending. The caller's buffer holds the wrapper before the host
  is called, so a packet another thread dequeues already finds it, and gets
  its old contents back on failure.
- With AI_NUMERICHOST, "localhost" is passed on as the name, so the host
  refuses it with EAI_NONAME instead of the shim answering with a literal.

ws2_offline_test: a completion-port socket gets its packet with the wrapped
pointer; on a socket without WSA_FLAG_OVERLAPPED the overlapped ends as the
host's own WSAIoctl leaves it; getaddrinfo(localhost, AI_NUMERICHOST) is
EAI_NONAME. The event and routine cases follow what Windows 11 does for this
lookup (measured: event set, routine run once, packet posted, 0 bytes in the
OVERLAPPED). The previous commit fails these 3 checks; 87/87 pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 20:07:18 -06:00
9e085fa6c3 rdna2spirv: eliminate absent-lane subgroup UB and add static/GPU checks
Guard all cross-lane subgroup shuffles and broadcasts against unlaunched
lanes, eliminate %uint_0 fallbacks in favor of SubgroupLocalInvocationId,
and add static SPIR-V verifier (check_absent_lane_ub.py), wave-interpreter
unit tests, and a Vulkan GPU validation test.

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-27 21:00:08 -05:00
27524a5e5b Merge remote-tracking branch 'origin/main' into fix/explicit-lod-bias-moltenvk 2026-11-28 02:57:41 +01:00
f05bf62eaa make_game, progress_dashboard: update default repository URL to ProjectLeonida/mandy (CI-REPO-URL-RENAME) 2026-11-28 09:55:01 +08:00
f589998bf7 docs: ws2_offline's empty names, localhost literals and synchronous WSAIoctl lookup
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 19:10:25 -06:00
de8604c3dc Merge ProjectLeonida/mandy main (431ceba4f) into test/round2
Preserves all Round 1/2/2.1 CPU/GPU runtime optimizations alongside upstream
mandy/main changes, resolves all 10 conflicted files, and fixes arena_window
accounting on retired/dropped title windows.

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-27 19:57:44 -05:00
f77ea07b22 Merge remote-tracking branch 'old/port/pc-glyphs' into next
# Conflicts:
#	docs/README.md
2026-11-27 18:22:16 -05:00
a33c48d816 docs: who asks for a prompt glyph and when, the keyboard set, why a live switch is out of reach
prompt_glyphs.md: the glyph movie's ActionScript is a symbol library with no
logic; the name is built, and a new sprite made at every prompt set-up, by a
class three larger movies carry, which loads the movie once and has a per-prompt
device suffix nothing on this build sets. The keyboard-and-mouse replacement and
its measured size and differences; the runtime's choice by family; and what is
certain and what is a guess about following a device switch during play.

gameinput.md: the start family from what is connected, and the switch guard as
it behaves.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 18:21:10 -05:00
3d36b2ad33 Merge remote-tracking branch 'old/feat/launcher-ui' into next 2026-11-27 18:07:10 -05:00
bf40febf38 Merge remote-tracking branch 'old/tools/xbox-glyphs' into next
# Conflicts:
#	docs/README.md
2026-11-27 18:07:10 -05:00
0d8fcf4a03 Merge remote-tracking branch 'old/port/kbm' into next
# Conflicts:
#	docs/gameinput.md
2026-11-27 18:06:59 -05:00
f33c963a5c docs/gameinput.md: the two callers that set and clear the player's vehicle are methods of the ped record that holds the in-vehicle flag
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 18:03:20 -05:00
89991dc8e0 Docs: the keyboard and mouse keys for players, and how the layout knows what the player is in
d3d12/README.md lists the keys on foot and in a vehicle. docs/gameinput.md
has the two tables with the pad button of each key, the GTA V keys left
out and why, the hand-over rule, what is read from the title (and that it
was read from the code, not yet seen running), the speed rule's limits and
the switches. docs/mod-menu.md counts the eleventh place.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 18:02:38 -05:00
d442851972 Merge remote-tracking branch 'mandy/main' into merge/mandy-main 2026-11-27 17:58:49 -05:00
00131bb85e main keeps its own runtime, tools and tests; the branch's variants stay on port/d3d12-nvidia
After the merge the tree held this branch's older states of files main maintains. Run against main's code,
tests/test_acphal_abi.py and 11 of the 15 translator tests that differed failed, and the C++ runtime would have
been built from two generations of its sources. So that the merge cannot break what main builds and tests:

- runtime/ is main's, file for file (68 files only this branch had are not carried over);
- every file under tools/, tests/ and docs/ that both sides have is main's (80 files);
- ten translator tests only this branch has, which test rules main's translator does not have, and their
  fixtures are left out.

What main gains: d3d12/ (the Rust D3D12 runtime), its launchers and helpers (Launcher.bat, scripts/play*.ps1,
play-linux.sh, port_ctl.py, smooth-motion.ps1, fetch_vkd3d_proton.py, sync_victory.py), mods/example_lua, eleven
notes under docs/, seven tools and the tests that pass with main's code, the README's sections and credits, and
the "Runtime traps" section of AGENTS.md. Everything left out here is on the branch port/d3d12-nvidia.

Checked: compileall; make_game.py --help; check_no_game_data.py over every file this adds to main; the
line-ending, docs-encoding, CI-registration and docs tests; each test file that differs from main, on its own.
Not run: the whole translator suite, the C++ build, cargo over d3d12/ after the merge (d3d12/ is byte for byte the
branch's), CI.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 17:58:38 -05:00
8f78a4b887 launcher: no cards on Play; the rail holds the game; the setups move into the menu beside PLAY
The Play page is the picture, the logo, PLAY and its menu, and the status line: the row of cards is gone, and the
server no longer reads the repository's history for it. Something still to do (DLSS files, the runtime) is a link
under the status instead of a card.

The rail holds one entry, the game, with the selection bar; its tile is a square cut from the background picture, or
the logo without one. Expanded it shows the name and the state. The four setups and "your own options" are in the
menu beside PLAY, the one in use ticked, beside "check this start" and "copy the command"; the menu opens upward
beside the buttons so it fits a 678-pixel-high window.

Tested: tests/test_launcher_serve.py (10), the no-game-data check, and the page in a browser at 1284x678 with the
server in --no-run mode: the tile, the expanded rail, the menu and its setups.

AI-assisted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 17:57:50 -05:00
d56a01a505 launcher: the key art behind PLAY, fetched once and kept outside the repository
The picture behind PLAY is the one chosen in Settings (Launcher, Background picture), else the newest background.webp,
.png or .jpg in the launcher's settings folder (%APPDATA%\Leonida), else the newest capture, else the drawn art. When
there is none, launcher/serve.py fetches the game's key art from rockstargames.com once at start (2560 wide) and
keeps it there as background.<the type that came back>; --no-art leaves it. The request names a plain browser and
nothing about the user or the project; what comes back is kept only if its bytes are a PNG, JPEG or WebP. The picture
is never part of the repository.

Over a picture the page sets it a little lower, so heads clear the words top right, fills the band above with the
picture's own top row, and moves the cards to the bottom so the faces stay clear. /media/background needs the run's
cookie and serves only a picture by its bytes.

Tested: python -I tests/test_launcher_serve.py (10 tests: picture kinds, which background, the fetch against a local
server, token, Host, Origin, cookie, preview starting nothing) and tests/test_leonida_launcher.py (15), the
no-game-data check, and the page in a browser with the server in --no-run mode: the art was fetched (2560x1440 WebP)
and shown, Settings names the file in use.

AI-assisted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 17:52:09 -05:00
587bb6f5ac Merge pull request #2447 from DadaCap/w64-one-lane-fold
wave64_emulate_opt: fold a region at most one lane of the wave runs (SHADER-W64-ONE-LANE-FOLD)
2026-11-27 23:51:05 +01:00
b87abdef57 Merge mandy's main into port/d3d12-nvidia
Brings the D3D12 runtime branch (d3d12/, its launcher scripts and notes, and the pull requests reviewed and applied
on it) together with mandy's main.

Conflicts (67 files, none under d3d12/): docs/, make_game.py, runtime/, scripts/build_runtime.ps1, tests/ and
tools/. Every one takes main's side: main is where that code is maintained, and this branch's copies were older
states of the same files or the same pull requests in another form. tests/test_fspx_unpack.py is main's too, as it
tests main's tools/fspx_unpack.py. Nothing under d3d12/ is changed by the merge.

Checked before pushing: python -m compileall over make_game.py, tools and tests; make_game.py --help;
scripts/check_no_game_data.py over the files this adds to main; tests/test_text_write_line_endings.py. The
translator suite, the C++ runtime build and CI have not run on the result.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 17:50:37 -05:00
3e4d890c56 Merge pull request #2435 from quartz-heron-58/mesh-serial-waves
rdna2spirv: --mesh-serial-waves, an emulated mesh program's waves one after the other (SHADER-W64-MESH-SERIAL-WAVES)
2026-11-27 23:50:27 +01:00
aa5915112d rdna2spirv: park pure scalar-spill VGPRs across all stages and wave sizes
Lower pure scalar-spill VGPRs (touched only by immediate-lane v_writelane_b32 with non-VGPR source and immediate-lane v_readlane_b32, with every read lane definitely written on all CFG paths) to parked %sgpr slots for both wave32 and wave64 across all shader stages, instead of emitting OpGroupNonUniformShuffle.

Previously only wave64 VS/PS/GS parked pure scalar spills (halves_analysis), leaving wave32 fragment shaders shuffling spilled V# descriptors from lanes that can be inactive or unlaunched on small triangles or after discards (Vulkan SPIR-V UB returning stale physical VGPR bits, causing GPUVM read faults on RX 7900 XTX / RADV 26.3.1).

Tested:
- python3 -m unittest discover -s tests/semantic (6,393/6,393 pass) + new absent-lane wave32 PS regression test (195/195 targeted pass)
- Retranslated all 1,173 v_writelane_b32 shaders (1,173/1,173 pass spirv-val)
- Verified on RX 7900 XTX (RADV Mesa 26.3.1): two consecutive 240 s fast-load runs at 0.0 s warm graphics PSO compile time with zero GPUVM faults.

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-27 17:07:09 -05:00
cab6609160 Merge remote-tracking branch 'lc/main' into lc/addr-no-int64 2026-11-27 23:49:06 +02:00
8b3a182482 tools: xbox_prompt_glyphs.py renders the title's own button prompt glyphs to PNG on the player's PC
The glyphs are the vector sprites of the input-icon GFX movie in data.rpf (docs/prompt_glyphs.md), not
textures. The tool reads that zlib stream read-only (nothing is decrypted, the table of contents is not
used), rasterises every export (solid fills by the even-odd rule, strokes with round caps and joins,
PlaceObject2 placements) and writes one PNG per export, a contact sheet and a listing. It refuses an
output folder inside the repository, and stops with an error on anything it does not draw (gradient or
bitmap fills, colour transforms, clip layers, nested sprites). Standard library only.

docs/prompt_glyphs.md: the fills, strokes and placements counted over all 131 shapes, and the command.

Tests build their movies by hand (no game data): tests/test_xbox_prompt_glyphs.py, 18 tests.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 16:34:41 -05:00
ef5620bf60 present_compose: fix premultiplied sRGB and additive alpha plane 1 decoding 2026-11-28 00:34:14 +03:00
048eeed509 Merge #2465 into consolidate/eight-gb-world 2026-11-27 22:16:28 +01:00
6014cb1c84 Merge #1851 into consolidate/eight-gb-world 2026-11-27 22:16:27 +01:00
00f317f0c7 Merge #2166 into consolidate/eight-gb-world 2026-11-27 22:16:26 +01:00
c20733f622 Merge #2020 into consolidate/eight-gb-world 2026-11-27 22:16:26 +01:00
4565dfb874 PR #2429: docs(restofworld): clean truncated merge remnant and update decoder status links
From https://github.com/ProjectLeonida/mandy/pull/2429 (head f6397802c5), applied as a reviewed patch.

Co-authored-by: Andretuta <Andretuta@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 15:48:44 -05:00
5b8010d069 PR #2430: docs(story): remove stale duplicate normals row and sync decoder status and CLI flags
From https://github.com/ProjectLeonida/mandy/pull/2430 (head 1bde4706b1), applied as a reviewed patch.

Co-authored-by: Andretuta <Andretuta@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 15:43:56 -05:00