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

Manually merged
github merged 39 commits from gh-pr/984/head into gh-pr/984/base 2026-11-26 09:31:53 +00:00
Owner

@⁠Moriz82 on GitHub · 2026-11-24 16:24 UTC · original
integration/proton-story-load → main · +37997 −2599 · 301 files · 39 commits · merged 2026-11-25 01:37 UTC

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

**@⁠Moriz82** on GitHub · 2026-11-24 16:24 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/984) `integration/proton-story-load` → `main` · +37997 −2599 · 301 files · 39 commits · merged 2026-11-25 01:37 UTC Claimed in the coordination issue as: RT-PROTON-STORY-LOAD ([claim](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14)). 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)
One squashed commit of a fork that was developed on a Linux/Proton machine and
tested on two native Windows machines. On all of them the retail 1.0.2.1
package now launches, shows its launch movie, first-run pages and landing
prompt, runs the story load to its end with the loading slideshow drawing its
artwork, and enters the world phase. A first world frame is not verified yet.
docs/linux_proton.md has the setup, a healthy boot's timeline, the machines
and where it stops.

Runtime: frames in the title's own window; DirectStorage pinned reads,
page-list scatter/gather, BCPack and unshuffle with a locally generated
predictor file; pooled, device-local and deferred image backing for streamed
and placed textures; enhanced barriers into LAYOUT_UNDEFINED; a bindless table
that degrades instead of refusing a submission; a descriptor hash finalizer
(off until a library carries it); directly indexed heap offsets for compute
dispatches and VS/PS/GS draws; title buffer windows outside a fragmented
arena; opt-in device-local copies of streamed buffer views; write-fault
retries under the tracker lock, shared trackers and write-watched title memory
for native Windows; device-loss, compute-input and memory probes.

Translator: loop bounds at structured exits, the eight FidelityFX programs
that use a packed-dot form the disassembler skips, buffer bounds modes per
view kind, a compaction option, the hash finalizer option.

Tools and scripts: Linux boot scripts (Wine/Proton, no network), a Windows
boot script, the paired compute translation script.

No game data. AI-assisted (Claude Code and Codex agents), reviewed and booted
by people on the machines named in docs/linux_proton.md.

Co-authored-by: Plaaasma <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Merges main at 1154976d4 into the integration branch at 273b3bdf9 (merge base ece4ba5b3). 42 files conflicted;
this commit is the resolution only. Build and test repairs follow in their own commits.

Rule of resolution: where both sides added different things, both stay; where both made the same change in two
forms, main's reviewed form stays and whatever #984's form did in addition is carried into it; where the two
changed the same code for different purposes, both purposes are kept.

Xbox proxy code (runtime/shims/d3d12_xs_device.cpp, d3d12_xs_device.h, d3d12_xs.cpp, d3d12_xs_alloc_size.h,
d3d12_xs_desc_clean.h, registry.cpp):
- d3d12_xs_device.cpp is #984's file with main's differing pieces ported in: env_slot and the configurable device
  routes, XboxQueueSlotRoutes, PresentationHandler / set_presentation_handler, the console caller rule for device
  slots 61 and 74 (#383, #385), route_xbox_device_slot, slot 81 as GetFrameStatisticsX, create_host_device, the
  console-form rule for slots 25 and 56, the console list IID of #359, and the forms of queue slot 18 (#403) and
  list slot 139 (#396).
- Kept from #984: the list proxy with handle translation, queue slots 16/17 as Signal/Wait, the fence's
  completed-value mirror, the shared FrameTokenSource, PresentX through queue_present_x when no handler is
  attached (slot 30, or 32 on a queue detected as the newer layout), slots 27/53/55/57/70/71/133, the wider
  pc_resource_desc, S_OK for queue slots past the PC table.
- Dropped: #984's GetFrameEventsX and LEONIDA_XS_FRAME_EVENTS_SLOT, its second-word rule for slot 61, its
  undetected-layout rule for queue slot 18, its list IID mapping to GraphicsCommandList6; main's copy of the base
  list proxy, its null-view slot 70 and its refusing slot 133.

Proxy tests (runtime/test/xs_proxy_mock_test.cpp, device_proxy_test.cpp, queue_proxy_test.cpp):
- Checks of both sides, each run once; main's forms of the render-target size and layout checks with #984's extra
  cases added; main's --env-slots-74 and #984's --env-slots-70.
- Adapted to the merged code: the queue tail answers S_OK, slot 73 answers an unknown IID with the list proxy,
  the queue slot 18 case installs a console caller. Dropped: #984's slot 81 GetFrameEventsX cases.

D3D12/Vulkan layer (runtime/shims/d3d12_com.cpp, d3d12_vulkan_device.cpp, runtime/src/command_list.h,
frame_pacer.h, shader_library.h, vulkan_backend.h, vulkan_replay.h, runtime/test/command_list_test.cpp,
d3d12_close_parity_test.cpp, d3d12_execute_indirect_validation_test.cpp, replay_texture_barrier_test.cpp,
vk_pipeline_check.cpp, vk_test_device.h):
- Resource::create_texture: #984's title images (deferred placed, pending streamed, title pool) and main's
  ordinary textures (#1413 shared blocks, #1364 staging fallback) are exclusive branches chosen by the texture's
  origin, so both pools run on disjoint sets of textures.
- frame_pacer.h is main's pacer (#402) with #984's FrameTokenSource as the token counter.
- main's forms kept for ExecuteIndirect (#1066, #377), the barrier into LAYOUT_UNDEFINED (#1055), the B4G4R4A4
  stand-in, per-face stencil masks, the unaligned tile staging (#528) and the device-lost flag (#980).
- shader_library.h: main's block inflate; #984's `bulk` parameter now defaults to true so main's callers keep it.
- Dropped: #984's B8G8R8A8 stand-in for B4G4R4A4 targets, its refusal of separate stencil masks, its zero-count
  refusal in ExecuteIndirect, its wider UNDEFINED -> UNDEFINED release and the test case for it.

Other shims (runtime/shims/dstorage.cpp, file_system.cpp, gameinput.cpp, xgameruntime_offline.cpp,
runtime/test/xgameruntime_offline_test.cpp, xmem_test.cpp):
- ReadFile and DirectStorage reads: #984's pinned kernel_writes read, then main's touch_pages retry on
  ERROR_NOACCESS. main's rt::fs::read_file is folded into #984's read_file.
- gameinput: main's strict LEONIDA_INPUT_SCRIPT parser with #984's rsup/rsdown entries.
- Speech synthesis: main's one silent voice and handle checks; #984's accept-anything form dropped.

Build, tools, docs (runtime/CMakeLists.txt, runtime/cmake/translator_deps.cmake, scripts/build_runtime.ps1,
make_game.py, tools/rdna2spirv.py, shader_disasm.py, shader_ir.py, shader_library.py,
runtime/test/shaders/cs_imgload_tfe.asm, cs_imgload_d16_tfe.asm, docs/README.md, boot.md, d3d12_vulkan.md,
runtime/README.md):
- Unions of the test, target and source lists; spirv_loop_guard.py added to translator_deps.cmake.
- rdna2spirv.py: main's DPP compare rule (#957), SMEM vcc base (#647) and widen_wave64_masks (#1021); #984's
  restore_skipped_instructions and restore_dot4_inline_sel. #984's duplicate widen_wave64_valu_masks dropped.
- shader_disasm.py and shader_ir.py: main's structure with #984's one-line-per-dword llvm-mc input and wave flags.
- shader_library.py: main's structure with #984's --compute-hashes and per-state compute variants.

One file that did not conflict is changed here: tools/rdna2_decode.py. Git kept both sides' decoders for a VOPC
compare with a DPP operand, and #984's narrower one shadowed main's; it is main's file again.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
main's failed-resize case (a3090aab2) builds a VulkanSwapchain with eight arguments; #984 gave the constructor a ninth, DeviceFaultDiagnostics*, with no default. Pass nullptr, as #984's own case in this file does.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
#984 adds pso_stream_test under BUILD_TESTING, outside the Windows block. It includes d3d12.h and takes MSVC options, so the portable configure on Linux and macOS failed to compile it (c++: cannot specify -o with -c and multiple files). Define it only when gta6rt is built, like the other proxy tests.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
#984's loop guard (tools/spirv_loop_guard.py, the 'Loop guard' row in docs/design.md) puts an iteration counter at every loop header as an OpPhi. The interpreter this test file carries did not model OpPhi, so the four loop cases stopped with 'Opcode not modelled' on the translator's default output. The interpreter now tracks the predecessor block and evaluates OpPhi; the cases and their expected values are unchanged.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
The test expected spirv_mini_interp to refuse the emulated wave64 round loop. #984 taught the interpreter OpSwitch (and OpUMod), so the module now runs and assertRaises failed. The expectation was out of date: the case now executes all 64 lanes for each of the five modes and compares the stored values with the ISA model, which is a stronger check than the refusal was.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Same cause as in test_ds_swizzle_b32: spirv_mini_interp models OpSwitch since #984, so the emulated scheduler runs and the expected UnsupportedConstruct no longer comes. The case now executes v_permlane16_b32 and v_permlanex16_b32 on 64 lanes and compares with ref_permlane.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
#984 lists the generated m15 shader files as sources of two targets, d3d12_translated_draw_test and its new d3d12_rect_list_test. With a Makefile generator each target then runs the translation command itself; under a parallel build both ran at once, each removing the folder the other was writing, and the build stopped with 'Translation did not produce validated SPIR-V for: vs_m15, ps_m15' (seen in the clang-cl build of the merge; it is a race, so #984's head happened to build). d3d12_rect_list_test now depends on d3d12_translated_draw_test for the files, as tiny_guest_draw does.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
The merge kept main's form of device slot 81 (GetFrameStatisticsX: an attached presentation answers first) and with it main's answer when nothing is attached, S_FALSE with a zero count. No retail run has been through that answer: it is a reading of the public samples. #984, the tree that was measured to boot through the story load, answers the same call with S_OK and a zero count, and E_POINTER for a null count or for a count above zero with no array (its GetFrameEventsX handler). Nothing attaches a presentation in gta6rt, so this is the answer the title gets.

main's structure stays (the configurable route, the logged name, the handler first); only the answer without a handler is #984's. Both forms write the count through the third argument, so the two do not disagree about the layout. The mock tests (env-slots-invalid, check_presentation_wiring), the header comment and the row in docs/d3d12_vulkan.md say the same.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
tests/test_docs_env_vars.py fails when the runtime reads a LEONIDA_* variable that no document names; #984 brings 32 of them (the test fails on its head too). Each is described in a new table in runtime/README.md, from the code that reads it: the default, what the switch changes, and which ones are diagnostics only. None is removed: every one is behind its own switch already and off, or the default path of the retail boot.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
The XUser paragraph #984 adds cites docs/re/takes/other-projects.md, which is not a tracked file, so tests/test_docs_repo_paths.py fails (on #984's head too). The sentence stands without the citation.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
#984's tool wrote history.json, the generated tables and the signature stamp as text without newline=, so the bytes differed between Windows and the other platforms; tests/test_text_write_line_endings.py fails on that (on #984's head too). All four writes are UTF-8 with LF now.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
#984's new slot 25 case first checks that the PC device refuses a depth-stencil texture with unordered access. Microsoft's runtime (WARP) does; Wine's vkd3d sizes the texture without validating the flag pair, so under Wine device_proxy and device_proxy_trace failed at that line (on #984's head as well as on the merge; both pass on main, which has no such case). The control now runs only where the host is Microsoft's, the way the other host comparisons do it (host_wine.h). The checks of the proxy itself are unchanged and run everywhere.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
#984 carries the probes its author followed a frame of the retail title with, marked LOCAL DIAGNOSTIC and in places 'not for upstream'. Several wrote to stderr with no switch from paths that run for every draw: record_draw (a mutex, a set lookup and up to a dozen lines per draw), ClearRenderTargetView, the submission's table dump, PresentX (present_diag and the plane dump), the presenter's path line, the heap and CopyDescriptorsSimple lines of the device proxy, the per-view CBV and SRV lines, the per-pipeline description string and the console-heap census.

They stay, for the next person who has to follow a frame, behind one switch: LEONIDA_LOCAL_DIAGNOSTICS=1 (runtime/src/local_diagnostics.h, a row in runtime/README.md). Unset, none of them runs. Not changed: the diagnostics that already had a switch of their own (LEONIDA_CAPTURE_SOURCE, LEONIDA_MEM_PROBE, LEONIDA_XG_TRACE, --trace) and the replay's unresolved/unsupported lines, which report a dropped draw or list at the 1st, 2nd, 4th... occurrence.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
#984 builds compute pipelines lazily and queues every one for a warm-up on a worker thread; a queued job holds its PipelineState, and through it the device, until the worker has run it. A test that releases everything and then reads rt::d3d12_xs::device_proxy_ref_count races with that worker: d3d12_fspx_compute fails at 'device_proxy_ref_count == 1' on #984's head, and on the merge d3d12_compute fails the same way on llvmpipe (main's case there creates pipelines it never dispatches, which only the warm-up ever builds). Both pass on main.

The warm-up stays as it is. device_proxy_ref_count, a helper only the tests call, now lets the layer under the proxy finish such work first: the Vulkan device registers PipelineCompiler::wait_idle through set_reference_settler, and the pool reports itself idle when no job is queued or running. The tests are unchanged.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
The presentation the device proxy builds on the first PresentX (or for the package splash) is meant to go with the proxy: proxy_release destroys it before the device. It could not: create_window_presenter gives the presenter a reference on the device's outer identity, and for a device made by D3D12XboxCreateDevice that is the proxy (set_device_outer). The proxy owned the state, the state the presenter, the presenter a reference to the proxy, so after the first PresentX the proxy's count could not reach zero and the window, the swapchain and the device stayed until the process ended.

#984's presenter has this cycle as the #414 branch had it; the fix is the one made there (rung-414-on-main, ea9228dc0), applied to #984's form of present_state_for. create_window_presenter gets a hold_device argument, true by default so every other caller keeps its reference. The proxy passes false: it owns the presenter and destroys it before it releases the device, which is the order the reference was there to guarantee.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
The merge kept main's B4G4R4A4 render target stand-in (an RGBA8 image) and dropped #984's (a BGRA8 image). #984's DeviceState::b4g4r4a4_target_stand_in was left behind: computed at device creation, read by nothing, and printed in the 'console format stand-ins' line as 'B4G4R4A4 target as BGRA8', which is no longer what happens. The flag and its clause of the log line are gone; main's stand-in logs itself when it is used.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
An A8_UNORM render target is a VK_FORMAT_A8_UNORM_KHR image and any other
A8_UNORM texture an R8_UNORM image. CopyResource and CopyTextureRegion
between the two issued vkCmdCopyImage on that pair, which Vulkan does not
count as size-compatible: VUID-vkCmdCopyImage-srcImage-01548, although the
bytes came out right on the drivers tried. moffington reported it in the
review of #428 and Dezmonius confirmed it on native Windows with the
validation layer.

Such a copy now takes the replay's existing image -> transfer scratch ->
image route, the one depth <-> colour copies use, with one byte per texel
on both sides. Same-backing copies still copy image to image. This is the
approach of Dezmonius's proof of concept, which they described on the pull
request but did not publish; written here from that description.

d3d12_a8_copy_test copies A8 render target -> A8 texture and back, whole
(CopyResource) and a 3x3 box from a nonzero source offset to a nonzero
destination offset (CopyTextureRegion), and checks every texel read back:
the source bytes inside the box, the destination's own outside it. It wraps
vkCreateImage and vkCmdCopyImage behind the instance-proc pointer it hands
the layer and fails on any vkCmdCopyImage between VK_FORMAT_A8_UNORM_KHR and
another format, so it fails without this change even where the validation
layer is not installed; with LEONIDA_VK_VALIDATION=1 the layer's errors fail
it too. A8 -> A8 and R8 -> R8 copies are the controls.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
From rung-428-on-main (554f0e4ec). The bug that commit fixed, VK_KHR_maintenance5 enabled inside maintenance8's #ifdef, is not in #984's copy of the A8 support: the enable already sits under its own guard here, so only the comment on it comes over. What the commit adds besides still applies:

tests/test_vulkan_extension_guards.py reads the runtime sources and fails on any device extension enabled inside another extension's #ifdef. d3d12_a8_copy_test also forces the fallback (a8_render_target false) on any device: A8_UNORM render targets are refused at creation, in GetResourceAllocationInfo and in the format support, no A8 image is created, and plain A8_UNORM textures still copy.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
d3d12_a8_dimensions_test makes its device without the A8 render-target
path, so it covers 1D and 3D A8_UNORM textures only in the fallback.
d3d12_a8_copy_test now also checks them on a device that has the path:
a 128x1 1D and an 8x8x4 3D A8_UNORM texture are created as R8_UNORM
images (no VK_FORMAT_A8_UNORM_KHR image is made for them), so they are
never one side of a mixed-backing copy, and a 1D A8_UNORM render target is
refused rather than made in either backing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The header credited "TomBox's create_derived_pso_x, GPL-3.0" without saying where that is. The credit now names the repository, the file and the licence: omonkeyz/xbox-emulator, crates/compat/d3d12_xs/src/device_wrap.rs (the continuation of drycheetah84/TomBox), GPL-3.0-or-later. Only layout facts are shared with it (the record stride and the meaning of tags 0 to 3), no code.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
The note called TuxBox unlicensed. GitHub reports brcly/TuxBox as Apache-2.0 now. The statement that it was a reference for behaviour only is unchanged.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
The case that loads fspx/, fspx_gfx/ and bvh/ indexes calls itself synthetic and runs against index files it writes itself, but two of its keys were the SHA-256 digests of two programs of the game's pipeline library (the ones docs/fspx.md cites as programs 842 and 843), with those numbers in the file names. A hash is not content, but a synthetic test has no reason to carry real ones, and nothing in the case depends on the values. They are 3333... and 4444... now, next to the 1111... and 2222... the case already used, with file names _00001 and _00002.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
The merged queue proxy recognises PresentX at slot 30 on a queue in the older layout and at slot 32 on a queue detected as the newer one (a fence at slot 16 or 17, or SignalX at 25), which is #984's measured behaviour, with main's LEONIDA_XS_PRESENT_X_SLOT pinning one slot and an attached handler answering first. Only one of the two is PresentX at a time: in the newer layout slot 30 is another method.

docs/d3d12_vulkan.md still had main's row (the queue slots stay refused, gta6rt creates no presentation) and runtime/README.md still said PresentX has an unknown slot. Both describe the merged code now. check_presentation_wiring gains the newer-layout case: before the fence 30 reaches the presenter and 32 does not, after it 32 does and 30 does not.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Brings the branch up to main at b4b7756e8: #396 (console list slot 139 is Reset) and #403 (queue slot 18 is the frequency getter for a guest caller). The first merge already resolved the proxy to these two forms, so nothing changes in the code:

- runtime/shims/d3d12_xs_device.cpp: one conflict, main's copy of the base list proxy, which #396 edited and the first merge had dropped for #984's list proxy (the Reset rule of #396 is in #984's list_slot). Ours.
- runtime/shims/d3d12_xs_device.h: merged clean, unchanged.
- runtime/test/xs_proxy_mock_test.cpp: git added main's console_to_pc_list_slot(139) check next to the copy the first merge had put two lines lower; one stays, in main's place.

Every line the two pull requests added to these three files is in the result.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
#984's new test refuses device-local allocations to force the table into host memory, and says itself that the host fallback is not checked on a device with no host memory type outside device-local memory. But it injected the fault there too: llvmpipe has one memory type for everything, so every allocation was refused, the table could not grow and the check right after the frame failed (on #984's head, on Linux and under Wine; the test is in the portable subset, so a Linux CI run with lavapipe would be red). The fault is only injected where a separate host type exists; elsewhere the table grows normally in that step, and the all-memory-refused cases further down still run.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
The submission path looked up the origin of every bound descriptor table (a lock and a map lookup each) for the LEONIDA_FSDRAW_POKE_CB experiment, whether or not the experiment was on; poke_cb then returned at once. The loop now runs only with the experiment.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Both sides added a row for the same rule. The merge kept main's decoder and translator rule (#957) and dropped #984's narrower ones, but #984's row 'Pipeline-library DPP comparisons' merged in without a conflict and described a decoder that is no longer there. main's row 'DPP on a VOPC compare' covers the forms #984's handled (full-mask f32 compares) and names the refused ones.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
From rung-414-on-main (24a19ae8f), where it found the reference cycle fixed two commits ago, adapted to this tree: PresentX is called at queue slot 30 (a queue is in the older layout until a fence reaches slot 16 or 17), and the runtime's window is destroyed by the thread that owns it, so the last check waits for it to go (up to two seconds) instead of looking once.

It compiles the proxy with LEONIDA_VULKAN_DEVICE, as gta6rt does, and checks: the frame events before the first present are the device's own; nothing is built before the first PresentX and one window after it; WaitFrameEventX stays the device's and counts from the same token source the presenter checks (an unissued token is E_INVALIDARG, an issued one is accepted); a second PresentX builds no second window; and the window goes with the device proxy.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
The two SHADER-813 cases put the word pair of the original finding between instructions as 'undecodable' and expect the translation to be refused. #984 taught the translator to recover exactly that v_dot4_i32_i8 form from the program's words (restore_skipped_instructions), so with #984 the pair is no longer a gap and both cases failed (on #984's head too; the test file is the same on both sides). The cases now use the same instruction with another op_sel, which is not recovered and is still skipped, so they test what they were written for.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
#984 adds shims/console_registry.cpp to gta6rt's sources in CMake but not to the cl.exe fallback's list, so the fallback would stop at link time and tests/test_build_runtime_fallback.py fails (on #984's head too).

Co-Authored-By: Claude Fable 5.2 <[email protected]>
tests/test_gfx10_descriptors.py checks every row of the format table against Mesa's names and fails when a row does not have the form it parses. #984's A8 render target row carried a remark after the GFX10 name, so it was counted but not read (94 of 95 rows; fails on #984's head too). The remark is a comment line above the row now, and the row is checked like the others (the test already knows an extension's suffix is not part of the layout).

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Three conventions main's tests enforce and #984's new tools missed (all three tests fail on #984's head):

- tests/test_text_encoding.py: tools/build_dstorage_history.py read its stamp and its base history, and tools/dstorage_census.py its trace, in the locale's code page. They name UTF-8 now.
- tests/test_tool_stdout_encoding.py: the __main__ blocks of build_dstorage_history.py, dstorage_census.py, gen_bcpack_runtime_tables.py and scripts/translate_pipeline_compute.py did not set errors='replace' on stdout.
- tests/test_tool_startup.py runs every tool with --help. gen_bcpack_runtime_tables.py took its first argument as the output path whatever it was, so the test passed and left a 61 KiB file named '--help' in the working directory. The tool has an argument parser now (the tables file, or --profile JSON OUT, as before); the generated tables are byte-identical.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
The runtime workflow lists the files under tools/ that start it, and tests/test_runtime_paths.py fails when the build reads one that is not listed. #984 makes the runtime build read tools/spirv_loop_guard.py (a translator dependency) and tools/bcpack_history_train.cpp, which the test names (it fails on #984's head too), and the four Python files the bcpack tables are generated from (gen_bcpack_runtime_tables.py, bcpack.py, bcpack_tables.py, bcpack_tables_bptc.py), which CMake names through a variable the test cannot follow. All six are in both path lists now, so a change to any of them runs the Windows and Wine builds.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
#984 changed how a buffer's device address is formed: the low 48 bits of the effective VA are sign-extended before the heap base is added (Gen.host_addr, the 'Heap-relative buffer device addresses' row in docs/design.md), because a V# base is device_address - heap_base in 48 bits and is negative for an import below the heap. The memory differential fuzzer's reference machine still put a base with bit 47 set at the zero-extended address, so every case with such a base read zeros on the translated side: tests/test_mem_diff.py failed in nine families (on #984's head too).

The fuzzer has one function for where a VA is in memory, host_address, used by the reference machine's reads and writes and by the generator's seeding. The cases, the seeds and the interpreter are unchanged.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Follow-up to the LEONIDA_LOCAL_DIAGNOSTICS commit: the desc-probe still registered every console descriptor heap and printed a line for each of the first 48 view creations ('... outside the console heaps'), switch or not. A heap probe is only created when LEONIDA_LOCAL_DIAGNOSTICS or the compute probe is on, and the per-view line is behind the switch like the rest.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Three checks of the physical-page views fail under Wine, two of them on main as well (xmem is a known Wine failure there) and one that #984 adds; with #984 registering the test twice more (xmem_write_watch, xmem_no_write_watch) that made three red tests. Measured under Wine 11: a page of a reserved section view that has been written and reads back is still reported by VirtualQuery as MEM_RESERVE with protection 0 (type MEM_MAPPED, allocation protection PAGE_READWRITE), where Windows reports MEM_COMMIT and PAGE_READWRITE.

- 'unmapping one of them afterwards keeps the others' memory' (#984) asked whether the neighbours were still mapped through reserved_only(), which is the reported state. It asks for the view itself now (in_view: the region's type is MEM_MAPPED), which is what the check is about, and also that the unmapped page is no longer in one. Same on both hosts.
- The two checks of the reported state and protection of a written view page print SKIP with the reason when the host is Wine and gives exactly that answer; the first then still checks that the page is a read-write view holding what was written. On Windows both run as before.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
The second half of run_tiny_tls_ga (new in #984) points TMP and TEMP at a missing folder so that the home clone cannot be written and the loader must refuse the image. Under an emulator the override never reaches the loader: Wine gives the process the temporary folder of its prefix whatever the caller's environment says, so the reservation succeeds, --run returns 0 and the script failed with '--run without the reservation returned 0' (on #984's head too).

When the script runs the loader through an emulator it first asks --dry-run, which maps the image and names index 0 in a note when the reservation fails, without running any of its code. If that note is missing the override is not in effect: the script prints 'SKIP the failed-reservation half: TMP and TEMP set for <runner> do not reach the loader's GetTempPathW' and stops there, after the first half (the image gets index 0 and reads its TLS from slot 0) has passed. A native run is unchanged.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
The retail title runs its own hang watchdog: when the game's main loop has
not reported for 30 seconds, it ends itself. #984 kept that watchdog from
firing by default, because under the runtime the game thread can wait
longer than that, for example while the driver compiles pipelines on the
first boot after a driver update.

By the maintainer's decision the watchdog now stays armed by default, as on
the console, so a real hang still ends the run. LEONIDA_TITLE_WATCHDOG=0
turns on the runtime thread that keeps it from firing; as before, it only
acts in the build the watchdog was measured in. The README's environment
table and the log line say the same.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:31:50 +00:00
github manually merged commit 71a783e56f into gh-pr/984/base 2026-11-26 09:31:53 +00:00
Author
Owner

@⁠Poussistar on GitHub · 2026-11-24 16:52 UTC · original

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.

**@⁠Poussistar** on GitHub · 2026-11-24 16:52 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7138332281) 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.
Author
Owner

@⁠Moriz82 on GitHub · 2026-11-24 17:35 UTC · original · edited 2026-11-24 22:33 UTC

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

**@⁠Moriz82** on GitHub · 2026-11-24 17:35 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7139415784) · edited 2026-11-24 22:33 UTC **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)
Author
Owner

@⁠oscarlosu-lab on GitHub · 2026-11-24 17:47 UTC · original

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** on GitHub · 2026-11-24 17:47 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7139720653) 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)
Author
Owner

@⁠oscarlosu-lab on GitHub · 2026-11-24 18:14 UTC · original

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.
**@⁠oscarlosu-lab** on GitHub · 2026-11-24 18:14 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7140371521) 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.
Author
Owner

@⁠Plaaasma on GitHub · 2026-11-24 18:15 UTC · original

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.

**@⁠Plaaasma** on GitHub · 2026-11-24 18:15 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7140383042) 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.
Author
Owner

@⁠Tyrannys on GitHub · 2026-11-24 18:17 UTC · original

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).

**@⁠Tyrannys** on GitHub · 2026-11-24 18:17 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7140426327) 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).
Author
Owner

@⁠CLHelper on GitHub · 2026-11-24 18:23 UTC · original

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** on GitHub · 2026-11-24 18:23 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7140586311) 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.
Author
Owner

@⁠CLHelper on GitHub · 2026-11-24 18:33 UTC · original

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.

**@⁠CLHelper** on GitHub · 2026-11-24 18:33 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7140820759) 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.
Author
Owner

@⁠hubeton on GitHub · 2026-11-24 18:51 UTC · original · edited 2026-11-24 19:50 UTC

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.

**@⁠hubeton** on GitHub · 2026-11-24 18:51 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7141254616) · edited 2026-11-24 19:50 UTC 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.
Author
Owner

@⁠moffington on GitHub · 2026-11-24 18:53 UTC · original

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.

**@⁠moffington** on GitHub · 2026-11-24 18:53 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7141296631) 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.
Author
Owner

@⁠oscarlosu-lab on GitHub · 2026-11-24 19:04 UTC · original

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** on GitHub · 2026-11-24 19:04 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7141554673) 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)`.
Author
Owner

@⁠oscarlosu-lab on GitHub · 2026-11-24 19:31 UTC · original

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: #968
  • 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** on GitHub · 2026-11-24 19:31 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7142219300) 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://git.gtahub.st/github/ubiquitarianism--leonida/pulls/968 - 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).
Author
Owner

@⁠oscarlosu-lab on GitHub · 2026-11-24 20:00 UTC · original

@⁠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.)

**@⁠oscarlosu-lab** on GitHub · 2026-11-24 20:00 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7142919235) @⁠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.)
Author
Owner

@⁠ImLele69 on GitHub · 2026-11-24 21:53 UTC · original

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)

**@⁠ImLele69** on GitHub · 2026-11-24 21:53 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7145531353) 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)
Author
Owner

@⁠towade on GitHub · 2026-11-24 21:56 UTC · original

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).

**@⁠towade** on GitHub · 2026-11-24 21:56 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7145587033) 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).
Author
Owner

@⁠oscarlosu-lab on GitHub · 2026-11-24 23:46 UTC · original

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.
**@⁠oscarlosu-lab** on GitHub · 2026-11-24 23:46 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7147772853) Update on Windows 11 + RTX 3060 12 GB (**#984 + #968 + [CPU-alias fix](https://git.gtahub.st/github/ubiquitarianism--leonida/pulls/968)**, `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`.
Author
Owner

@⁠aslan2142 on GitHub · 2026-11-25 00:16 UTC · original

@⁠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).

**@⁠aslan2142** on GitHub · 2026-11-25 00:16 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7148329923) @⁠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).
Author
Owner

@⁠djrolfes on GitHub · 2026-11-25 00:16 UTC · original

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** on GitHub · 2026-11-25 00:16 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7148334803) 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.
Author
Owner

@⁠djrolfes on GitHub · 2026-11-25 00:23 UTC · original

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.

**@⁠djrolfes** on GitHub · 2026-11-25 00:23 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7148457263) 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.
Author
Owner

@⁠ThomasHFWright on GitHub · 2026-11-25 01:14 UTC · original · edited 2026-11-25 07:43 UTC

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: #939 . Raw title traces, shader data, disassembly and captures stay local; aggregate results only. AI-assisted.

**@⁠ThomasHFWright** on GitHub · 2026-11-25 01:14 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7149343586) · edited 2026-11-25 07:43 UTC 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://git.gtahub.st/github/ubiquitarianism--leonida/pulls/939 . Raw title traces, shader data, disassembly and captures stay local; aggregate results only. AI-assisted.
Author
Owner

@⁠madhyn on GitHub · 2026-11-25 01:14 UTC · original

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

**@⁠madhyn** on GitHub · 2026-11-25 01:14 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7149344408) 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
Author
Owner

@⁠aslan2142 on GitHub · 2026-11-25 01:37 UTC · original

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).

**@⁠aslan2142** on GitHub · 2026-11-25 01:37 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7149762244) 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).
Author
Owner

@⁠3L1A5-1 on GitHub · 2026-11-25 02:50 UTC · original

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

**@⁠3L1A5-1** on GitHub · 2026-11-25 02:50 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/984#issuecomment-7151248590) 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
This discussion has been locked. Commenting is limited to contributors.
No description provided.