[integration] Linux/Proton and native Windows: boot through the story load (RT-PROTON-STORY-LOAD) #984

Merged
Moriz82 merged 39 commits from upstream-pr/984 into main 2026-11-25 01:37:20 +00:00
Moriz82 commented 2026-11-24 16:24:24 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Moriz82 on 2026-11-24T16:24:24Z.


Claimed in the coordination issue as: RT-PROTON-STORY-LOAD (claim).

Depends on: none. Conflicts with / overlaps: #968 (queue slot 31, which this branch does not implement and needs), #974 (graphics root arguments and mesh user data), #976 (runtime BCPack decoder), #969 (DirectStorage destination pages), #939 (Windows first-run integration), #980 (device-loss log). Where they overlap, theirs take precedence; this branch will be rebased onto them.

Draft. It is one squashed commit on ece4ba5b3 (2026-11-23) and conflicts with main in 21 files. It is opened now so the Linux support and the test results are visible and so pieces can be claimed and split out; see "How this can land" below.

What and why

A fork of this project was developed on a Linux machine under Proton/Wine and tested on native Windows by a second contributor. On both, the retail 1.0.2.1 package now:

  1. launches and shows the package splash and the launch movie,
  2. goes through the first-run pages, legal pages and the landing prompt with a pad or the keyboard pad,
  3. runs the story load to its end, with the loading slideshow drawing its artwork,
  4. enters the world phase.

A first world frame is not verified yet on any machine. docs/linux_proton.md (new) has the Linux setup, the timeline of a healthy boot, the machines and where it stops.

Every item below was a stop on at least one machine:

Area Change
Presentation Frames are presented in the title's own window; they went to a window that was never shown.
Input Press log, right-stick keys, input scripts of any length (they were silently cut at 63 characters).
DirectStorage Reads pin write-watched destination pages; page-list scatter/gather; BCPack with unshuffle; a predictor file generated locally by tools/build_dstorage_history.py; bounded staging.
Story-load stall One device allocation per streamed texture exhausted the driver's CPU-visible mappings near 16,000 images. Small streamed images share pooled pages (LEONIDA_TITLE_IMAGE_POOL).
Image memory Host-copy usage excluded plain device-local memory on NVIDIA, so 4.8 GB of images spilled into host memory; streamed images are filled through staging. Private backing of placed and streamed images is deferred to their first write or GPU copy: VRAM at the end of the load 11.8 GB → ~5 GB on Linux; host private memory 22-24 GB → 11.9 GB on Windows.
Barriers An enhanced texture barrier into LAYOUT_UNDEFINED is accepted; it failed Close, which the title treats as fatal.
Bindless set A table rebuild that cannot allocate degrades instead of refusing the submission; larger 2D-array/3D/1D arrays; a fnv1a_fmix32 descriptor hash (runtime and translator halves, off until a library carries the marker), because the table had clustered to 8.4 M slots for 42 k keys.
Directly indexed heaps The heap offset is supplied in the user-data dword after the explicit root arguments, for compute dispatches and VS/PS/GS draws. The culling programs read their descriptors from offset zero before. Mesh stages are not covered.
Title buffers A window outside the arena when title reservations fragment it; opt-in persistent device-local copies of streamed buffer views.
Translator Loop bounds at structured exits (5,128 compute modules have loops); the eight FidelityFX programs that use a packed-dot form the disassembler skips, so all 29 translate (credit to the encoding found in #281); bounds modes per buffer view kind; no backing read for channel-less formats; a compaction option.
Native Windows A write fault on a shared page is retried under the tracker lock (a race ended the process in the story load); one tracker per run of shared pages (refresh 59 ms → under 1 ms); write-watched title memory; xmem's fault lock never waits for the process heap; root-layout fixes in the graphics test shaders.
Diagnostics, all off by default Device-loss report with the last dispatches and NVIDIA checkpoints, a probe of the descriptors a compute dispatch receives, a memory probe, LEONIDA_SKIP_COMPUTE and LEONIDA_STUB_PIPELINES. The last two are for finding a stop, not for shipping around one: every program they were used on has a fix in this branch or an open item below.

Where it stops now, on both platforms: the title's ~300 calls per boot to queue slot 31 are ignored here (#968 addresses that), so streamed pages never reach their destinations and the culling compute at world start reads outside mapped memory; mesh stages do not get the heap offset.

Tested

Linux: CachyOS (kernel 7.3), Proton Experimental (Wine 11), Ryzen 5 5600X, 16 GB RAM, RTX 4070 12 GB, NVIDIA 620.73. Cross-built with clang-cl 23 and an xwin SDK. About 80 boots of the retail package on 2026-11-24; the last ones run the story load to its end in 540-630 s with ~14,000-26,000 presents and no refused submission, then lose the device in the world phase's first compute work.

Windows A (second contributor, Plaaasma): Windows 11, Core i9-13900K, 64 GB RAM, RTX 4070 Ti 12 GB, NVIDIA 630.20, MSVC 2022. Same stages at ~70 s (initialisation), ~110 s (story load) and the same stop at ~120-190 s. Each fix in the table was confirmed there or found there. ctest -R d3d12_: 126 of 127 pass with 5 skipped on that machine.

Windows B: Windows 11, Ryzen 7 9800X3D, RTX 5070. Joining; no results to report yet.

Unit tests run under Wine on the Linux machine against this tree: d3d12_existing_heap_test, d3d12_compute_test, d3d12_graphics_direct_heaps_test, xg_xs_test (88 checks), vk_bindless_grow_test, bindless_sizing_test, descriptor_table_test, shader_library_test, title_write_watch_test (18), command_list_test, replay_texture_barrier_test, d3d12_close_parity_test (117 cases), startup_trace_test (27), vulkan_title_image_pool_test. Known red there: three checks of xmem_test on physical-page views under Wine, and one stress test skipped under Wine (a heap-lock deadlock in the fault path that is fixed natively and still open under Wine). Translator: the suites for loop bounds, buffer bounds, the descriptor hash (eight shared vectors, interpreter and GPU) and the recovered FidelityFX forms pass; all 2,680 paired compute programs and 29 of 29 FidelityFX programs translate.

GPUs tested: NVIDIA RTX 4070 (620.73, Linux/Proton); NVIDIA RTX 4070 Ti (630.20, Windows 11). No AMD or Intel GPU was available: RADV and the Intel paths are untested by us.

AI-assisted: yes (Claude Code and Codex agents wrote most of it; every result above comes from boots and test runs on the machines named, not from the agents' say-so).

How this can land

I do not expect this to merge as one pull request. Suggested order, each as its own claimed ID and small PR on current main, and I am glad to hand any of them to whoever wants it:

  1. docs/linux_proton.md and scripts/linux-boot/ (no code).
  2. The LAYOUT_UNDEFINED barrier and the bindless flush (each with its test).
  3. Image pooling, device-local placement and deferred backing.
  4. Directly indexed heap offsets (after #974, since it changes where graphics root arguments live).
  5. Translator loop bounds and the FidelityFX forms.
  6. The native Windows write-fault and tracker fixes.

Checklist

  • Based on current main and merges cleanly: no, see above.
  • One topic: no, an integration branch.
  • No game data, keys or decryption, including in logs or reports quoted here. scripts/check_no_game_data.py passes on the tree; the text above has counts, timings and settings only.
  • New translator rules are in the contract table of docs/design.md, with how they were confirmed.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5476111351 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/984). Originally posted by [Moriz82](https://github.com/Moriz82) on 2026-11-24T16:24:24Z. --- Claimed in the coordination issue as: RT-PROTON-STORY-LOAD ([claim](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7137594295)). Depends on: none. Conflicts with / overlaps: #968 (queue slot 31, which this branch does **not** implement and needs), #974 (graphics root arguments and mesh user data), #976 (runtime BCPack decoder), #969 (DirectStorage destination pages), #939 (Windows first-run integration), #980 (device-loss log). Where they overlap, theirs take precedence; this branch will be rebased onto them. **Draft.** It is one squashed commit on `ece4ba5b3` (2026-11-23) and conflicts with `main` in 21 files. It is opened now so the Linux support and the test results are visible and so pieces can be claimed and split out; see "How this can land" below. ### What and why A fork of this project was developed on a **Linux machine under Proton/Wine** and tested on **native Windows** by a second contributor. On both, the retail 1.0.2.1 package now: 1. launches and shows the package splash and the launch movie, 2. goes through the first-run pages, legal pages and the landing prompt with a pad or the keyboard pad, 3. runs the **story load to its end**, with the loading slideshow drawing its artwork, 4. enters the world phase. A first world frame is **not** verified yet on any machine. `docs/linux_proton.md` (new) has the Linux setup, the timeline of a healthy boot, the machines and where it stops. Every item below was a stop on at least one machine: | Area | Change | |---|---| | Presentation | Frames are presented in the title's own window; they went to a window that was never shown. | | Input | Press log, right-stick keys, input scripts of any length (they were silently cut at 63 characters). | | DirectStorage | Reads pin write-watched destination pages; page-list scatter/gather; BCPack with unshuffle; a predictor file generated locally by `tools/build_dstorage_history.py`; bounded staging. | | Story-load stall | One device allocation per streamed texture exhausted the driver's CPU-visible mappings near 16,000 images. Small streamed images share pooled pages (`LEONIDA_TITLE_IMAGE_POOL`). | | Image memory | Host-copy usage excluded plain device-local memory on NVIDIA, so 4.8 GB of images spilled into host memory; streamed images are filled through staging. Private backing of placed and streamed images is deferred to their first write or GPU copy: VRAM at the end of the load 11.8 GB → ~5 GB on Linux; host private memory 22-24 GB → 11.9 GB on Windows. | | Barriers | An enhanced texture barrier into `LAYOUT_UNDEFINED` is accepted; it failed `Close`, which the title treats as fatal. | | Bindless set | A table rebuild that cannot allocate degrades instead of refusing the submission; larger 2D-array/3D/1D arrays; a `fnv1a_fmix32` descriptor hash (runtime and translator halves, off until a library carries the marker), because the table had clustered to 8.4 M slots for 42 k keys. | | Directly indexed heaps | The heap offset is supplied in the user-data dword after the explicit root arguments, for compute dispatches and VS/PS/GS draws. The culling programs read their descriptors from offset zero before. Mesh stages are not covered. | | Title buffers | A window outside the arena when title reservations fragment it; opt-in persistent device-local copies of streamed buffer views. | | Translator | Loop bounds at structured exits (5,128 compute modules have loops); the eight FidelityFX programs that use a packed-dot form the disassembler skips, so all 29 translate (credit to the encoding found in #281); bounds modes per buffer view kind; no backing read for channel-less formats; a compaction option. | | Native Windows | A write fault on a shared page is retried under the tracker lock (a race ended the process in the story load); one tracker per run of shared pages (refresh 59 ms → under 1 ms); write-watched title memory; xmem's fault lock never waits for the process heap; root-layout fixes in the graphics test shaders. | | Diagnostics, all off by default | Device-loss report with the last dispatches and NVIDIA checkpoints, a probe of the descriptors a compute dispatch receives, a memory probe, `LEONIDA_SKIP_COMPUTE` and `LEONIDA_STUB_PIPELINES`. The last two are for finding a stop, not for shipping around one: every program they were used on has a fix in this branch or an open item below. | Where it stops now, on both platforms: the title's ~300 calls per boot to queue slot 31 are ignored here (#968 addresses that), so streamed pages never reach their destinations and the culling compute at world start reads outside mapped memory; mesh stages do not get the heap offset. ### Tested **Linux:** CachyOS (kernel 7.3), Proton Experimental (Wine 11), Ryzen 5 5600X, 16 GB RAM, RTX 4070 12 GB, NVIDIA 620.73. Cross-built with clang-cl 23 and an xwin SDK. About 80 boots of the retail package on 2026-11-24; the last ones run the story load to its end in 540-630 s with ~14,000-26,000 presents and no refused submission, then lose the device in the world phase's first compute work. **Windows A (second contributor, `Plaaasma`):** Windows 11, Core i9-13900K, 64 GB RAM, RTX 4070 Ti 12 GB, NVIDIA 630.20, MSVC 2022. Same stages at ~70 s (initialisation), ~110 s (story load) and the same stop at ~120-190 s. Each fix in the table was confirmed there or found there. `ctest -R d3d12_`: 126 of 127 pass with 5 skipped on that machine. **Windows B:** Windows 11, Ryzen 7 9800X3D, RTX 5070. Joining; no results to report yet. Unit tests run under Wine on the Linux machine against this tree: `d3d12_existing_heap_test`, `d3d12_compute_test`, `d3d12_graphics_direct_heaps_test`, `xg_xs_test` (88 checks), `vk_bindless_grow_test`, `bindless_sizing_test`, `descriptor_table_test`, `shader_library_test`, `title_write_watch_test` (18), `command_list_test`, `replay_texture_barrier_test`, `d3d12_close_parity_test` (117 cases), `startup_trace_test` (27), `vulkan_title_image_pool_test`. Known red there: three checks of `xmem_test` on physical-page views under Wine, and one stress test skipped under Wine (a heap-lock deadlock in the fault path that is fixed natively and still open under Wine). Translator: the suites for loop bounds, buffer bounds, the descriptor hash (eight shared vectors, interpreter and GPU) and the recovered FidelityFX forms pass; all 2,680 paired compute programs and 29 of 29 FidelityFX programs translate. GPUs tested: NVIDIA RTX 4070 (620.73, Linux/Proton); NVIDIA RTX 4070 Ti (630.20, Windows 11). No AMD or Intel GPU was available: RADV and the Intel paths are untested by us. AI-assisted: yes (Claude Code and Codex agents wrote most of it; every result above comes from boots and test runs on the machines named, not from the agents' say-so). ### How this can land I do not expect this to merge as one pull request. Suggested order, each as its own claimed ID and small PR on current `main`, and I am glad to hand any of them to whoever wants it: 1. `docs/linux_proton.md` and `scripts/linux-boot/` (no code). 2. The `LAYOUT_UNDEFINED` barrier and the bindless flush (each with its test). 3. Image pooling, device-local placement and deferred backing. 4. Directly indexed heap offsets (after #974, since it changes where graphics root arguments live). 5. Translator loop bounds and the FidelityFX forms. 6. The native Windows write-fault and tracker fixes. ### Checklist - [ ] Based on current `main` and merges cleanly: **no**, see above. - [ ] One topic: **no**, an integration branch. - [x] No game data, keys or decryption, including in logs or reports quoted here. `scripts/check_no_game_data.py` passes on the tree; the text above has counts, timings and settings only. - [x] New translator rules are in the contract table of `docs/design.md`, with how they were confirmed. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Poussistar commented 2026-11-24 16:52:10 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Poussistar on 2026-11-24T16:52:10Z.


Rebase needed: on main (3ed8e50b7) git apply fails on 26 files of this diff, starting at docs/README.md:73, then docs/d3d12_vulkan.md:2118, docs/design.md:181, make_game.py:1807, runtime/CMakeLists.txt:106, runtime/cmake/translator_deps.cmake:15, runtime/shims/d3d12_vulkan_device.cpp:5120 ... tools/rdna2spirv.py:12436, tools/shader_library.py:257.

Nothing in it can be checked on this host (Linux, no Wine, no MSVC) until it is rebased, and the runtime tests it touches need Windows anyway, so this is only the conflict report. AI-assisted. No game files.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7138332281 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7138332281). Originally posted by [Poussistar](https://github.com/Poussistar) on 2026-11-24T16:52:10Z. --- Rebase needed: on main (`3ed8e50b7`) `git apply` fails on 26 files of this diff, starting at `docs/README.md:73`, then `docs/d3d12_vulkan.md:2118`, `docs/design.md:181`, `make_game.py:1807`, `runtime/CMakeLists.txt:106`, `runtime/cmake/translator_deps.cmake:15`, `runtime/shims/d3d12_vulkan_device.cpp:5120` ... `tools/rdna2spirv.py:12436`, `tools/shader_library.py:257`. Nothing in it can be checked on this host (Linux, no Wine, no MSVC) until it is rebased, and the runtime tests it touches need Windows anyway, so this is only the conflict report. AI-assisted. No game files.
Moriz82 commented 2026-11-24 17:35:17 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Moriz82 on 2026-11-24T17:35:17Z.


Splitting this up, as asked. This pull request stays open as the tracking branch and is not meant to merge as one piece. Each topic is being cut onto current main as its own small pull request, with its own claim in #14, its own tests, and a text that says what was run. This comment is the index; I edit it as children open (26 so far).

Child PR What Size
RT-DIRECT-HEAP-COMPUTE #1064 A compute dispatch with a directly indexed heap receives the bound heap's offset after its explicit root arguments (a hypothesis: a layout census pairs 7 of 2,959 entries, all agree); GPU test and rollback switch 8 files, +422/−14
SHADER-MUBUF-OFFSET-WRAP #1068 buffer_address formed off + soffset + index * stride in 32 bits, so index −1 passed OOB_SELECT 2 and 3 as base − stride; now 64-bit, with a semantic test that fails on main 4 files, +212/−26
SHADER-COMPACT-SPIRV #1073 --compact-spirv: optional SPIRV-Tools passes on the assembled module before validation, interfaces and bindings preserved; off by default 6 files, +52/−5
RT-INPUT-SCRIPT-LENGTH #1074 LEONIDA_INPUT_SCRIPT: scripts of any length (a 64-byte buffer made longer ones read as unset) and the timed button presses they schedule on the keyboard pad; regression test 4 files, +115/−11
RT-TITLE-TEXTURE-VIEWS #1079 Slots 70/71: an SRV or UAV that names a live placed texture by address and description resolves to that image instead of a null descriptor; GPU test and rollback switch 8 files, +258/−39
RT-BINDLESS-TABLE-DEGRADE #1092 Bindless table: a replacement that cannot allocate no longer refuses the submission (host memory, retry, in-place rewrite, or the last uploaded table); 2D-array/3D/1D arrays sized from device limits; GPU test that refuses allocations 6 files, +629/−58
RT-STARTUP-TRACE #1096 Startup trace: an access-violation event also reports the memory region at the faulting address (state, protection, type, bounds) 2 files, +10
SHADER-BUFFER-BOUNDS #1097 A structured buffer SRV checks the field offset against the record stride (bounds mode 0, as structured UAVs), not only the index; GPU test with a typed control 4 files, +23/−10
TEST-CRT-ARGV-WINE #1098 Startup command-line fixture: under Wine an argv already configured at process attach is accepted when it equals the final one (the fixture failed there before the loader ran) 1 files, +19/−3
RT-STREAM-TRANSFER-BARRIER #1099 Back-to-back buffer copies on one queue are ordered by a transfer memory barrier before each copy (dependency from #354, credited); replay fixture and rollback switch 3 files, +64/−5
RT-PLACED-IMAGE-DEFER #1100 Slot 133: placed render targets, depth targets and UAV textures bind their memory at first use instead of at creation; GPU readback test and rollback switch 6 files, +194/−15
SHADER-LOOP-GUARD #1101 --loop-limit: each translated loop takes its structured exit after a bounded number of header visits per entry (default 65,536, 0 disables); semantic tests with an unreachable exit 10 files, +241/−14
LINUX-PROTON-DOCS-SCRIPTS #1251 scripts/linux-boot: cross-build configure, a launcher that boots the loader under Wine or Proton with the network off, and a systemd --user unit with memory samples and a digest of how the boot ended; docs/linux_proton.md; a test of the scripts' refusals that needs no Wine 8 files, +449
TEST-ATOMIC-SOFFSET-BOUNDS #1275 Test only: a raw buffer_atomic_* addressed through soffset alone, on both sides of the bound, for the 32-bit, float min/max and _x2 lowerings; no test passed a non-zero soffset to an atomic before 1 files, +31
SHADER-TYPED-RESERVED-FORMATS #1276 A buffer_load_format_* whose run-time FORMAT has no decoder (INVALID or reserved) no longer reads the V#'s memory; values unchanged for all 128 codes; CPU read-log test, not GPU-verified 4 files, +29/−5
SHADER-LEGACY-MUL-SUBNORMAL #1277 v_mul_legacy_f32: one magnitude test per operand serves as input flush and zero override, and the result is flushed again only after output scaling; same words in 3,703 swept cases, 22 assembly lines instead of 37 per multiply 3 files, +37/−6
TOOLS-PE-SHADER-CONTAINERS #1278 pe_shader_containers.py: a console program stored as a raw deflate record is found, listed after the plain containers and extracted inflated (strict checks on sizes, stream end and content); hand-built tests, 3 fail on main 3 files, +182/−3
TOOLS-LIBRARY-COMPUTE-BY-HASH #1281 shader_library.py: a compute program used with different state blobs gets an entry per state (only the last was kept), and --compute-hashes FILE unpacks programs by code SHA-256; synthetic library tests, 3 fail on main 3 files, +204/−15
TOOLS-DISASM-WAVE-SIZE #1282 shader_disasm.py tells llvm-mc the wave size, so a wave64 program's lane masks are listed as register pairs; fspx_unpack.py and shader_library.py pass the dispatch state's wave size; hand-written tests, 5 fail on main; corpus not re-disassembled 8 files, +196/−7
TOOLS-DISASM-BOUNDED-LISTING #1283 shader_ir.parse_file reads a listing a line at a time and counts llvm-mc's messages without holding them (peak 0.17 MB instead of 9.2 MB on a 4.5 MB synthetic listing); same result on 20,000 random listings; the shader_disasm.py half is left to #623 2 files, +61/−23
RT-MEMORY-PROBE #1291 LEONIDA_MEM_PROBE=<seconds> (opt-in): live pipelines, shader modules, VkDeviceMemory per type, arena use and process memory on stderr, plus an smaps summary under Wine; unset, nothing is wrapped; stand-in table test in both forms 5 files, +907
RT-PRESENT-PROBE #1293 LEONIDA_PRESENT_PROBE=1 and LEONIDA_CAPTURE_SOURCE=1 (opt-in): where a presented frame was lost (clears, draws, PresentX calls and refusals, blit/compose/blank) and a read-back of the presented texture; unset, no line and no file; test in both forms 7 files, +909/−12
SHADER-FFX-PACKED-DOT #1301 rdna2spirv.py takes the stored op_sel_hi 5 of a v_dot4_i32_i8 with an inline integer S1 from the bytes (llvm-mc prints none) instead of refusing the listing; every other dropped selector stays refused. The rule for an inline source is not measured on hardware; the text names the one oracle kernel that settles it. 3 files, +80/−2
SHADER-WATERFALL-FULL-WORD #1320 wave64_halves.py: the tier B waterfall proof takes only an unmodified whole-word integer equality; a float, 16-bit, SDWA or DPP compare (which the old check accepted, with 64 lanes and two waves of 32 giving different results) is tier C. Metadata only; corpus census not re-run. 3 files, +47/−3
RT-SKIP-COMPUTE-DIAGNOSTIC #1341 LEONIDA_SKIP_COMPUTE=<part>[,...] (opt-in, unset by default): a named compute program is not built and its direct and indirect dispatches are dropped while the rest of the list runs, to isolate a program that hangs the GPU or loses the device; unset, nothing changes. 5 files, +363/−3
RT-TRACE-SUCCESSFUL-OPENS #1363 --trace also records the first 600 successful guest file opens (file_open: path, access mask, caller), on a budget of their own, so a stalled boot shows which files it had reached; the open's last error is kept. Trace off: nothing changes. 5 files, +103/−11

Merged so far: #1074 (input scripts of any length).

The whole diff is mapped (312 paths, every hunk assigned to one topic), so nothing is left behind in this branch at the end. Still being cut, built and tested on main alone: the remaining translator and tool topics, the opt-in diagnostics, pooled and device-local image memory, title buffer windows, DirectStorage pinned reads, and the native Windows write-fault fixes. A topic that turns out to be carried by an open pull request already is dropped and named here.

Held until the pull request they build on merges: the graphics-stage heap offsets (on #974).

Dropped, because main or an open pull request already has it: the enhanced barrier into LAYOUT_UNDEFINED (#1055, #600), the typed-store format switch (#829), the cube-store LLVM_MC argument fix (#837), the short FSPX prologue (#583), the thread stack dump (#576), the f32 DPP lane compares (#957, merged), the full-wave s_flbit_i32_b64 / s_bitreplicate_b64_b32 masks (#593; three lines of mask tracking follow once it merges) and the slot-67 operand-form tests (on main already, or the behaviour of #1043), and the bulk inflate (#1081). The DirectStorage trace census waits for the trace it reads, and the draw-input and descriptor-heap probes for the descriptor tables they probe. Queue slot 31 will be reduced to what #968 does not already cover; the same check is made for every topic before it is cut.

@Poussistar: thank you for the conflict report. Rather than rebasing 300 files in one commit, every child is based on current main and checked there on its own.

AI-assisted (Claude Code and Codex agents); each child states what was built and run, and on which machine.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7139415784 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7139415784). Originally posted by [Moriz82](https://github.com/Moriz82) on 2026-11-24T17:35:17Z. --- **Splitting this up, as asked.** This pull request stays open as the tracking branch and is not meant to merge as one piece. Each topic is being cut onto current `main` as its own small pull request, with its own claim in #14, its own tests, and a text that says what was run. This comment is the index; I edit it as children open (26 so far). | Child | PR | What | Size | |---|---|---|---| | `RT-DIRECT-HEAP-COMPUTE` | #1064 | A compute dispatch with a directly indexed heap receives the bound heap's offset after its explicit root arguments (a hypothesis: a layout census pairs 7 of 2,959 entries, all agree); GPU test and rollback switch | 8 files, +422/−14 | | `SHADER-MUBUF-OFFSET-WRAP` | #1068 | `buffer_address` formed `off + soffset + index * stride` in 32 bits, so index −1 passed `OOB_SELECT` 2 and 3 as base − stride; now 64-bit, with a semantic test that fails on main | 4 files, +212/−26 | | `SHADER-COMPACT-SPIRV` | #1073 | `--compact-spirv`: optional SPIRV-Tools passes on the assembled module before validation, interfaces and bindings preserved; off by default | 6 files, +52/−5 | | `RT-INPUT-SCRIPT-LENGTH` | #1074 | `LEONIDA_INPUT_SCRIPT`: scripts of any length (a 64-byte buffer made longer ones read as unset) and the timed button presses they schedule on the keyboard pad; regression test | 4 files, +115/−11 | | `RT-TITLE-TEXTURE-VIEWS` | #1079 | Slots 70/71: an SRV or UAV that names a live placed texture by address and description resolves to that image instead of a null descriptor; GPU test and rollback switch | 8 files, +258/−39 | | `RT-BINDLESS-TABLE-DEGRADE` | #1092 | Bindless table: a replacement that cannot allocate no longer refuses the submission (host memory, retry, in-place rewrite, or the last uploaded table); 2D-array/3D/1D arrays sized from device limits; GPU test that refuses allocations | 6 files, +629/−58 | | `RT-STARTUP-TRACE` | #1096 | Startup trace: an access-violation event also reports the memory region at the faulting address (state, protection, type, bounds) | 2 files, +10 | | `SHADER-BUFFER-BOUNDS` | #1097 | A structured buffer SRV checks the field offset against the record stride (bounds mode 0, as structured UAVs), not only the index; GPU test with a typed control | 4 files, +23/−10 | | `TEST-CRT-ARGV-WINE` | #1098 | Startup command-line fixture: under Wine an argv already configured at process attach is accepted when it equals the final one (the fixture failed there before the loader ran) | 1 files, +19/−3 | | `RT-STREAM-TRANSFER-BARRIER` | #1099 | Back-to-back buffer copies on one queue are ordered by a transfer memory barrier before each copy (dependency from #354, credited); replay fixture and rollback switch | 3 files, +64/−5 | | `RT-PLACED-IMAGE-DEFER` | #1100 | Slot 133: placed render targets, depth targets and UAV textures bind their memory at first use instead of at creation; GPU readback test and rollback switch | 6 files, +194/−15 | | `SHADER-LOOP-GUARD` | #1101 | `--loop-limit`: each translated loop takes its structured exit after a bounded number of header visits per entry (default 65,536, 0 disables); semantic tests with an unreachable exit | 10 files, +241/−14 | | `LINUX-PROTON-DOCS-SCRIPTS` | #1251 | `scripts/linux-boot`: cross-build configure, a launcher that boots the loader under Wine or Proton with the network off, and a `systemd --user` unit with memory samples and a digest of how the boot ended; `docs/linux_proton.md`; a test of the scripts' refusals that needs no Wine | 8 files, +449 | | `TEST-ATOMIC-SOFFSET-BOUNDS` | #1275 | Test only: a raw `buffer_atomic_*` addressed through `soffset` alone, on both sides of the bound, for the 32-bit, float min/max and `_x2` lowerings; no test passed a non-zero `soffset` to an atomic before | 1 files, +31 | | `SHADER-TYPED-RESERVED-FORMATS` | #1276 | A `buffer_load_format_*` whose run-time FORMAT has no decoder (`INVALID` or reserved) no longer reads the V#'s memory; values unchanged for all 128 codes; CPU read-log test, not GPU-verified | 4 files, +29/−5 | | `SHADER-LEGACY-MUL-SUBNORMAL` | #1277 | `v_mul_legacy_f32`: one magnitude test per operand serves as input flush and zero override, and the result is flushed again only after output scaling; same words in 3,703 swept cases, 22 assembly lines instead of 37 per multiply | 3 files, +37/−6 | | `TOOLS-PE-SHADER-CONTAINERS` | #1278 | `pe_shader_containers.py`: a console program stored as a raw deflate record is found, listed after the plain containers and extracted inflated (strict checks on sizes, stream end and content); hand-built tests, 3 fail on main | 3 files, +182/−3 | | `TOOLS-LIBRARY-COMPUTE-BY-HASH` | #1281 | `shader_library.py`: a compute program used with different state blobs gets an entry per state (only the last was kept), and `--compute-hashes FILE` unpacks programs by code SHA-256; synthetic library tests, 3 fail on main | 3 files, +204/−15 | | `TOOLS-DISASM-WAVE-SIZE` | #1282 | `shader_disasm.py` tells llvm-mc the wave size, so a wave64 program's lane masks are listed as register pairs; `fspx_unpack.py` and `shader_library.py` pass the dispatch state's wave size; hand-written tests, 5 fail on main; corpus not re-disassembled | 8 files, +196/−7 | | `TOOLS-DISASM-BOUNDED-LISTING` | #1283 | `shader_ir.parse_file` reads a listing a line at a time and counts llvm-mc's messages without holding them (peak 0.17 MB instead of 9.2 MB on a 4.5 MB synthetic listing); same result on 20,000 random listings; the `shader_disasm.py` half is left to #623 | 2 files, +61/−23 | | `RT-MEMORY-PROBE` | #1291 | `LEONIDA_MEM_PROBE=<seconds>` (opt-in): live pipelines, shader modules, `VkDeviceMemory` per type, arena use and process memory on stderr, plus an smaps summary under Wine; unset, nothing is wrapped; stand-in table test in both forms | 5 files, +907 | | `RT-PRESENT-PROBE` | #1293 | `LEONIDA_PRESENT_PROBE=1` and `LEONIDA_CAPTURE_SOURCE=1` (opt-in): where a presented frame was lost (clears, draws, `PresentX` calls and refusals, blit/compose/blank) and a read-back of the presented texture; unset, no line and no file; test in both forms | 7 files, +909/−12 | | `SHADER-FFX-PACKED-DOT` | #1301 | `rdna2spirv.py` takes the stored `op_sel_hi` 5 of a `v_dot4_i32_i8` with an inline integer S1 from the bytes (llvm-mc prints none) instead of refusing the listing; every other dropped selector stays refused. The rule for an inline source is not measured on hardware; the text names the one oracle kernel that settles it. | 3 files, +80/−2 | | `SHADER-WATERFALL-FULL-WORD` | #1320 | `wave64_halves.py`: the tier B waterfall proof takes only an unmodified whole-word integer equality; a float, 16-bit, SDWA or DPP compare (which the old check accepted, with 64 lanes and two waves of 32 giving different results) is tier C. Metadata only; corpus census not re-run. | 3 files, +47/−3 | | `RT-SKIP-COMPUTE-DIAGNOSTIC` | #1341 | `LEONIDA_SKIP_COMPUTE=<part>[,...]` (opt-in, unset by default): a named compute program is not built and its direct and indirect dispatches are dropped while the rest of the list runs, to isolate a program that hangs the GPU or loses the device; unset, nothing changes. | 5 files, +363/−3 | | `RT-TRACE-SUCCESSFUL-OPENS` | #1363 | `--trace` also records the first 600 successful guest file opens (`file_open`: path, access mask, caller), on a budget of their own, so a stalled boot shows which files it had reached; the open's last error is kept. Trace off: nothing changes. | 5 files, +103/−11 | Merged so far: #1074 (input scripts of any length). The whole diff is mapped (312 paths, every hunk assigned to one topic), so nothing is left behind in this branch at the end. Still being cut, built and tested on `main` alone: the remaining translator and tool topics, the opt-in diagnostics, pooled and device-local image memory, title buffer windows, DirectStorage pinned reads, and the native Windows write-fault fixes. A topic that turns out to be carried by an open pull request already is dropped and named here. Held until the pull request they build on merges: the graphics-stage heap offsets (on #974). Dropped, because `main` or an open pull request already has it: the enhanced barrier into `LAYOUT_UNDEFINED` (#1055, #600), the typed-store format switch (#829), the cube-store `LLVM_MC` argument fix (#837), the short FSPX prologue (#583), the thread stack dump (#576), the f32 DPP lane compares (#957, merged), the full-wave `s_flbit_i32_b64` / `s_bitreplicate_b64_b32` masks (#593; three lines of mask tracking follow once it merges) and the slot-67 operand-form tests (on `main` already, or the behaviour of #1043), and the bulk inflate (#1081). The DirectStorage trace census waits for the trace it reads, and the draw-input and descriptor-heap probes for the descriptor tables they probe. Queue slot 31 will be reduced to what #968 does not already cover; the same check is made for every topic before it is cut. @Poussistar: thank you for the conflict report. Rather than rebasing 300 files in one commit, every child is based on current `main` and checked there on its own. AI-assisted (Claude Code and Codex agents); each child states what was built and run, and on which machine. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
oscarlosu-lab commented 2026-11-24 17:47:58 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by oscarlosu-lab on 2026-11-24T17:47:58Z.


Tested ac7c3449d on an additional native Windows 11 machine using scripts/windows-boot/boot.ps1 (MSVC 19.52 x64 RelWithDebInfo, -DLEONIDA_SDL3_FETCH=ON, local history.bcph built via tools/build_dstorage_history.py, 28352 translated shaders):

  • Machine: Windows 11 (10.0.26300.0), NVIDIA GeForce RTX 3060 12 GB (driver 621.35, Vulkan 1.4.357), 32 GB RAM
  • Commit: ac7c3449d
  • Overrides vs boot.ps1 defaults: -Seconds 360 -InputScript "a@45,a@60,a@75,a@90,a@120,a@150,a@180"
  • States: t=0s game=0 session=0 | t=5s game=1 session=0 | t=10s game=2 session=0 | t=40s game=2 session=1 | t=75s game=3 session=3 | t=125s game=3 session=d (story load reached)
  • Presents: PresentX ok 8909, failed 0
  • Captures: 40 captured, 40 non-black; last mean rgb 103.97 64.45 107.77; brightest 188.84 149.63 149.90
  • Device faults: none (0 device loss; LEONIDA_DEVICE_FAULT=1 logged normal submitted-dispatch breadcrumbs)
  • First D3D12 refusal/unsupported counts: ID3D12Device2::CreatePipelineState: failed 2, unsupported 224 (0 PresentX failures)
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7139720653 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7139720653). Originally posted by [oscarlosu-lab](https://github.com/oscarlosu-lab) on 2026-11-24T17:47:58Z. --- Tested `ac7c3449d` on an additional native Windows 11 machine using `scripts/windows-boot/boot.ps1` (MSVC 19.52 x64 `RelWithDebInfo`, `-DLEONIDA_SDL3_FETCH=ON`, local `history.bcph` built via `tools/build_dstorage_history.py`, `28352` translated shaders): - **Machine:** Windows 11 (`10.0.26300.0`), NVIDIA GeForce RTX 3060 12 GB (driver `621.35`, Vulkan `1.4.357`), 32 GB RAM - **Commit:** `ac7c3449d` - **Overrides vs `boot.ps1` defaults:** `-Seconds 360 -InputScript "a@45,a@60,a@75,a@90,a@120,a@150,a@180"` - **States:** `t=0s game=0 session=0 | t=5s game=1 session=0 | t=10s game=2 session=0 | t=40s game=2 session=1 | t=75s game=3 session=3 | t=125s game=3 session=d` (story load reached) - **Presents:** `PresentX ok 8909, failed 0` - **Captures:** `40 captured, 40 non-black; last mean rgb 103.97 64.45 107.77; brightest 188.84 149.63 149.90` - **Device faults:** none (0 device loss; `LEONIDA_DEVICE_FAULT=1` logged normal submitted-dispatch breadcrumbs) - **First D3D12 refusal/unsupported counts:** `ID3D12Device2::CreatePipelineState: failed 2, unsupported 224` (0 `PresentX` failures)
oscarlosu-lab commented 2026-11-24 18:14:54 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by oscarlosu-lab on 2026-11-24T18:14:54Z.


Follow-up on native Windows 11 + RTX 3060 (driver 621.35, 32 GB RAM) with #984 (ac7c3449d) + #968 (f2268abea, CopyPageMappingsBatchX):

  • xmem_test.exe: OK (316 checks)
  • queue slot 31 (CopyPageMappingsBatchX): 46 calls (pool of 63632 pages), 0 refusal / not mapped errors
  • States: t=0s game=0 session=0 | t=5s game=1 session=0 | t=10s game=2 session=0 | t=40s game=2 session=1 | t=80s game=3 session=3 | t=95s game=3 session=d (remained at session=d through t=415s in a 421 s run)
  • Presents / captures: PresentX ok 9000, failed 0, 40/40 non-black (last mean rgb 103.00 63.15 106.83, brightest 168.77 144.08 126.01), 0 device loss.
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7140371521 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7140371521). Originally posted by [oscarlosu-lab](https://github.com/oscarlosu-lab) on 2026-11-24T18:14:54Z. --- Follow-up on native Windows 11 + RTX 3060 (driver `621.35`, 32 GB RAM) with **#984 (`ac7c3449d`) + #968 (`f2268abea`, `CopyPageMappingsBatchX`)**: - `xmem_test.exe`: `OK (316 checks)` - `queue slot 31 (CopyPageMappingsBatchX)`: **46** calls (`pool of 63632 pages`), **0** refusal / `not mapped` errors - **States:** `t=0s game=0 session=0 | t=5s game=1 session=0 | t=10s game=2 session=0 | t=40s game=2 session=1 | t=80s game=3 session=3 | t=95s game=3 session=d` (remained at `session=d` through `t=415s` in a `421 s` run) - **Presents / captures:** `PresentX ok 9000, failed 0`, `40/40` non-black (`last mean rgb 103.00 63.15 106.83`, `brightest 168.77 144.08 126.01`), `0` device loss.
Plaaasma commented 2026-11-24 18:15:22 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Plaaasma on 2026-11-24T18:15:22Z.


Native Windows side of this work, from the second contributor (Plaaasma). AI-assisted: written and run with Claude Code agents, checked by me.

Machine: Windows 11, Intel i9-13900K, 64 GB RAM, NVIDIA RTX 4070 Ti (12 GB, driver 630.20), MSVC 2022, Vulkan backend, no Wine.

What runs natively: init reaches the running state in about 70 s, the landing prompt and first-run setup pages render and take pad input, and the story load starts at about 110 s with its slideshow art (BCPack via the locally built predictor). With the streamed-geometry copies enabled, every streamed buffer view was backed and the load ran to about 220 s. After that a compute program writes through an address that isn't mapped yet. That's the open wall, shared with the Linux/Proton machine.

What I wrote or found, now part of this branch:

  • Write faults on shadowed title pages: the retry-or-reopen decision now happens under the tracker lock. Two threads faulting on one page could otherwise refuse a write and crash the title mid-load.
  • One write tracker per run of shared pages, instead of one per copy, cut the per-submission refresh on my machine from about 59 ms to 0.14 ms.
  • Write-watched title memory (MEM_WRITE_WATCH + GetWriteWatch) cuts write faults 2–2.5×, with no throughput cost in a 3+3 boot comparison. A second review found a stale-copy race and a process-heap deadlock, and both are fixed with tests. On by default on Windows, opt-in under Wine.
  • The xmem fault lock no longer waits on the process heap while it is held. The new test hung 3 of 3 runs before the fix and passes after; under Wine it still hangs, so it is skipped there for now.
  • An enhanced barrier into LAYOUT_UNDEFINED no longer poisons a command list; the layer's behaviour matches WARP.
  • The bindless image arrays are sized from device limits, and a failed table growth no longer refuses a whole submission.
  • The heap-offset user-data dword is now written for graphics root signatures that use the directly indexed heaps.
  • Test fixes: graphics test shaders moved to the console root layout (they rendered black), the 64-wide subgroup case skips on a 32-wide device, and a test caught up with a constructor change. ctest -R d3d12_ passes 126 of 127 natively, and the remaining failure is the subgroup case fixed here.

Happy to run native Windows checks on any of the split-out PRs.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7140383042 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7140383042). Originally posted by [Plaaasma](https://github.com/Plaaasma) on 2026-11-24T18:15:22Z. --- Native Windows side of this work, from the second contributor (Plaaasma). AI-assisted: written and run with Claude Code agents, checked by me. **Machine:** Windows 11, Intel i9-13900K, 64 GB RAM, NVIDIA RTX 4070 Ti (12 GB, driver 630.20), MSVC 2022, Vulkan backend, no Wine. **What runs natively:** init reaches the running state in about 70 s, the landing prompt and first-run setup pages render and take pad input, and the story load starts at about 110 s with its slideshow art (BCPack via the locally built predictor). With the streamed-geometry copies enabled, every streamed buffer view was backed and the load ran to about 220 s. After that a compute program writes through an address that isn't mapped yet. That's the open wall, shared with the Linux/Proton machine. **What I wrote or found, now part of this branch:** - Write faults on shadowed title pages: the retry-or-reopen decision now happens under the tracker lock. Two threads faulting on one page could otherwise refuse a write and crash the title mid-load. - One write tracker per run of shared pages, instead of one per copy, cut the per-submission refresh on my machine from about 59 ms to 0.14 ms. - Write-watched title memory (`MEM_WRITE_WATCH` + `GetWriteWatch`) cuts write faults 2–2.5×, with no throughput cost in a 3+3 boot comparison. A second review found a stale-copy race and a process-heap deadlock, and both are fixed with tests. On by default on Windows, opt-in under Wine. - The xmem fault lock no longer waits on the process heap while it is held. The new test hung 3 of 3 runs before the fix and passes after; under Wine it still hangs, so it is skipped there for now. - An enhanced barrier into `LAYOUT_UNDEFINED` no longer poisons a command list; the layer's behaviour matches WARP. - The bindless image arrays are sized from device limits, and a failed table growth no longer refuses a whole submission. - The heap-offset user-data dword is now written for graphics root signatures that use the directly indexed heaps. - Test fixes: graphics test shaders moved to the console root layout (they rendered black), the 64-wide subgroup case skips on a 32-wide device, and a test caught up with a constructor change. `ctest -R d3d12_` passes 126 of 127 natively, and the remaining failure is the subgroup case fixed here. Happy to run native Windows checks on any of the split-out PRs.
Tyrannys commented 2026-11-24 18:17:09 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Tyrannys on 2026-11-24T18:17:09Z.


Native Windows result with #968 added, and a crash past the load that #984 alone does not reach. Counts and shapes only, no game addresses.

Setup: Windows 11, RTX 4070 SUPER (64 GB RAM), own 1.0.2.1 copy. ac7c3449d + #968 cherry-picked (conflicts resolved by keeping both; one fix: copy_page_mappings reads g_mapped's value directly, since this branch stores the page number there). RelWithDebInfo, SDL3, local history.bcph, LEONIDA_SKIP_INT3=1, input script [email protected]@500 every 10 s.

Works: package splash, launch movie, first-run pages, loading slideshow with its artwork. With #968 the story load finishes; without it (#968 answered E_NOTIMPL) the title stays on the landing screen for 9 min, as your notes predict.

Then a crash, every run: an access violation in title code at a random time after the load: 36, 197, 242, 287 and 477 s in five runs. Each time the last new runtime event before it is the title's first ExecuteIndirect (list slot 61, the DISPATCH/105 signature), i.e. world start. The faults look like corrupted title objects, not a bad pointer from the layer: a vtable pointer into unrelated data, an object field holding two floats (0x44000000, 0x41800000), reads at -1 and at small offsets from an unrelated base. A different object each run.

Ruled out, one run each:

  • slot 31 source pages that are not mapped: 0 misses in a counting build (every source page was in g_mapped);
  • slot 31 timing: waiting for the queue's earlier work (Signal + CPU wait) before each remap still crashes (36 s and 197 s);
  • skipped title asserts: no int3 reached in these runs;
  • the world-start compute programs: LEONIDA_SKIP_COMPUTE on the three programs built right before the crash, still crashes (242 s);
  • a rejected command list: no rejected a call line in any run.

So something writes into the title's memory after the load, and it is not one of the obvious paths. The page-watch / shadow copies (kernel_writes, the slot-133 shadows: ~360 MiB in ~3,700 copies, ~200 trackers at the end of the load) are the writers into title memory I have not been able to rule out; with #968 remapping pages under them for the first time, that is where I would look first. Happy to run any build or switch you want on this machine.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7140426327 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7140426327). Originally posted by [Tyrannys](https://github.com/Tyrannys) on 2026-11-24T18:17:09Z. --- Native Windows result with #968 added, and a crash past the load that #984 alone does not reach. Counts and shapes only, no game addresses. **Setup:** Windows 11, RTX 4070 SUPER (64 GB RAM), own 1.0.2.1 copy. `ac7c3449d` + #968 cherry-picked (conflicts resolved by keeping both; one fix: `copy_page_mappings` reads `g_mapped`'s value directly, since this branch stores the page number there). RelWithDebInfo, SDL3, local `history.bcph`, `LEONIDA_SKIP_INT3=1`, input script `[email protected]@500` every 10 s. **Works:** package splash, launch movie, first-run pages, loading slideshow with its artwork. With #968 the story load finishes; without it (#968 answered E_NOTIMPL) the title stays on the landing screen for 9 min, as your notes predict. **Then a crash, every run:** an access violation in title code at a random time after the load: 36, 197, 242, 287 and 477 s in five runs. Each time the last new runtime event before it is the title's first `ExecuteIndirect` (list slot 61, the DISPATCH/105 signature), i.e. world start. The faults look like corrupted title objects, not a bad pointer from the layer: a vtable pointer into unrelated data, an object field holding two floats (`0x44000000`, `0x41800000`), reads at `-1` and at small offsets from an unrelated base. A different object each run. **Ruled out, one run each:** - slot 31 source pages that are not mapped: 0 misses in a counting build (every source page was in `g_mapped`); - slot 31 timing: waiting for the queue's earlier work (Signal + CPU wait) before each remap still crashes (36 s and 197 s); - skipped title asserts: no `int3` reached in these runs; - the world-start compute programs: `LEONIDA_SKIP_COMPUTE` on the three programs built right before the crash, still crashes (242 s); - a rejected command list: no `rejected a call` line in any run. So something writes into the title's memory after the load, and it is not one of the obvious paths. The page-watch / shadow copies (`kernel_writes`, the slot-133 shadows: ~360 MiB in ~3,700 copies, ~200 trackers at the end of the load) are the writers into title memory I have not been able to rule out; with #968 remapping pages under them for the first time, that is where I would look first. Happy to run any build or switch you want on this machine. AI-assisted (Claude Code).
CLHelper commented 2026-11-24 18:23:49 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by CLHelper on 2026-11-24T18:23:49Z.


Tested on a smaller Windows machine: Windows 11, RTX 4060 Laptop (8 GB VRAM, NVIDIA 576.80), MSVC 19.44 / Ninja / RelWithDebInfo, own 1.0.2.1 copy, head ac7c3449d built unchanged except for #968's queue slot 31 (CopyPageMappingsBatchX, which the description says this branch needs) ported onto it by hand. Shaders translated by this branch's make_game.py --stages shaders (every shard: all translated, all pass spirv-val; the 12 executable programs too); BCPack predictor file from tools/build_dstorage_history.py with the native trainer (57 pools, 5,435 BPTC chunks). Your Windows settings: LEONIDA_DEVICE_TYPE=6 (ConsoleMode answered 0x60), LEONIDA_ARENA_MB=2048, LEONIDA_DEVICE_FAULT=1, keyboard pad with an input script pressing A every 15 s from 30 s, pipeline cache with startup checkpoints. One run of 480 s allowed.

What it reaches here (seen in captures of the window, none posted):

  • The launch art at ~110 s and the first-run pages with their text and button prompts, up to "Finish setup" at ~240 s. A big step on this machine: other stacks on it stop at a nearly empty first-run row.
  • Peeks: 0x7446510 2 then 3 from 60 s; 0x98f828c low dword 0, 1, 3, then 0xd from 120 s to the end.
  • Queue slot 31 with the port: every call handled (32 calls by the last report, 0 ranges refused).

Where it stops: at 293 s the device is removed. The last batch is refused (queue replay refused a batch at vulkan_backend.h:2900), present failed (VkResult -4), PresentX ... hr 0x887a0005, and the title takes its device-removed exit (int3 at game_scarlett_master.exe+0x2474606, rsi = 0x887a0005). The window shows a page with only SCROLL/BACK prompts and a spinner by then. LEONIDA_DEVICE_FAULT gives no vendor data and an empty description, 0 checkpoints on every queue; the last submitted dispatches in its log are library/lib_cs_01726 (5x5x33) on the direct queue, which is only what ran last, not a cause. 10,766 PresentX before that. I have not looked further (VRAM headroom at 8 GB is my first suspect, not measured).

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7140586311 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7140586311). Originally posted by [CLHelper](https://github.com/CLHelper) on 2026-11-24T18:23:49Z. --- Tested on a smaller Windows machine: Windows 11, RTX 4060 Laptop (8 GB VRAM, NVIDIA 576.80), MSVC 19.44 / Ninja / RelWithDebInfo, own 1.0.2.1 copy, head `ac7c3449d` built unchanged except for #968's queue slot 31 (`CopyPageMappingsBatchX`, which the description says this branch needs) ported onto it by hand. Shaders translated by this branch's `make_game.py --stages shaders` (every shard: all translated, all pass spirv-val; the 12 executable programs too); BCPack predictor file from `tools/build_dstorage_history.py` with the native trainer (57 pools, 5,435 BPTC chunks). Your Windows settings: `LEONIDA_DEVICE_TYPE=6` (ConsoleMode answered `0x60`), `LEONIDA_ARENA_MB=2048`, `LEONIDA_DEVICE_FAULT=1`, keyboard pad with an input script pressing A every 15 s from 30 s, pipeline cache with startup checkpoints. One run of 480 s allowed. What it reaches here (seen in captures of the window, none posted): - The launch art at ~110 s and the first-run pages with their text and button prompts, up to "Finish setup" at ~240 s. A big step on this machine: other stacks on it stop at a nearly empty first-run row. - Peeks: `0x7446510` 2 then 3 from 60 s; `0x98f828c` low dword 0, 1, 3, then `0xd` from 120 s to the end. - Queue slot 31 with the port: every call handled (32 calls by the last report, 0 ranges refused). Where it stops: at 293 s the device is removed. The last batch is refused (`queue replay refused a batch at vulkan_backend.h:2900`), `present failed (VkResult -4)`, `PresentX ... hr 0x887a0005`, and the title takes its device-removed exit (`int3` at `game_scarlett_master.exe+0x2474606`, `rsi = 0x887a0005`). The window shows a page with only SCROLL/BACK prompts and a spinner by then. `LEONIDA_DEVICE_FAULT` gives no vendor data and an empty description, 0 checkpoints on every queue; the last submitted dispatches in its log are `library/lib_cs_01726` (5x5x33) on the direct queue, which is only what ran last, not a cause. 10,766 `PresentX` before that. I have not looked further (VRAM headroom at 8 GB is my first suspect, not measured). AI-assisted.
CLHelper commented 2026-11-24 18:33:52 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by CLHelper on 2026-11-24T18:33:52Z.


Follow-up, second run on the same machine and build (warm pipeline cache, same settings, 420 s allowed), with GPU memory sampled every 2 s:

  • No device loss this time: the run went to the time limit (412 s), so the 293 s loss of the first run did not reproduce. GPU memory peaked at 5.7 of 8 GB (nvidia-smi), gta6rt's private memory about 11.6 GB; VRAM headroom was not the cause.
  • From ~120 s to the end the peeks stay at 0x7446510=3, 0x98f828c low dword 0xd, the GPU is mostly idle, and the window shows first-run pages whose button prompts draw (SETTINGS / CONTINUE / BACK) but whose content area stays empty with a spinner. The A presses (every 15 s) keep arriving.
  • The branch's own counters in that phase: slot-70 views awaiting readable memory: 86, title textures (refresh): ... 64 over memory not readable yet, title textures null views by reason: no address 43. So it looks like the page content waits for streamed memory that never becomes readable on this machine; I have not traced which requests those are.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7140820759 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7140820759). Originally posted by [CLHelper](https://github.com/CLHelper) on 2026-11-24T18:33:52Z. --- Follow-up, second run on the same machine and build (warm pipeline cache, same settings, 420 s allowed), with GPU memory sampled every 2 s: - No device loss this time: the run went to the time limit (412 s), so the 293 s loss of the first run did not reproduce. GPU memory peaked at 5.7 of 8 GB (`nvidia-smi`), gta6rt's private memory about 11.6 GB; VRAM headroom was not the cause. - From ~120 s to the end the peeks stay at `0x7446510=3`, `0x98f828c` low dword `0xd`, the GPU is mostly idle, and the window shows first-run pages whose button prompts draw (SETTINGS / CONTINUE / BACK) but whose content area stays empty with a spinner. The A presses (every 15 s) keep arriving. - The branch's own counters in that phase: `slot-70 views awaiting readable memory: 86`, `title textures (refresh): ... 64 over memory not readable yet`, `title textures null views by reason: no address 43`. So it looks like the page content waits for streamed memory that never becomes readable on this machine; I have not traced which requests those are. AI-assisted.
hubeton commented 2026-11-24 18:51:41 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by hubeton on 2026-11-24T18:51:41Z.


Native Windows retest on an RTX 3060 Ti (8 GB, NVIDIA 621.24), Windows 11 build 26300. Both runs used Xbox 1.0.2.1, the Vulkan backend, the same 29,276 translated shaders and local BCPack profile, and fresh overlays. Built with clang-cl in RelWithDebInfo.
Test system: Intel Core i9-13900K (24 cores, 32 threads), 64 GB RAM, RTX 3060 Ti 8 GB, NVIDIA driver 621.24, Windows 11 build 26300.9974.

  • #984 at 273b3bdf9 rendered the first-run pages and reached 5,381 successful PresentX calls. The process exited after 153 s with 0x80000003.
  • #984 + #968 at f2268abe, locally adapted to #984's xmem page table, passed xmem_test and xs_proxy_mock_test. The game reached 355 calls to queue slot 31 and 6,204 successful PresentX calls. The last capture showed a loading spinner. At about 243 s, vkWaitSemaphores reported VK_ERROR_DEVICE_LOST and the process exited with 0xc0000005 in the FidelityFX upscaler module. No world frame was verified.

One run per configuration, with a shared pipeline cache. AI-assisted testing and report.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7141254616 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7141254616). Originally posted by [hubeton](https://github.com/hubeton) on 2026-11-24T18:51:41Z. --- Native Windows retest on an RTX 3060 Ti (8 GB, NVIDIA 621.24), Windows 11 build 26300. Both runs used Xbox 1.0.2.1, the Vulkan backend, the same 29,276 translated shaders and local BCPack profile, and fresh overlays. Built with clang-cl in RelWithDebInfo. Test system: Intel Core i9-13900K (24 cores, 32 threads), 64 GB RAM, RTX 3060 Ti 8 GB, NVIDIA driver 621.24, Windows 11 build 26300.9974. - **#984 at `273b3bdf9`** rendered the first-run pages and reached 5,381 successful `PresentX` calls. The process exited after 153 s with `0x80000003`. - **#984 + #968 at `f2268abe`**, locally adapted to #984's xmem page table, passed `xmem_test` and `xs_proxy_mock_test`. The game reached 355 calls to queue slot 31 and 6,204 successful `PresentX` calls. The last capture showed a loading spinner. At about 243 s, `vkWaitSemaphores` reported `VK_ERROR_DEVICE_LOST` and the process exited with `0xc0000005` in the FidelityFX upscaler module. No world frame was verified. One run per configuration, with a shared pipeline cache. AI-assisted testing and report.
moffington commented 2026-11-24 18:53:29 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by moffington on 2026-11-24T18:53:29Z.


Independent Linux reproduction on 273b3bdf9: Omarchy, Ryzen 5 5600X3D, RTX 3060 12 GB, NVIDIA 615.78.08, 32 GB RAM, Proton Experimental (Wine 11.0).

Reproduced the package splash, launch movie, interactive first-run menus and story load through completion.

  • 7,600 successful presents.
  • 18,519+ streamed images registered, zero reported fill failures.
  • World transition at ~574 s, followed by NVIDIA Xid 109 (CTX SWITCH TIMEOUT).
  • 299 console-only queue slot 31 calls.
  • Peak VRAM: 4,338 MiB.
  • Minimum available system RAM: 6,500 MiB.

No first world frame. The stopping point matches the documented Linux failure on a different NVIDIA architecture and driver version.

Seven of eight synthetic smoke-test suites passed cleanly; XMem had six Wine placeholder metadata failures.

AI-assisted. Counts and diagnostics only; no game data shared.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7141296631 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7141296631). Originally posted by [moffington](https://github.com/moffington) on 2026-11-24T18:53:29Z. --- Independent Linux reproduction on `273b3bdf9`: Omarchy, Ryzen 5 5600X3D, RTX 3060 12 GB, NVIDIA 615.78.08, 32 GB RAM, Proton Experimental (Wine 11.0). Reproduced the package splash, launch movie, interactive first-run menus and story load through completion. - 7,600 successful presents. - 18,519+ streamed images registered, zero reported fill failures. - World transition at ~574 s, followed by NVIDIA Xid 109 (CTX SWITCH TIMEOUT). - 299 console-only queue slot 31 calls. - Peak VRAM: 4,338 MiB. - Minimum available system RAM: 6,500 MiB. No first world frame. The stopping point matches the documented Linux failure on a different NVIDIA architecture and driver version. Seven of eight synthetic smoke-test suites passed cleanly; XMem had six Wine placeholder metadata failures. AI-assisted. Counts and diagnostics only; no game data shared.
oscarlosu-lab commented 2026-11-24 19:04:19 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by oscarlosu-lab on 2026-11-24T19:04:19Z.


Follow-up on native Windows 11 + RTX 3060 12 GB (driver 621.35, 32 GB RAM) with #984 (ac7c3449d) + #968 (f2268abea) (+ #513) in a 601 s run ([email protected]@580 every 10 s, 53 presses logged, LEONIDA_SKIP_INT3=1, LEONIDA_DEVICE_TYPE=6, LEONIDA_ARENA_MB=2048):

  • States: t=0s (0,0) -> t=5s (1,0) -> t=10s (2,0) -> t=40s (2,1) -> t=75s (3,3) -> t=85s (3,d) — stayed at session=0xd through t=595s (matches CLHelper's observation on 32 GB Windows).
  • Presents / captures: PresentX ok 13370, failed 0, 0 device loss, 40/40 non-black (last mean rgb 100.51 64.55 103.71, brightest 163.26 141.70 130.99).
  • Streaming / Slot 31 counters: Slot31 called 50 times (0 refusals), ExecuteIndirect: 0, slot-70 views awaiting readable memory: 86, 64 over memory not readable yet, registry 1532 images (529 made, 1003 slot 133 of 1223 registered, 17 mapped, 526 filled).
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7141554673 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7141554673). Originally posted by [oscarlosu-lab](https://github.com/oscarlosu-lab) on 2026-11-24T19:04:19Z. --- Follow-up on native Windows 11 + RTX 3060 12 GB (driver `621.35`, 32 GB RAM) with **#984 (`ac7c3449d`) + #968 (`f2268abea`)** (+ #513) in a `601 s` run (`[email protected]@580` every 10 s, `53 presses logged`, `LEONIDA_SKIP_INT3=1`, `LEONIDA_DEVICE_TYPE=6`, `LEONIDA_ARENA_MB=2048`): - **States:** `t=0s (0,0) -> t=5s (1,0) -> t=10s (2,0) -> t=40s (2,1) -> t=75s (3,3) -> t=85s (3,d)` — stayed at `session=0xd` through `t=595s` (matches CLHelper's observation on 32 GB Windows). - **Presents / captures:** `PresentX ok 13370, failed 0`, `0` device loss, `40/40` non-black (`last mean rgb 100.51 64.55 103.71`, `brightest 163.26 141.70 130.99`). - **Streaming / Slot 31 counters:** `Slot31` called `50` times (`0` refusals), `ExecuteIndirect: 0`, `slot-70 views awaiting readable memory: 86`, `64 over memory not readable yet`, `registry 1532 images (529 made, 1003 slot 133 of 1223 registered, 17 mapped, 526 filled)`.
oscarlosu-lab commented 2026-11-24 19:31:25 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by oscarlosu-lab on 2026-11-24T19:31:25Z.


Follow-up on the unreadable slot-70 views reported above when testing #984 + #968 on Windows 11 (RTX 3060 12 GB):

  • Root cause & fix posted in #968: https://github.com/ubiquitarianism/leonida/pull/968#issuecomment-7142206199
  • Mirroring copy_page_mappings onto the paired CPU alias (title_gpu_views::to_cpu) reduces slot-70 views awaiting readable memory from 86 → 40 and over memory not readable yet from 64 → 26 (2,309 fills / 6,618.6 MiB, 0 failed, xmem_test 325/325 OK).
  • This is a partial improvement: 26 unreadable views remain and the title still stays in session=d within 420 s (no ExecuteIndirect yet).
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7142219300 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7142219300). Originally posted by [oscarlosu-lab](https://github.com/oscarlosu-lab) on 2026-11-24T19:31:25Z. --- Follow-up on the unreadable slot-70 views reported above when testing #984 + #968 on Windows 11 (RTX 3060 12 GB): - Root cause & fix posted in #968: https://github.com/ubiquitarianism/leonida/pull/968#issuecomment-7142206199 - Mirroring `copy_page_mappings` onto the paired CPU alias (`title_gpu_views::to_cpu`) reduces `slot-70 views awaiting readable memory` from **86 → 40** and `over memory not readable yet` from **64 → 26** (**2,309 fills / 6,618.6 MiB, 0 failed**, `xmem_test` **325/325 OK**). - This is a partial improvement: `26` unreadable views remain and the title still stays in `session=d` within `420 s` (no `ExecuteIndirect` yet).
oscarlosu-lab commented 2026-11-24 20:00:52 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by oscarlosu-lab on 2026-11-24T20:00:52Z.


@Tyrannys Quick question on your 64 GB run in #984: how long does it take to leave session=d, and what do slot-70 views awaiting readable memory and over memory not readable yet show right around when it leaves 0xd? (Trying to tell whether 64 GB lets the title finish mapping/streaming all of those views, or whether it advances even with non-zero counts.)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7142919235 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7142919235). Originally posted by [oscarlosu-lab](https://github.com/oscarlosu-lab) on 2026-11-24T20:00:52Z. --- @Tyrannys Quick question on your 64 GB run in #984: how long does it take to leave `session=d`, and what do `slot-70 views awaiting readable memory` and `over memory not readable yet` show right around when it leaves `0xd`? (Trying to tell whether 64 GB lets the title finish mapping/streaming all of those views, or whether it advances even with non-zero counts.)
ImLele69 commented 2026-11-24 21:53:47 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by ImLele69 on 2026-11-24T21:53:47Z.


Linux result on Turing (first one here on a 32-lane card older than Ampere), #984 (273b3bdf9) + #968 (f2268abea), shaders re-translated with this branch's translator (--wave64-emulate).

Machine: Fedora 44, kernel 7.3.4, RTX 2070 SUPER 8 GB (Turing), NVIDIA 620.70.06, 16 GB RAM with 15.5 GB zram (no swap file), clang-cl 20 + xwin, Release.
Settings: this branch's boot.sh defaults (LEONIDA_ARENA_MB=2048, NVIDIA disk cache 20 GB, unshare -rn), local BCPack predictor from tools/build_dstorage_history.py, LEONIDA_KEYBOARD_PAD=always, LEONIDA_INPUT_SCRIPT = A every 15 s from 60 s. Cold NVIDIA cache.

Run, 660 s limit (Wine 11.21 Staging, Fedora package):

  • splash, then the launch animation at 1-2 fps (cold pipelines, wave64 emulated), the A prompt accepted, story load with the loading art; still loading when the limit stopped it.
  • 205,438 D3D12 calls, 0 refused submissions, no device loss, no exception other than the limit's Ctrl-C.
  • #968's slot 31 is reached and handled (pool of 99,776 pages).
  • 224 CreatePipelineState refused, all on depth-bounds (stream subobject 21), the known gap.
  • Memory: lowest MemAvailable 3.8 GB, zram swap peak 2.4 GB, VRAM peak 5.5 of 8 GB. So 16 GB + zram held up to that point; I have not seen the end of the load yet.

Wine build matters on this machine. With Proton Experimental (its files/bin/wine, wine-11.0) and a fresh prefix, both #984 alone and #984 + #968 stop at 9-11 s, every run, before the first present: 0xc0000005 at exe+0xb5a5f8 (read +0x68), stack through exe+0x19f51fc, the same null read otaviosza traced on another stack. The same build with Fedora's Wine 11.21 Staging and its own prefix runs past it as above. I have not found which difference it is (Wine version, prefix, or something the Proton wine binary does outside Steam); noting it because docs/linux_proton.md names Proton Experimental as the Wine to use.

Next here: a longer run to the end of the story load and the world-phase stop, then the same with a warm cache.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7145531353 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7145531353). Originally posted by [ImLele69](https://github.com/ImLele69) on 2026-11-24T21:53:47Z. --- Linux result on **Turing** (first one here on a 32-lane card older than Ampere), #984 (`273b3bdf9`) + #968 (`f2268abea`), shaders re-translated with this branch's translator (`--wave64-emulate`). **Machine:** Fedora 44, kernel 7.3.4, RTX 2070 SUPER 8 GB (Turing), NVIDIA 620.70.06, 16 GB RAM with 15.5 GB zram (no swap file), clang-cl 20 + xwin, Release. **Settings:** this branch's `boot.sh` defaults (`LEONIDA_ARENA_MB=2048`, NVIDIA disk cache 20 GB, `unshare -rn`), local BCPack predictor from `tools/build_dstorage_history.py`, `LEONIDA_KEYBOARD_PAD=always`, `LEONIDA_INPUT_SCRIPT` = A every 15 s from 60 s. Cold NVIDIA cache. **Run, 660 s limit (Wine 11.21 Staging, Fedora package):** - splash, then the launch animation at 1-2 fps (cold pipelines, wave64 emulated), the A prompt accepted, story load with the loading art; still loading when the limit stopped it. - 205,438 D3D12 calls, **0 refused submissions**, no device loss, no exception other than the limit's Ctrl-C. - #968's slot 31 is reached and handled (pool of 99,776 pages). - 224 `CreatePipelineState` refused, all on depth-bounds (`stream subobject 21`), the known gap. - Memory: lowest `MemAvailable` 3.8 GB, zram swap peak 2.4 GB, VRAM peak 5.5 of 8 GB. So 16 GB + zram held up to that point; I have not seen the end of the load yet. **Wine build matters on this machine.** With **Proton Experimental (its `files/bin/wine`, wine-11.0)** and a fresh prefix, both #984 alone and #984 + #968 stop at **9-11 s**, every run, before the first present: `0xc0000005` at `exe+0xb5a5f8` (read `+0x68`), stack through `exe+0x19f51fc`, the same null read otaviosza traced on another stack. The same build with Fedora's **Wine 11.21 Staging** and its own prefix runs past it as above. I have not found which difference it is (Wine version, prefix, or something the Proton wine binary does outside Steam); noting it because `docs/linux_proton.md` names Proton Experimental as the Wine to use. Next here: a longer run to the end of the story load and the world-phase stop, then the same with a warm cache. AI-assisted: yes (Claude Code)
towade commented 2026-11-24 21:56:17 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by towade on 2026-11-24T21:56:17Z.


checked: 273b3bdf9 + #968 (f2268abea) on the two GPU kinds this branch says it could not test: an AMD Radeon RX 9070 XT (RDNA4, 32.0.32029.2010) and an Intel UHD 770 (Xe-LP, 32.0.101.7092, no mesh shaders). Windows 11 26300, MSVC 19.44 (CMake + Ninja, RelWithDebInfo, -DLEONIDA_REQUIRE_VULKAN=ON, SDL3 3.4.20 from a local copy of the pinned release), own 1.0.2.1 copy, a fresh work folder from this tree (make_game.py --stages check,shaders,runtime --runtime-build, 34 min, exit 0: 26,503 main, 1,844 pipeline library, 24 FSPX, 52 BVH, 12 executable programs, every translated module passes spirv-val; the runtime reports 28,435 translated shaders). Booted with scripts/windows-boot/boot.ps1 and its defaults, plus LEONIDA_VK_DEVICE to pick the GPU; the executable's network blocked. Counts, states and timings only.

The #968 merge. Cherry-picking #968 onto this branch conflicts in four files (xs_proxy_mock_test.cpp resolved by keeping both, not built). Keeping both sides compiles in xmem.cpp/xmem.h (plus the one-line change in copy_page_mappings that the comment above describes: g_mapped holds the page number here), but not in d3d12_xs_device.cpp: the hunks land inside PresentState and inside the allocator branch of the slot dispatch. I took this branch's file unchanged and added #968's four pieces by hand: the xmem.h include, the slot constant, the slot-31 section before the PresentX section, and one if constexpr (K == queue && Slot == 31) next to the ExecuteCommandListsX case. xmem_test: OK (336 checks).

RX 9070 XT, boot 1 (360 s, [email protected]@180) RX 9070 XT, boot 2 (600 s, a@45, then every 10 s to 580) UHD 770 (300 s)
end access violation in title code at 195 s (read near null), process exits at 205 s the same access violation, same site, at 106 s; exits at 115 s the title's int3 after 11 s
states (game / session) 2 at 5 s, session=1 at 25 s, 3/3 at 45 s, d at 65 s, low dword back to 0 at 155 s 2 at 5 s, 1 at 25 s, 3/3 at 50 s, d at 55 s, 0 at 70 s game=1 at 5 s, nothing after
PresentX ok / failed 6,832 / 0 2,110 / 0 0 / 0
captures (non-black / taken) 40 / 40 35 / 36 1 / 1
device faults none (the device-fault lines are the last-dispatches list written at exit, no device loss) none none
queue slot 31 answered; first call 1 batch, pool of 63,632 pages; no refusal logged the same not reached
refused 224 CreatePipelineState (depth-bounds test not supported yet) same –

What the RX 9070 XT shows (described, no captures attached): the package splash, the launch movie with sound, then the first-run pages in the system language (German here). Boot 1 stayed on the first of those pages to the end, although the scripted presses kept arriving. Boot 2 went further: the loading slideshow with its artwork, the stage your notes call the story load, and it crashed there. Both crashes are at the same title instruction with the same call chain, about 45-50 s after the session dword's low part drops back to 0. That looks like the random-time access violation reported above with #968 on an RTX 4070 SUPER, except that here it comes during the load, not after it.

Near the end of both boots the runtime reports slot-70 views awaiting readable memory at ~37,300 and ~32,400 images over memory not readable yet. That is the unreadable-slot-70 state that the #968 follow-up describes, and its fix (mirroring copy_page_mappings onto the paired CPU alias) is not in f2268abea, so these boots don't have it. I didn't count the slot-31 calls (the runtime logs only the first), so I can't compare with the 46 calls in the RTX 3060 run.

Input. The keyboard pad works: the scripted presses and a person's key presses move through the pages. A person also tried an Xbox Wireless Controller (Bluetooth). The shim connects it as player 1 and logs its stick movement and one press, but the person saw no effect from the pad's buttons in the window, while the keyboard worked. The harness sets LEONIDA_KEYBOARD_PAD=always. I didn't take this further. The same person saw the launch movie play with sound but stutter.

UHD 770. It stops at the title's int3 after 11 s with no PresentX, at the same place as #939 on this GPU (it reports no VK_EXT_mesh_shader). It looks like the same title stop as in Daolyap's watchdog finding in #14 (a cold pipeline build on the graphics-init thread), so on this GPU the next step is probably the init-time pipeline build, not anything in this branch.

Not checked: a run with the slot-70 fix from the #968 thread, the work folder translated with --mesh-compute for the Intel GPU, LEONIDA_SKIP_INT3, anything past 205 s, and Linux.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7145587033 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7145587033). Originally posted by [towade](https://github.com/towade) on 2026-11-24T21:56:17Z. --- checked: `273b3bdf9` + #968 (`f2268abea`) on the two GPU kinds this branch says it could not test: an **AMD Radeon RX 9070 XT** (RDNA4, 32.0.32029.2010) and an **Intel UHD 770** (Xe-LP, 32.0.101.7092, no mesh shaders). Windows 11 26300, MSVC 19.44 (CMake + Ninja, `RelWithDebInfo`, `-DLEONIDA_REQUIRE_VULKAN=ON`, SDL3 3.4.20 from a local copy of the pinned release), own 1.0.2.1 copy, a fresh work folder from this tree (`make_game.py --stages check,shaders,runtime --runtime-build`, 34 min, exit 0: 26,503 main, 1,844 pipeline library, 24 FSPX, 52 BVH, 12 executable programs, every translated module passes `spirv-val`; the runtime reports 28,435 translated shaders). Booted with `scripts/windows-boot/boot.ps1` and its defaults, plus `LEONIDA_VK_DEVICE` to pick the GPU; the executable's network blocked. Counts, states and timings only. **The #968 merge.** Cherry-picking #968 onto this branch conflicts in four files (`xs_proxy_mock_test.cpp` resolved by keeping both, not built). Keeping both sides compiles in `xmem.cpp`/`xmem.h` (plus the one-line change in `copy_page_mappings` that the comment above describes: `g_mapped` holds the page number here), but not in `d3d12_xs_device.cpp`: the hunks land inside `PresentState` and inside the allocator branch of the slot dispatch. I took this branch's file unchanged and added #968's four pieces by hand: the `xmem.h` include, the slot constant, the slot-31 section before the PresentX section, and one `if constexpr (K == queue && Slot == 31)` next to the `ExecuteCommandListsX` case. `xmem_test`: OK (336 checks). | | **RX 9070 XT**, boot 1 (360 s, `[email protected]@180`) | **RX 9070 XT**, boot 2 (600 s, `a@45`, then every 10 s to 580) | **UHD 770** (300 s) | |---|---|---|---| | end | access violation in title code at **195 s** (read near null), process exits at 205 s | the **same** access violation, same site, at **106 s**; exits at 115 s | the title's `int3` after 11 s | | states (`game` / `session`) | 2 at 5 s, `session=1` at 25 s, 3/3 at 45 s, `d` at 65 s, low dword back to 0 at 155 s | 2 at 5 s, 1 at 25 s, 3/3 at 50 s, `d` at 55 s, 0 at 70 s | `game=1` at 5 s, nothing after | | `PresentX` ok / failed | 6,832 / 0 | 2,110 / 0 | 0 / 0 | | captures (non-black / taken) | 40 / 40 | 35 / 36 | 1 / 1 | | device faults | none (the `device-fault` lines are the last-dispatches list written at exit, no device loss) | none | none | | queue slot 31 | answered; first call 1 batch, pool of 63,632 pages; no refusal logged | the same | not reached | | refused | 224 `CreatePipelineState` (depth-bounds test not supported yet) | same | – | **What the RX 9070 XT shows** (described, no captures attached): the package splash, the launch movie with sound, then the first-run pages in the system language (German here). Boot 1 stayed on the first of those pages to the end, although the scripted presses kept arriving. Boot 2 went further: the loading slideshow with its artwork, the stage your notes call the story load, and it crashed there. Both crashes are at the same title instruction with the same call chain, about 45-50 s after the session dword's low part drops back to 0. That looks like the random-time access violation reported above with #968 on an RTX 4070 SUPER, except that here it comes **during** the load, not after it. Near the end of both boots the runtime reports `slot-70 views awaiting readable memory` at ~37,300 and ~32,400 images `over memory not readable yet`. That is the unreadable-slot-70 state that the #968 follow-up describes, and its fix (mirroring `copy_page_mappings` onto the paired CPU alias) is **not** in `f2268abea`, so these boots don't have it. I didn't count the slot-31 calls (the runtime logs only the first), so I can't compare with the 46 calls in the RTX 3060 run. **Input.** The keyboard pad works: the scripted presses and a person's key presses move through the pages. A person also tried an Xbox Wireless Controller (Bluetooth). The shim connects it as player 1 and logs its stick movement and one press, but the person saw no effect from the pad's buttons in the window, while the keyboard worked. The harness sets `LEONIDA_KEYBOARD_PAD=always`. I didn't take this further. The same person saw the launch movie play with sound but stutter. **UHD 770.** It stops at the title's `int3` after 11 s with no `PresentX`, at the same place as #939 on this GPU (it reports no `VK_EXT_mesh_shader`). It looks like the same title stop as in Daolyap's watchdog finding in #14 (a cold pipeline build on the graphics-init thread), so on this GPU the next step is probably the init-time pipeline build, not anything in this branch. Not checked: a run with the slot-70 fix from the #968 thread, the work folder translated with `--mesh-compute` for the Intel GPU, `LEONIDA_SKIP_INT3`, anything past 205 s, and Linux. AI-assisted (Claude Code).
oscarlosu-lab commented 2026-11-24 23:46:07 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by oscarlosu-lab on 2026-11-24T23:46:07Z.


Update on Windows 11 + RTX 3060 12 GB (#984 + #968 + CPU-alias fix, LEONIDA_SKIP_INT3=1, LEONIDA_DEVICE_TYPE=6):

Turns out our earlier 420 s–600 s runs were not stalled in 0xd at all — they were waiting on pages 3–4 of the 4-screen first-run setup (A-only presses don't advance them). With down, down, a on page 3 and up, up, a, down, a, down, a on page 4:

  • States: t=0s (0,0) → t=40s (2,1) → t=100s (3,3) → t=115s (3,d) → t=285s (3,0) (story load!)
  • Presents: PresentX ok 6,860, failed 0 (35/35 non-black captures)
  • Title textures during story load: 76,001 slot-70 views (52,774 made, 65,885 fills / 14,414.1 MiB / 0 failed), 20,343 awaiting readable memory, 15,824 over memory not readable yet (11,277 ordered title host copies, 17 GPU waits)
  • Stop at 439 s: int3 skipped at exe+0x2474606 (LEONIDA_SKIP_INT3=1), then 0xc0000005 (write 0x18644848038) at exe+0x52716ec (exe+0x43ba85 ← exe+0x25a58d5 ← exe+0x25a5764 ← exe+0x2215eca), ExecuteIndirect: 0.
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7147772853 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7147772853). Originally posted by [oscarlosu-lab](https://github.com/oscarlosu-lab) on 2026-11-24T23:46:07Z. --- Update on Windows 11 + RTX 3060 12 GB (**#984 + #968 + [CPU-alias fix](https://github.com/ubiquitarianism/leonida/pull/968#issuecomment-7142206199)**, `LEONIDA_SKIP_INT3=1`, `LEONIDA_DEVICE_TYPE=6`): Turns out our earlier `420 s`–`600 s` runs were not stalled in `0xd` at all — they were waiting on pages 3–4 of the 4-screen first-run setup (`A`-only presses don't advance them). With `down, down, a` on page 3 and `up, up, a, down, a, down, a` on page 4: - **States:** `t=0s (0,0)` → `t=40s (2,1)` → `t=100s (3,3)` → `t=115s (3,d)` → **`t=285s (3,0)`** (story load!) - **Presents:** `PresentX ok 6,860, failed 0` (`35/35` non-black captures) - **Title textures during story load:** `76,001` slot-70 views (`52,774` made, `65,885` fills / `14,414.1 MiB` / `0` failed), `20,343` awaiting readable memory, `15,824` over memory not readable yet (`11,277` ordered title host copies, `17` GPU waits) - **Stop at `439 s`:** `int3` skipped at `exe+0x2474606` (`LEONIDA_SKIP_INT3=1`), then `0xc0000005` (write `0x18644848038`) at `exe+0x52716ec` (`exe+0x43ba85` ← `exe+0x25a58d5` ← `exe+0x25a5764` ← `exe+0x2215eca`), `ExecuteIndirect: 0`.
aslan2142 commented 2026-11-25 00:16:05 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-25T00:16:05Z.


@ubiquitarianism @Moriz82 a heads-up so nobody does this twice: we are merging current main into this branch right now.

  • Why now: main took in nine pull requests of the boot ladder tonight, one at a time, each with the full Windows suite run before it (#375, #377, #383, #385, #727, #391, #395, #396, #403). This branch has the same changes in its own form, so it now conflicts with main in 42 files, most of them in d3d12_xs_device.cpp and xs_proxy_mock_test.cpp.
  • How: main is pinned at 1154976d4 and the 42 files are being resolved in five groups in parallel (the Xbox proxy code, its tests, the D3D12/Vulkan layer, the other shims, and build/tools/docs). Then one integration step: build with clang-cl, the full runtime suite under Wine on llvmpipe and on an RDNA2 iGPU against a baseline of main, and the translator suite.
  • The rule: where main and this branch both carry a change, main's reviewed form stays; everything only this branch has is kept (the title-memory windows and write-watch, the image pool, the pinned reads, queue Signal/Wait, the fence mirror, list handle translation, the A8 formats, the presentation window and the shared token source). Every dropped duplicate and every judgement call is being written down and will be posted here.
  • The result: one merge commit of main on top of 273b3bdf9, pushed to this branch through the maintainer edit, with Moriz82's commit untouched and no force-push. Expect it in two to three hours.
  • What we can't judge here: a game run. Once it is pushed, runs on the NVIDIA cards that reached the story load before would be the real check.

@ubiquitarianism: this is the first bullet of your RT-PALMETTO-PARITY claim. If you have already started on it, or want it done differently, say so here and we stop and hand over what is resolved. The other parts of your claim (the translator decode PRs and the palmetto ports) are untouched.

@Moriz82: if there is work on this branch newer than 273b3bdf9 that isn't pushed, please push it now or tell us; and please don't force-push while this is in progress.

AI-assisted (Claude Code, Claude Fable 5.2).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7148329923 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7148329923). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-25T00:16:05Z. --- @ubiquitarianism @Moriz82 a heads-up so nobody does this twice: **we are merging current `main` into this branch right now.** - **Why now:** `main` took in nine pull requests of the boot ladder tonight, one at a time, each with the full Windows suite run before it (#375, #377, #383, #385, #727, #391, #395, #396, #403). This branch has the same changes in its own form, so it now conflicts with `main` in 42 files, most of them in `d3d12_xs_device.cpp` and `xs_proxy_mock_test.cpp`. - **How:** `main` is pinned at `1154976d4` and the 42 files are being resolved in five groups in parallel (the Xbox proxy code, its tests, the D3D12/Vulkan layer, the other shims, and build/tools/docs). Then one integration step: build with clang-cl, the full runtime suite under Wine on llvmpipe and on an RDNA2 iGPU against a baseline of `main`, and the translator suite. - **The rule:** where `main` and this branch both carry a change, `main`'s reviewed form stays; everything only this branch has is kept (the title-memory windows and write-watch, the image pool, the pinned reads, queue `Signal`/`Wait`, the fence mirror, list handle translation, the A8 formats, the presentation window and the shared token source). Every dropped duplicate and every judgement call is being written down and will be posted here. - **The result:** one merge commit of `main` on top of `273b3bdf9`, pushed to this branch through the maintainer edit, with Moriz82's commit untouched and no force-push. Expect it in two to three hours. - **What we can't judge here:** a game run. Once it is pushed, runs on the NVIDIA cards that reached the story load before would be the real check. **@ubiquitarianism:** this is the first bullet of your `RT-PALMETTO-PARITY` claim. If you have already started on it, or want it done differently, say so here and we stop and hand over what is resolved. The other parts of your claim (the translator decode PRs and the palmetto ports) are untouched. **@Moriz82:** if there is work on this branch newer than `273b3bdf9` that isn't pushed, please push it now or tell us; and please don't force-push while this is in progress. AI-assisted (Claude Code, Claude Fable 5.2).
djrolfes commented 2026-11-25 00:16:21 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by djrolfes on 2026-11-25T00:16:21Z.


Independent RTX 3070 Ti 8 GiB result (RT-PROTON-3070TI-VALIDATION): Linux, Wine 11.22, NVIDIA 620.73.04, 32 GiB RAM; runtime ac7c3449d (runtime code identical to current 273b3bdf9), clang-cl/xwin RelWithDebInfo + SDL3.

Prerequisites rebuilt with this branch: 26,503 main + 29 FSPX + 52 BVH + 2,683 library + 12 executable entries, no missing modules/error-only metadata; wave64 emulation on. Local BCPack profile built from all 57 pools / 5,435 BPTC chunks. Loader dry-run succeeds; 25 targeted Wine and 7 portable synthetic tests pass.

Bounded network-isolated run, package and shader inputs read-only, separate prefix/overlay. Series S identity, 2 GiB arena, 4 GiB pipeline cache, keyboard pad, first scripted A at 180 s. LEONIDA_SKIP_INT3 unset; no compute skips or stub pipelines. 4,041 successful PresentX, no failed PresentX recorded. State reaches game=3/session=3 around 30 s, then an unhandled title breakpoint at 40.735 s, before the scripted input. This is NOT the older physical-pool fill assertion: local inspection identifies a bounded buffer append with only 80 bytes remaining for a 1,728-byte request. Its producer/drain semantics are not established yet; I am not treating stepping over it as a fix.

The wrapper hit its 720 s limit because Wine entered its debugger after the breakpoint; actual title progress stopped near 41 s. Peak sampled total GPU memory 1,532 MiB, minimum available system RAM 12.47 GiB, so this run does not support a memory-exhaustion diagnosis. No story-load completion or world frame established. I am tightening the local wrapper to stop promptly on this fatal breakpoint and will retest/reduce it. Does this bounded-buffer stop match a known item on your machines? Raw logs, registers, disassembly and captures stay local. AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7148334803 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7148334803). Originally posted by [djrolfes](https://github.com/djrolfes) on 2026-11-25T00:16:21Z. --- Independent RTX 3070 Ti 8 GiB result (RT-PROTON-3070TI-VALIDATION): Linux, Wine 11.22, NVIDIA 620.73.04, 32 GiB RAM; runtime ac7c3449d (runtime code identical to current 273b3bdf9), clang-cl/xwin RelWithDebInfo + SDL3. Prerequisites rebuilt with this branch: 26,503 main + 29 FSPX + 52 BVH + 2,683 library + 12 executable entries, no missing modules/error-only metadata; wave64 emulation on. Local BCPack profile built from all 57 pools / 5,435 BPTC chunks. Loader dry-run succeeds; 25 targeted Wine and 7 portable synthetic tests pass. Bounded network-isolated run, package and shader inputs read-only, separate prefix/overlay. Series S identity, 2 GiB arena, 4 GiB pipeline cache, keyboard pad, first scripted A at 180 s. LEONIDA_SKIP_INT3 unset; no compute skips or stub pipelines. 4,041 successful PresentX, no failed PresentX recorded. State reaches game=3/session=3 around 30 s, then an unhandled title breakpoint at 40.735 s, before the scripted input. This is NOT the older physical-pool fill assertion: local inspection identifies a bounded buffer append with only 80 bytes remaining for a 1,728-byte request. Its producer/drain semantics are not established yet; I am not treating stepping over it as a fix. The wrapper hit its 720 s limit because Wine entered its debugger after the breakpoint; actual title progress stopped near 41 s. Peak sampled total GPU memory 1,532 MiB, minimum available system RAM 12.47 GiB, so this run does not support a memory-exhaustion diagnosis. No story-load completion or world frame established. I am tightening the local wrapper to stop promptly on this fatal breakpoint and will retest/reduce it. Does this bounded-buffer stop match a known item on your machines? Raw logs, registers, disassembly and captures stay local. AI-assisted.
djrolfes commented 2026-11-25 00:23:19 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by djrolfes on 2026-11-25T00:23:19Z.


Reduction follow-up on the RTX 3070 Ti / Wine 11.22 bounded-append stop: reproduced 3/3 without LEONIDA_SKIP_INT3. Warm repeat: 33.576 s, 4,257 successful presents; changing only ordinary pad input timing delivered A at 20 and 30 s, then hit the identical append assertion at 35.039 s after 2,615 successful presents. The same 80 remaining / 1,728 requested values recur. Earlier menu input therefore does not avoid it here.

Capture caveat: first run 7/7 exactly black; warm repeat 3/8 non-black. Successful PresentX is not being used as proof that the menus render correctly. No story/world-frame claim. I fixed the local monitor so Wine entering its debugger is detected before discarding a large new output chunk; the third sandbox stopped promptly at 38.5 s rather than waiting out its limit. That is only a harness fix, not a runtime fix.

The buffer producer/drain contract remains unidentified; calling it a profiler buffer or a command stream would be speculation. The 224 depth-bounds PSO refusals are also present, but #815 already owns that implementation and I have not established a causal link. I see the current-main integration is underway; preserving this baseline for an isolated retest of that head rather than creating a competing merge. Counts only, raw data stays local. AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7148457263 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7148457263). Originally posted by [djrolfes](https://github.com/djrolfes) on 2026-11-25T00:23:19Z. --- Reduction follow-up on the RTX 3070 Ti / Wine 11.22 bounded-append stop: reproduced 3/3 without LEONIDA_SKIP_INT3. Warm repeat: 33.576 s, 4,257 successful presents; changing only ordinary pad input timing delivered A at 20 and 30 s, then hit the identical append assertion at 35.039 s after 2,615 successful presents. The same 80 remaining / 1,728 requested values recur. Earlier menu input therefore does not avoid it here. Capture caveat: first run 7/7 exactly black; warm repeat 3/8 non-black. Successful PresentX is not being used as proof that the menus render correctly. No story/world-frame claim. I fixed the local monitor so Wine entering its debugger is detected before discarding a large new output chunk; the third sandbox stopped promptly at 38.5 s rather than waiting out its limit. That is only a harness fix, not a runtime fix. The buffer producer/drain contract remains unidentified; calling it a profiler buffer or a command stream would be speculation. The 224 depth-bounds PSO refusals are also present, but #815 already owns that implementation and I have not established a causal link. I see the current-main integration is underway; preserving this baseline for an isolated retest of that head rather than creating a competing merge. Counts only, raw data stays local. AI-assisted.
ThomasHFWright commented 2026-11-25 01:14:15 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by ThomasHFWright on 2026-11-25T01:14:15Z.


Independent RTX 5090 Linux validation of exact head 273b3bdf9d6e736442ad584ad464df6e86ee928b (no source patches). Real interactive first-run UI now renders here under distro Wine 11.22. No world/gameplay frame established.

Environment: Ryzen 7 9800X3D, RTX 5090, NVIDIA 620.73.04, Linux 7.3.6 CachyOS, approximately 30 GiB physical RAM and 62 GiB swap; clang-cl 23.1.5/xwin SDK 26100, SDL 3.4.20. Offline network namespaces, read-only package input, separate candidate prefixes/caches/overlay. GPU suites finished before title tests. No assertion skips, compute skips or stub pipelines requested. This head's default title-watchdog keepalive remains enabled, so longer runtime alone is not stability evidence.

Full validation:

  • Full Windows build passes. Native all-target build fails on the unguarded Windows-only pso_stream_test registration (runtime/CMakeLists.txt); building all 84 portable executables explicitly passes. Native CTest: 77 pass / 2 skip / 1 NotRun of 80. The Windows pso_stream test passes.
  • Full Windows CTest under Wine 11.22, serial Xvfb, 120 s per-test timeout: 285 pass / 24 fail / 33 skip of 342. Includes two DXGI timeouts. These are observed failures, not all established port regressions versus the Wine host.
  • Semantic suite: 6,134 tests across 472 files; 3 failing files. test_control_flow_branches: four errors because the fixture interpreter does not implement emitted OpPhi; test_ds_swizzle_b32 and test_valu_permlane16: expected UnsupportedConstruct is no longer raised (five and one subcases respectively).
  • Standalone GPU suite: 231 pass / 17 skip / 0 fail of 248; all 257 synthetic modules translate and SPIR-V validate.
  • Fresh matching shader corpus: 26,503 main; 29/29 FSPX; 52/52 BVH; 2,683/2,684 library; 12 executable translated and validated. One library program remains rejected for s_sethalt; rejection left intact. Runtime corpus lookup passes with zero lookup failures. Local BCPack profile generated from all 57 pools / 5,435 BPTC chunks and stamp verified.

Title observations (Series S identity, 2 GiB arena, 4 GiB pipeline-cache budget, keyboard pad, explicit BCPack profile, fresh matching shaders):

  1. Cold Wine 11.22, no scripted input: legible Account Picker / Screen Narration / Player prompt row in 5/12 captures; 7,045 PresentX, 55,790 indexed draws, 5,243 dispatches. Title breakpoint at 28.288 s, same site and initial stack frames as my PR #939 run. Stalled Wine debugger scope explicitly stopped at 87.75 s; that cleanup is not the failure cause. Cgroup peak RAM 5.227 GB, swap 0.230 GB; no memory-high/max/OOM events.

  2. Raw Proton Experimental files/bin/wine (wine-11.0), separate fresh prefix/cache/overlay: loader dry-run and init pass, but title access violation at 3.827 s, exit 5 at 4.87 s, zero presents. This is the raw Wine binary, not a complete Steam Proton launch.

  3. Warm Wine 11.22 plus virtual A at 15/20/25 s: full Navigation Experience, UI Text Size, and Subtitles pages visually verified. Targeted window Enter inputs advanced pages. 6,589 presents / 57,855 indexed draws / 4,974 dispatches, no title breakpoint observed before the 300 s harness limit (exit 124). Warm cache and input both changed versus run 1, so this does not establish that input timing fixes the earlier assertion. Peak cgroup RAM 6.322 GB / swap 2.973 GB; no memory-high/max/OOM events. Total GPU-memory peak 11,213 MiB includes desktop/other applications, not isolated process VRAM.

  4. A second warm run reproduced the illustrated splash and interactive setup. Ordinary window-targeted input advanced Navigation → Text Size → Subtitles → Brightness → Finish Setup → Legal Notices → Privacy Policy/Terms of Service. This run ended at the 600 s harness bound (exit 124), with input left at the consent page. It produced 13,287 presents and no observed fatal title exception; no memory-high/max/OOM events. Peak cgroup RAM 5.872 GB / swap 4.505 GB. The user subsequently authorized acceptance; see run 5. No story-load completion or world frame claimed.

  5. Follow-up warm Wine 11.22, same old 273b3bdf9 build: accepted both legal checkboxes and confirmed setup through ordinary targeted input. The screen changed to a loading spinner and stayed there until the 600 s harness bound (exit 124). 11,695 presents / 99,243 indexed draws / 9,940 dispatches; 81,489 pipeline-creation calls. No fatal title exception or device-lost diagnostic observed; the two early RPC first-chance exceptions continued. 100 queue-slot-31 calls remained console-only. Peak cgroup RAM 7.333 GB, swap 5.449 GB; all memory-high/max/OOM counters zero. Minimum sampled host MemAvailable 9,042,692 KiB; total GPU-memory peak 11,634 MiB includes other desktop processes. No story artwork, story-load completion, or world frame verified. The timeout is test cleanup, not an application crash.

The current exact-head traces still record queue slot 31 as console-only (20 calls cold, 48 in the first warm run, 51 by the follow-up legal page). This confirms the known missing implementation is exercised, but does not establish it caused the earlier breakpoint. The subsequently merged #968 and #974 fixes are absent from this historical build; neither was mixed into this baseline.

Windows test failures: loader_tls, gameinput_host, device_proxy, device_proxy_trace, root_sig, xmem, xmem_no_write_watch, xmem_write_watch, file_system, bcrypt_rng, bcrypt_rng_seeded, run_tiny_tls_ga, d3d12_xs_root_signature, d3d12_noop_copy, d3d12_indirect_dispatch_count, d3d12_clear, d3d12_typeless_depth, d3d12_residency, d3d12_heap_properties, dxgi_swapchain, dxgi_host_parity (timeout), dxgi_waitable_latency (timeout), d3d12_fspx_compute, d3d12_clear_formats.

Update after the merge: this is a historical baseline of the original 273b3bdf9, not validation of merged main. #984, #968, #939 and #974 are now merged. Prepared a separate checkout of main at 3f81d46ac01021bd7517f0cce153f4283bc8dd17, verified to contain all four merges; it is not built or tested locally yet. The old baseline retained its default watchdog keepalive; merged main now arms the title watchdog by default, so this must be reported explicitly in the next comparison. Prior #939 comparison: https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7148377168 . Raw title traces, shader data, disassembly and captures stay local; aggregate results only. AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7149343586 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7149343586). Originally posted by [ThomasHFWright](https://github.com/ThomasHFWright) on 2026-11-25T01:14:15Z. --- Independent RTX 5090 Linux validation of exact head `273b3bdf9d6e736442ad584ad464df6e86ee928b` (no source patches). **Real interactive first-run UI now renders here under distro Wine 11.22. No world/gameplay frame established.** Environment: Ryzen 7 9800X3D, RTX 5090, NVIDIA 620.73.04, Linux 7.3.6 CachyOS, approximately 30 GiB physical RAM and 62 GiB swap; clang-cl 23.1.5/xwin SDK 26100, SDL 3.4.20. Offline network namespaces, read-only package input, separate candidate prefixes/caches/overlay. GPU suites finished before title tests. No assertion skips, compute skips or stub pipelines requested. This head's default title-watchdog keepalive remains enabled, so longer runtime alone is not stability evidence. Full validation: - Full Windows build passes. Native all-target build fails on the unguarded Windows-only `pso_stream_test` registration (`runtime/CMakeLists.txt`); building all 84 portable executables explicitly passes. Native CTest: **77 pass / 2 skip / 1 NotRun of 80**. The Windows `pso_stream` test passes. - Full Windows CTest under Wine 11.22, serial Xvfb, 120 s per-test timeout: **285 pass / 24 fail / 33 skip of 342**. Includes two DXGI timeouts. These are observed failures, not all established port regressions versus the Wine host. - Semantic suite: **6,134 tests across 472 files; 3 failing files**. `test_control_flow_branches`: four errors because the fixture interpreter does not implement emitted `OpPhi`; `test_ds_swizzle_b32` and `test_valu_permlane16`: expected `UnsupportedConstruct` is no longer raised (five and one subcases respectively). - Standalone GPU suite: **231 pass / 17 skip / 0 fail of 248**; all **257 synthetic modules translate and SPIR-V validate**. - Fresh matching shader corpus: **26,503 main; 29/29 FSPX; 52/52 BVH; 2,683/2,684 library; 12 executable** translated and validated. One library program remains rejected for `s_sethalt`; rejection left intact. Runtime corpus lookup passes with zero lookup failures. Local BCPack profile generated from all 57 pools / 5,435 BPTC chunks and stamp verified. Title observations (Series S identity, 2 GiB arena, 4 GiB pipeline-cache budget, keyboard pad, explicit BCPack profile, fresh matching shaders): 1. Cold Wine 11.22, no scripted input: legible Account Picker / Screen Narration / Player prompt row in 5/12 captures; 7,045 PresentX, 55,790 indexed draws, 5,243 dispatches. Title breakpoint at **28.288 s**, same site and initial stack frames as my PR #939 run. Stalled Wine debugger scope explicitly stopped at 87.75 s; that cleanup is not the failure cause. Cgroup peak RAM 5.227 GB, swap 0.230 GB; no memory-high/max/OOM events. 2. Raw Proton Experimental `files/bin/wine` (wine-11.0), separate fresh prefix/cache/overlay: loader dry-run and init pass, but title access violation at **3.827 s**, exit 5 at 4.87 s, **zero presents**. This is the raw Wine binary, not a complete Steam Proton launch. 3. Warm Wine 11.22 plus virtual A at 15/20/25 s: full **Navigation Experience**, **UI Text Size**, and **Subtitles** pages visually verified. Targeted window Enter inputs advanced pages. **6,589 presents / 57,855 indexed draws / 4,974 dispatches**, no title breakpoint observed before the **300 s harness limit** (exit 124). Warm cache and input both changed versus run 1, so this does not establish that input timing fixes the earlier assertion. Peak cgroup RAM 6.322 GB / swap 2.973 GB; no memory-high/max/OOM events. Total GPU-memory peak 11,213 MiB includes desktop/other applications, not isolated process VRAM. 4. A second warm run reproduced the illustrated splash and interactive setup. Ordinary window-targeted input advanced Navigation → Text Size → Subtitles → Brightness → Finish Setup → Legal Notices → Privacy Policy/Terms of Service. This run ended at the 600 s harness bound (exit 124), with input left at the consent page. It produced 13,287 presents and no observed fatal title exception; no memory-high/max/OOM events. Peak cgroup RAM 5.872 GB / swap 4.505 GB. The user subsequently authorized acceptance; see run 5. No story-load completion or world frame claimed. 5. Follow-up warm Wine 11.22, same old `273b3bdf9` build: accepted both legal checkboxes and confirmed setup through ordinary targeted input. The screen changed to a loading spinner and stayed there until the **600 s harness bound (exit 124)**. **11,695 presents / 99,243 indexed draws / 9,940 dispatches**; 81,489 pipeline-creation calls. No fatal title exception or device-lost diagnostic observed; the two early RPC first-chance exceptions continued. **100 queue-slot-31 calls remained console-only**. Peak cgroup RAM **7.333 GB**, swap **5.449 GB**; all memory-high/max/OOM counters zero. Minimum sampled host MemAvailable 9,042,692 KiB; total GPU-memory peak 11,634 MiB includes other desktop processes. No story artwork, story-load completion, or world frame verified. The timeout is test cleanup, not an application crash. The current exact-head traces still record queue slot 31 as console-only (20 calls cold, 48 in the first warm run, 51 by the follow-up legal page). This confirms the known missing implementation is exercised, but does not establish it caused the earlier breakpoint. The subsequently merged #968 and #974 fixes are absent from this historical build; neither was mixed into this baseline. Windows test failures: `loader_tls`, `gameinput_host`, `device_proxy`, `device_proxy_trace`, `root_sig`, `xmem`, `xmem_no_write_watch`, `xmem_write_watch`, `file_system`, `bcrypt_rng`, `bcrypt_rng_seeded`, `run_tiny_tls_ga`, `d3d12_xs_root_signature`, `d3d12_noop_copy`, `d3d12_indirect_dispatch_count`, `d3d12_clear`, `d3d12_typeless_depth`, `d3d12_residency`, `d3d12_heap_properties`, `dxgi_swapchain`, `dxgi_host_parity` (timeout), `dxgi_waitable_latency` (timeout), `d3d12_fspx_compute`, `d3d12_clear_formats`. Update after the merge: this is a historical baseline of the original `273b3bdf9`, not validation of merged main. #984, #968, #939 and #974 are now merged. Prepared a separate checkout of `main` at `3f81d46ac01021bd7517f0cce153f4283bc8dd17`, verified to contain all four merges; it is not built or tested locally yet. The old baseline retained its default watchdog keepalive; merged main now arms the title watchdog by default, so this must be reported explicitly in the next comparison. Prior #939 comparison: https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7148377168 . Raw title traces, shader data, disassembly and captures stay local; aggregate results only. AI-assisted.
madhyn commented 2026-11-25 01:14:18 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by madhyn on 2026-11-25T01:14:18Z.


Independent Arch Linux + Wine 11.22 + RTX 3060 Ti 8 GiB validation report (with #968 + CPU-alias + #404/#877 XMA2 audio + monitor-fitted window), reaching rendered first-run UI, 4K launch movie playback and live audio with zero device faults.

Setup & branch

  • Machine: Arch Linux (7.3.5-arch1-1), NVIDIA GeForce RTX 3060 Ti 8 GiB (driver 615.78.08), 16 GiB RAM, Wine 11.22 (Staging), network isolated via unshare -rn.
  • Branch: madhyn/leonida@exp/proton-ui (6e3369c40), built on Linux with clang-cl 23 + xwin SDK + SDL3 3.4.20 (Release):
    • #984 (273b3bdf9)
    • #968 (CopyPageMappingsBatchX on queue slot 31) + the CPU-alias mirror fix in xmem.cpp
    • #404 + #877 (Rust XMA2 decoder cross-compiled to x86_64-pc-windows-msvc with Rust 1.100.0, acphal_test: 170/170 checks passed, including non-silent PCM decode)
    • Local monitor work-area window fit (1568x882 16:9 client area centered on a 1920x1080 display)
  • Prerequisites: Rebuilt 12/12 exe and 29/29 fspx shaders with this branch's translator (wave64 emulation on; resolved the missing exe pixel shader during startup) and built the local BCPack sidecar (57 pools, 5,435 BPTC chunks, 0 malformed).
  • Switches differing from defaults: LEONIDA_DEVICE_TYPE=6 (Series S), LEONIDA_SKIP_INT3=1, LEONIDA_COMPUTE_WARMUP=0, LEONIDA_ARENA_MB=2048, LEONIDA_PIPELINE_CACHE_BYTES=4294967296, LEONIDA_STARTUP_CACHE_CHECKPOINTS=1, LEONIDA_KEYBOARD_PAD=always, NVMe LEONIDA_PIPELINE_CACHE_DIR & __GL_SHADER_DISK_CACHE_PATH (package itself sits on a SATA HDD).

Measured 300 s run (counts & timings only)

  • States (LEONIDA_PEEK): t=0s (0,0) → t=5s (1,0) → t=15s (2,0) → t=50s (2,1) → t=200s (3,3) (first-run UI open) → t=265s (3,d) (4K Bink movie + post-landing transition); ran cleanly to the 300 s stop with no crash / no device loss.
  • Presentation: 4,741 PresentX ok / 0 failed; 80 captures taken (27 package splash frames during init, then 53/53 non-black rendered UI frames at 1568x882, mean RGB 32.34 32.34 44.30), followed by 4K Y/U/V video plane updates (67 fills per plane).
  • Textures & streaming: 543 slot-70 views (469 made, 0 over memory not readable yet, 0 awaiting readable memory), 1,455 registry images, 1,284 fills (2,598.8 MiB, 0 failed).
  • Audio & input: Active 48 kHz stereo float32 PipeWire stream on the default sink + Rust XMA2 decoder linked; SDL3 detected both physical gamepads (DS4 + Xbox 360) alongside the keyboard pad.
  • Pipeline cache: Saved 2,200,069 bytes to pipeline_cache.session.bin on NVMe.

Practical note for 8 GiB / Linux boots

Setting LEONIDA_COMPUTE_WARMUP=0 made a large difference during startup here: with warmup enabled, background compilation of unused ~300 KiB compute modules (2–3 s each) kept the boot in game=2 / session=1 past 200 s; disabling warmup let the run cross cleanly into game=3 / session=3 and session=d with zero device faults.

All logs, traces and captures stay local.

AI-assisted: yes

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7149344408 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7149344408). Originally posted by [madhyn](https://github.com/madhyn) on 2026-11-25T01:14:18Z. --- Independent **Arch Linux + Wine 11.22 + RTX 3060 Ti 8 GiB** validation report (with `#968` + CPU-alias + `#404`/`#877` XMA2 audio + monitor-fitted window), reaching rendered first-run UI, 4K launch movie playback and live audio with zero device faults. ### Setup & branch - **Machine:** Arch Linux (`7.3.5-arch1-1`), NVIDIA GeForce RTX 3060 Ti 8 GiB (driver `615.78.08`), 16 GiB RAM, Wine `11.22 (Staging)`, network isolated via `unshare -rn`. - **Branch:** [`madhyn/leonida@exp/proton-ui`](https://github.com/madhyn/leonida/tree/exp/proton-ui) (`6e3369c40`), built on Linux with `clang-cl` 23 + `xwin` SDK + SDL3 `3.4.20` (`Release`): - `#984` (`273b3bdf9`) - `#968` (`CopyPageMappingsBatchX` on queue slot 31) + the CPU-alias mirror fix in `xmem.cpp` - `#404` + `#877` (Rust XMA2 decoder cross-compiled to `x86_64-pc-windows-msvc` with Rust `1.100.0`, `acphal_test`: **170/170 checks passed**, including non-silent PCM decode) - Local monitor work-area window fit (`1568x882` 16:9 client area centered on a `1920x1080` display) - **Prerequisites:** Rebuilt `12/12` `exe` and `29/29` `fspx` shaders with this branch's translator (wave64 emulation on; resolved the missing `exe` pixel shader during startup) and built the local BCPack sidecar (`57` pools, `5,435` BPTC chunks, `0` malformed). - **Switches differing from defaults:** `LEONIDA_DEVICE_TYPE=6` (Series S), `LEONIDA_SKIP_INT3=1`, `LEONIDA_COMPUTE_WARMUP=0`, `LEONIDA_ARENA_MB=2048`, `LEONIDA_PIPELINE_CACHE_BYTES=4294967296`, `LEONIDA_STARTUP_CACHE_CHECKPOINTS=1`, `LEONIDA_KEYBOARD_PAD=always`, NVMe `LEONIDA_PIPELINE_CACHE_DIR` & `__GL_SHADER_DISK_CACHE_PATH` (package itself sits on a SATA HDD). ### Measured 300 s run (counts & timings only) - **States (`LEONIDA_PEEK`):** `t=0s (0,0)` → `t=5s (1,0)` → `t=15s (2,0)` → `t=50s (2,1)` → **`t=200s (3,3)`** (first-run UI open) → **`t=265s (3,d)`** (4K Bink movie + post-landing transition); ran cleanly to the 300 s stop with **no crash / no device loss**. - **Presentation:** `4,741` `PresentX` ok / `0` failed; `80` captures taken (`27` package splash frames during init, then **`53/53` non-black rendered UI frames** at `1568x882`, mean RGB `32.34 32.34 44.30`), followed by 4K Y/U/V video plane updates (`67` fills per plane). - **Textures & streaming:** `543` slot-70 views (`469` made, **`0` over memory not readable yet**, **`0` awaiting readable memory**), `1,455` registry images, `1,284` fills (`2,598.8 MiB`, `0` failed). - **Audio & input:** Active `48 kHz` stereo float32 PipeWire stream on the default sink + Rust XMA2 decoder linked; SDL3 detected both physical gamepads (DS4 + Xbox 360) alongside the keyboard pad. - **Pipeline cache:** Saved `2,200,069` bytes to `pipeline_cache.session.bin` on NVMe. ### Practical note for 8 GiB / Linux boots Setting **`LEONIDA_COMPUTE_WARMUP=0`** made a large difference during startup here: with warmup enabled, background compilation of unused ~300 KiB compute modules (2–3 s each) kept the boot in `game=2 / session=1` past 200 s; disabling warmup let the run cross cleanly into `game=3 / session=3` and `session=d` with zero device faults. All logs, traces and captures stay local. AI-assisted: yes
aslan2142 commented 2026-11-25 01:37:22 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-25T01:37:22Z.


Merged. Thank you, @Moriz82: this is the largest step main has taken towards the story load. @ubiquitarianism, this was the first part of your RT-PALMETTO-PARITY claim, done as announced above.

How it was brought up to date: main was merged into this branch, not rebased, so your commit 273b3bdf9 is untouched and nothing was force-pushed. 42 files conflicted. They were resolved in five groups by one rule: where main and this branch carried the same change, main's reviewed form stays and what this branch did beyond it is carried into it; everything only this branch had is kept. That covers the title-memory windows and write-watch, the image pool, pinned reads, queue Signal/Wait, the fence mirror, the list proxy, the presenter with its shared FrameTokenSource, and the translator and tool work.

Where the measured boot wins over main's reading:

  • Device slot 81 with no presenter answers S_OK with a zero count.
  • PresentX is queue slot 30, or 32 on a queue detected as the newer layout; LEONIDA_XS_PRESENT_X_SLOT pins it.

Changed for the title, please check these first in a run: device slots 61 and 74 and queue slot 18 now follow main's caller rule (set_console_caller, installed in D3D12XboxCreateDevice), instead of this branch's own heuristics.

Maintainer decisions in this merge:

  • The title's hang watchdog stays armed by default, as on the console. LEONIDA_TITLE_WATCHDOG=0 turns on the thread that keeps it from firing, for example on a first boot after a driver update.
  • The diagnostic output marked as local is behind LEONIDA_LOCAL_DIAGNOSTICS=1, off by default.
  • The per-shader keys in docs/embedded_shaders.md stay.

Fixed on the way, each in its own commit:

  • the presenter held a reference on the device proxy that owns it, so neither was ever released;
  • copies between the A8-backed and the R8-backed form of A8 textures used a copy Vulkan does not allow; VK_KHR_maintenance5 sat inside another extension's guard;
  • a parallel-build race on the generated m15 shaders, and pso_stream_test breaking the Linux build;
  • reference counts racing the compute pipeline warm-up (d3d12_compute, d3d12_fspx_compute);
  • 14 test files this branch brought in red, each fixed at the cause or with its out-of-date model updated;
  • attribution of the record-layout facts and the TuxBox licence note.

Tests (clang-cl with the xwin SDK; the full runtime suite under Wine on llvmpipe and an RDNA2 iGPU, RADV):

  • Against main: no test went from pass to fail on either device. 46 tests are new and pass; dstorage, run_startup_cmdline and xmem went from fail to pass on both, and d3d12_xmem_placed on the iGPU.
  • Against this branch's own head before the merge: no test from pass to fail; 17 went from fail to pass on llvmpipe and 12 on the iGPU.
  • Linux portable ctest: 81 pass, 2 skipped. Translator suite: 483 files, 6,254 tests, 0 failed. All 497 standalone Python test files pass. check_no_game_data.py is clean on the 301 changed files.
  • The watchdog commit was built and the loader and tiny-guest tests re-run on top; the docs and registration tests pass on the exact tree that lands.
  • Not run here: MSVC, native Windows, NVIDIA, and the game.

Open:

  • d3d12_geometry_views (LEONIDA_GEOMETRY_MB=16, off by default) fails on the RDNA2 iGPU: the kernel rejects the first submission, as it did on this branch's head. It fits the known RADV problem with write-protected pages under a live host import.
  • #1364's staging fallback does not yet cover title images (Pascal).
  • Nine comments cite docs/re/... notes that are not in the repository; they can be removed or the notes added.

Next: #968 (queue slot 31), which this branch needs to reach the story load, goes in right after this, with oscarlosu-lab's CPU-view fix. Then #939 on top. Runs of main after both, on any card, would be the real check.

AI-assisted (Claude Code, Claude Fable 5.2 and Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7149762244 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7149762244). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-25T01:37:22Z. --- Merged. Thank you, @Moriz82: this is the largest step `main` has taken towards the story load. @ubiquitarianism, this was the first part of your `RT-PALMETTO-PARITY` claim, done as announced above. **How it was brought up to date:** `main` was merged into this branch, not rebased, so your commit `273b3bdf9` is untouched and nothing was force-pushed. 42 files conflicted. They were resolved in five groups by one rule: where `main` and this branch carried the same change, `main`'s reviewed form stays and what this branch did beyond it is carried into it; everything only this branch had is kept. That covers the title-memory windows and write-watch, the image pool, pinned reads, queue `Signal`/`Wait`, the fence mirror, the list proxy, the presenter with its shared `FrameTokenSource`, and the translator and tool work. **Where the measured boot wins over `main`'s reading:** - Device slot 81 with no presenter answers `S_OK` with a zero count. - `PresentX` is queue slot 30, or 32 on a queue detected as the newer layout; `LEONIDA_XS_PRESENT_X_SLOT` pins it. **Changed for the title, please check these first in a run:** device slots 61 and 74 and queue slot 18 now follow `main`'s caller rule (`set_console_caller`, installed in `D3D12XboxCreateDevice`), instead of this branch's own heuristics. **Maintainer decisions in this merge:** - **The title's hang watchdog stays armed by default**, as on the console. `LEONIDA_TITLE_WATCHDOG=0` turns on the thread that keeps it from firing, for example on a first boot after a driver update. - The diagnostic output marked as local is behind `LEONIDA_LOCAL_DIAGNOSTICS=1`, off by default. - The per-shader keys in `docs/embedded_shaders.md` stay. **Fixed on the way, each in its own commit:** - the presenter held a reference on the device proxy that owns it, so neither was ever released; - copies between the A8-backed and the R8-backed form of A8 textures used a copy Vulkan does not allow; `VK_KHR_maintenance5` sat inside another extension's guard; - a parallel-build race on the generated m15 shaders, and `pso_stream_test` breaking the Linux build; - reference counts racing the compute pipeline warm-up (`d3d12_compute`, `d3d12_fspx_compute`); - 14 test files this branch brought in red, each fixed at the cause or with its out-of-date model updated; - attribution of the record-layout facts and the TuxBox licence note. **Tests** (clang-cl with the xwin SDK; the full runtime suite under Wine on llvmpipe and an RDNA2 iGPU, RADV): - Against `main`: no test went from pass to fail on either device. 46 tests are new and pass; `dstorage`, `run_startup_cmdline` and `xmem` went from fail to pass on both, and `d3d12_xmem_placed` on the iGPU. - Against this branch's own head before the merge: no test from pass to fail; 17 went from fail to pass on llvmpipe and 12 on the iGPU. - Linux portable `ctest`: 81 pass, 2 skipped. Translator suite: 483 files, 6,254 tests, 0 failed. All 497 standalone Python test files pass. `check_no_game_data.py` is clean on the 301 changed files. - The watchdog commit was built and the loader and tiny-guest tests re-run on top; the docs and registration tests pass on the exact tree that lands. - Not run here: MSVC, native Windows, NVIDIA, and the game. **Open:** - `d3d12_geometry_views` (`LEONIDA_GEOMETRY_MB=16`, off by default) fails on the RDNA2 iGPU: the kernel rejects the first submission, as it did on this branch's head. It fits the known RADV problem with write-protected pages under a live host import. - #1364's staging fallback does not yet cover title images (Pascal). - Nine comments cite `docs/re/...` notes that are not in the repository; they can be removed or the notes added. **Next:** #968 (queue slot 31), which this branch needs to reach the story load, goes in right after this, with oscarlosu-lab's CPU-view fix. Then #939 on top. Runs of `main` after both, on any card, would be the real check. AI-assisted (Claude Code, Claude Fable 5.2 and Claude Opus 5.5).
3L1A5-1 commented 2026-11-25 02:50:09 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by 3L1A5-1 on 2026-11-25T02:50:09Z.


Native Windows + MSVC + NVIDIA result for main after this and #968 (3ff2a2adc, built unchanged; scripts/build_runtime.ps1, RelWithDebInfo, MSVC 19.44).

  • ctest: 361/361 passed, 0 failed (2 gameinput disabled, no SDL3). This includes xmem, dstorage, run_startup_cmdline, queue_proxy, device_proxy and every xs_proxy_mock variant.
  • scripts/run_gpu_tests.py: 208 passed, 0 failed, 50 skipped. In the first of two full runs, cs_dpp_fi and cs_w32_misc_ext failed with only their device line; they pass alone 3/3 and in the second full run, so I count them as transient here.
  • With LEONIDA_W64_EMULATE=1: 241 passed, 0 failed, 17 skipped.

Hardware: RTX 2060 SUPER 8 GB (Turing), driver 617.14, Windows 11 26300, 16 GB RAM. Not run yet: the game on main; a guarded run on this 16 GB machine will follow once a shader library from main's translator is built.

AI-assisted: yes

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7151248590 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7151248590). Originally posted by [3L1A5-1](https://github.com/3L1A5-1) on 2026-11-25T02:50:09Z. --- Native Windows + MSVC + NVIDIA result for `main` after this and #968 (`3ff2a2adc`, built unchanged; `scripts/build_runtime.ps1`, RelWithDebInfo, MSVC 19.44). - ctest: 361/361 passed, 0 failed (2 `gameinput` disabled, no SDL3). This includes `xmem`, `dstorage`, `run_startup_cmdline`, `queue_proxy`, `device_proxy` and every `xs_proxy_mock` variant. - `scripts/run_gpu_tests.py`: 208 passed, 0 failed, 50 skipped. In the first of two full runs, `cs_dpp_fi` and `cs_w32_misc_ext` failed with only their device line; they pass alone 3/3 and in the second full run, so I count them as transient here. - With `LEONIDA_W64_EMULATE=1`: 241 passed, 0 failed, 17 skipped. Hardware: RTX 2060 SUPER 8 GB (Turing), driver 617.14, Windows 11 26300, 16 GB RAM. Not run yet: the game on `main`; a guarded run on this 16 GB machine will follow once a shader library from `main`'s translator is built. AI-assisted: yes
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!984
No description provided.