[integration] Windows offline boot to the first-run UI (RT-WINDOWS-FIRST-RUN-UI) #939

Merged
Rain156 merged 145 commits from upstream-pr/939 into main 2026-11-25 02:33:46 +00:00
Rain156 commented 2026-11-24 15:19:19 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Rain156 on 2026-11-24T15:19:19Z.


Claimed in the coordination issue as: RT-WINDOWS-FIRST-RUN-UI (claim).

Depends on: #321, #213, #261, #281, #461, #526, #593, #596, #682, #722, #513, #681, #689.
The last three items overlap on specific code paths: #513 (constant-buffer rows), #681 (on-demand graphics pipelines), #689 (placed depth shapes). The native shader index from #497 is now on main.

What and why

This branch packages the source required to reproduce the offline first-run interface on Windows. The commit history includes the public frame-loop stack, the shader and resource implementations, the responsive presentation window and the rectangle fix. Contributors can build this head directly using their own unpacked Xbox 1.0.2.1 files.

The shader stage generates the native container catalog and translates the executable and library stages as well as the main archive. Native and derived PSOs retain the appropriate shader and root state. The Vulkan paths cover GPU-completed labels, generation-checked title memory, linear and tiled texture uploads, depth/stencil views, and rectangle compositing. Vertex and index data stays alive until its submission completes.

The new gta6rt --first-run-ui <exe> entry point selects the settings for this milestone. The runbook includes external build and work directories, the normal make_game.py command and the launch command. Build and launch from this branch

Tested

  • On the submitted eb6a08cd3 build, the documented --first-run-ui <exe> command displayed the full first-run controller-prompt row on a plain background. This launch used the default overlay and XMem paths, with tracing and internal frame capture off. Windows Graphics Capture independently recorded the game window at 2,856 × 1,464. Its RGB pixels matched previous independent launches. In the readback-enabled runs, the swapchain contained 1,855,276 non-black pixels out of 1,858,304. The runs used a locally supplied Xbox 1.0.2.1 package in a Windows AppContainer with zero network capabilities. Testing stopped at this first-run interface. Gameplay and 3D scenes remain unverified.
  • From an empty external shader workspace, the archive yielded 26,503 translated and SPIR-V-validated primary shaders and 25,321 unique native catalog digests. The auxiliary indexes contain 2,632 of 2,684 library programs, 27 of 29 FidelityFX programs, 52 of 52 BVH programs, and 10 of 10 executable-embedded programs. The normal check,shaders,runtime command regenerated the shaders with the updated assembler. The later catalog CLI help change reproduced the identical native catalog, and the final clean runtime was staged with check,runtime.
  • All 361 registered Windows CTests ran in the standard data-free suite. Across this run and the explicit Khronos validation reruns, 349 passed and 11 skipped. The remaining d3d12_vulkan_device test reported the same three committed-resource flag HRESULT differences (0x200, 0x400) on an unmodified upstream checkout on this adapter. The translated-draw and rectangle tests passed with synchronization validation enabled. A synthetic compute seed now hits the runtime cache after making the checker use the runtime mesh-query features, including for a compute-only batch.
  • The translator suite passed all 6,123 reported tests in 468 files. The VCC pointer fixture returned all eight seeded words on the physical GPU using wave64 emulation on a 32-wide subgroup. The GPU-runner checks passed 88/88 and 67/67. Documentation links passed 16/16 and viewer streaming passed 57/57.
  • Repository game-data and diff checks passed. The source and provenance are described in the runbook. Retail measurements are aggregate counts.

GPUs tested: NVIDIA GeForce RTX 5070 Ti, driver 617.42, Windows 11 x64 build 26200, MSVC x64 RelWithDebInfo.

AI-assisted: Yes (Codex).

Checklist

  • Based on main and checked for a clean merge.
  • One integration milestone with a repeatable build and launch procedure.
  • Source and synthetic fixtures only. The game-data checks passed.
  • The scalar-load translator change and its verification are recorded in docs/design.md.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5474993046 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/939). Originally posted by [Rain156](https://github.com/Rain156) on 2026-11-24T15:19:19Z. --- Claimed in the coordination issue as: RT-WINDOWS-FIRST-RUN-UI ([claim](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7132419355)). Depends on: #321, #213, #261, #281, #461, #526, #593, #596, #682, #722, #513, #681, #689. The last three items overlap on specific code paths: #513 (constant-buffer rows), #681 (on-demand graphics pipelines), #689 (placed depth shapes). The native shader index from #497 is now on main. ### What and why This branch packages the source required to reproduce the offline first-run interface on Windows. The commit history includes the public frame-loop stack, the shader and resource implementations, the responsive presentation window and the rectangle fix. Contributors can build this head directly using their own unpacked Xbox 1.0.2.1 files. The shader stage generates the native container catalog and translates the executable and library stages as well as the main archive. Native and derived PSOs retain the appropriate shader and root state. The Vulkan paths cover GPU-completed labels, generation-checked title memory, linear and tiled texture uploads, depth/stencil views, and rectangle compositing. Vertex and index data stays alive until its submission completes. The new `gta6rt --first-run-ui <exe>` entry point selects the settings for this milestone. The runbook includes external build and work directories, the normal `make_game.py` command and the launch command. [Build and launch from this branch](https://github.com/Rain156/leonida-contrib/blob/eb6a08cd359d98b5777e70d54d0ae8a75879495a/docs/first_run_ui.md) ### Tested - On the submitted `eb6a08cd3` build, the documented `--first-run-ui <exe>` command displayed the full first-run controller-prompt row on a plain background. This launch used the default overlay and XMem paths, with tracing and internal frame capture off. Windows Graphics Capture independently recorded the game window at 2,856 × 1,464. Its RGB pixels matched previous independent launches. In the readback-enabled runs, the swapchain contained 1,855,276 non-black pixels out of 1,858,304. The runs used a locally supplied Xbox 1.0.2.1 package in a Windows AppContainer with zero network capabilities. Testing stopped at this first-run interface. Gameplay and 3D scenes remain unverified. - From an empty external shader workspace, the archive yielded 26,503 translated and SPIR-V-validated primary shaders and 25,321 unique native catalog digests. The auxiliary indexes contain 2,632 of 2,684 library programs, 27 of 29 FidelityFX programs, 52 of 52 BVH programs, and 10 of 10 executable-embedded programs. The normal `check,shaders,runtime` command regenerated the shaders with the updated assembler. The later catalog CLI help change reproduced the identical native catalog, and the final clean runtime was staged with `check,runtime`. - All 361 registered Windows CTests ran in the standard data-free suite. Across this run and the explicit Khronos validation reruns, 349 passed and 11 skipped. The remaining `d3d12_vulkan_device` test reported the same three committed-resource flag HRESULT differences (`0x200`, `0x400`) on an unmodified upstream checkout on this adapter. The translated-draw and rectangle tests passed with synchronization validation enabled. A synthetic compute seed now hits the runtime cache after making the checker use the runtime mesh-query features, including for a compute-only batch. - The translator suite passed all 6,123 reported tests in 468 files. The VCC pointer fixture returned all eight seeded words on the physical GPU using wave64 emulation on a 32-wide subgroup. The GPU-runner checks passed 88/88 and 67/67. Documentation links passed 16/16 and viewer streaming passed 57/57. - Repository game-data and diff checks passed. The source and provenance are described in the runbook. Retail measurements are aggregate counts. GPUs tested: NVIDIA GeForce RTX 5070 Ti, driver 617.42, Windows 11 x64 build 26200, MSVC x64 RelWithDebInfo. AI-assisted: Yes (Codex). ### Checklist - [x] Based on `main` and checked for a clean merge. - [x] One integration milestone with a repeatable build and launch procedure. - [x] Source and synthetic fixtures only. The game-data checks passed. - [x] The scalar-load translator change and its verification are recorded in `docs/design.md`.
towade commented 2026-11-24 20:19:35 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by towade on 2026-11-24T20:19:35Z.


checked: eb6a08cd3 built and run as the runbook says, on two GPUs neither of the tested machines had. Windows 11 26300, MSVC 19.44 (CMake + Ninja, -DLEONIDA_REQUIRE_VULKAN=ON -DLEONIDA_D3D12_SHIM_TESTS=ON, no SDL3), own 1.0.2.1 copy, a fresh work folder from this branch's make_game.py --stages check,shaders,runtime (47 min, exit 0: 26,503 main, 1,793 pipeline library, 22 FSPX, 52 BVH, 10 executable programs). Launched with --first-run-ui <exe> --trace --trace-d3d12, the executable's network blocked, stopped after 180 s. Counts only.

AMD Radeon RX 9070 XT (RDNA4, 32.0.32029.2010) Intel UHD 770 (Xe-LP, 32.0.101.7092, no mesh shaders)
end still running at 180 s, no exception the title's int3 after 10 s
D3D12 calls 91,670 1,656
PresentX ok / failed 130 / 0 0 / 0
ExecuteCommandLists ok / failed 130 / 0 0 / 0
pipeline states ok / failed / unsupported 68,520 / 0 / 0 0
DrawInstanced / DrawIndexedInstanced / Dispatch 190 / 137 / 36 0 / 0 / 2

On the RX 9070 XT, PresentX uses the title's own window and the presents are spread over the run: 57,572 of the 68,520 pipeline states are created after the first present, so the low present count is pipelines still being built on demand. The run logs a few remaining refusals: some slot 67 calls with large kind-6 blobs, a depth-stencil UAV plane of format 56, a view format 119 and an RTV format 28.

On the UHD 770 the run stops at the same window/settings guard as on main and #321 on this GPU (1,655 calls there), so this branch doesn't change that stop.

What the window shows on the RX 9070 XT. In a second run (same counts: 204 PresentX ok, 0 failed, no exception) I captured the title's window at 60, 120 and 170 s (3660x1940). All three show the milestone this PR describes: a plain dark background and, at the bottom right, the controller-prompt row with two button prompts (Y and A), legible and in the system language (German here). The picture doesn't change between 60 and 170 s. I'm not attaching the screenshots, since they show the title's own interface.

Not checked: input (no controller connected, no keys pressed), anything past 180 s, and the run without --trace-d3d12.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7143370974 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7143370974). Originally posted by [towade](https://github.com/towade) on 2026-11-24T20:19:35Z. --- checked: `eb6a08cd3` built and run as the runbook says, on two GPUs neither of the tested machines had. Windows 11 26300, MSVC 19.44 (CMake + Ninja, `-DLEONIDA_REQUIRE_VULKAN=ON -DLEONIDA_D3D12_SHIM_TESTS=ON`, no SDL3), own 1.0.2.1 copy, a fresh work folder from this branch's `make_game.py --stages check,shaders,runtime` (47 min, exit 0: 26,503 main, 1,793 pipeline library, 22 FSPX, 52 BVH, 10 executable programs). Launched with `--first-run-ui <exe> --trace --trace-d3d12`, the executable's network blocked, stopped after 180 s. Counts only. | | **AMD Radeon RX 9070 XT** (RDNA4, 32.0.32029.2010) | **Intel UHD 770** (Xe-LP, 32.0.101.7092, no mesh shaders) | |---|---|---| | end | still running at 180 s, **no exception** | the title's `int3` after 10 s | | D3D12 calls | 91,670 | 1,656 | | `PresentX` ok / failed | **130 / 0** | 0 / 0 | | `ExecuteCommandLists` ok / failed | 130 / 0 | 0 / 0 | | pipeline states ok / failed / unsupported | 68,520 / 0 / 0 | 0 | | `DrawInstanced` / `DrawIndexedInstanced` / `Dispatch` | 190 / 137 / 36 | 0 / 0 / 2 | On the RX 9070 XT, `PresentX` uses the title's own window and the presents are spread over the run: 57,572 of the 68,520 pipeline states are created after the first present, so the low present count is pipelines still being built on demand. The run logs a few remaining refusals: some slot 67 calls with large kind-6 blobs, a depth-stencil UAV plane of format 56, a view format 119 and an RTV format 28. On the UHD 770 the run stops at the same window/settings guard as on `main` and #321 on this GPU (1,655 calls there), so this branch doesn't change that stop. **What the window shows on the RX 9070 XT.** In a second run (same counts: 204 `PresentX` ok, 0 failed, no exception) I captured the title's window at 60, 120 and 170 s (3660x1940). All three show the milestone this PR describes: a plain dark background and, at the bottom right, the controller-prompt row with two button prompts (Y and A), legible and in the system language (German here). The picture doesn't change between 60 and 170 s. I'm not attaching the screenshots, since they show the title's own interface. Not checked: input (no controller connected, no keys pressed), anything past 180 s, and the run without `--trace-d3d12`. AI-assisted (Claude Code).
towade commented 2026-11-24 20:52:51 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by towade on 2026-11-24T20:52:51Z.


Follow-up to my run above, now with an Xbox Wireless Controller paired over Bluetooth (SDL names it "Xbox One S Controller", 045e:02e0). Same head eb6a08cd3, same work folder, RX 9070 XT only, --first-run-ui <exe> --trace --trace-d3d12, the executable's network blocked, stopped after 180 s. A person pressed A and Y on the pad while the controller-prompt row was on screen.

Without SDL3 (the build from my first comment): the import list shows no shim for GameInput.dll!#1, so it binds to the host's GameInput.dll. The presses had no visible effect. That run also ended early: at about 103 s two write access violations inside the title's video library, then the title's int3 at 106 s. The two earlier runs without a pad did not show this, and neither did the SDL3 run below, so it is intermittent and I can't tie it to the input.

With SDL3 (-DLEONIDA_SDL3_FETCH=ON, the pinned 3.4.20, otherwise the same options):

RX 9070 XT, SDL3 build
end still running at 180 s, no exception
PresentX ok / failed 212 / 0
GameInput.dll!#1 bound to the shim
shim SDL 3.4.20 gamepads, pad connected as player 1, keyboard pad as player 2; "no raw HID" for the pad (XInput interface, as the log explains)
button presses the shim reports from the pad 7 (input in use: Xbox … button press)
what the window shows the same dark background with the two prompts (Y and A) bottom right, from about 90 s to the end

So the presses reach the shim, but the screen doesn't react to either button, and apart from the shim's own lines the log shows nothing new after them: no xgameruntime line, only the frame loop.

What the title asks GameInput for. To see whether the title reads the pad at all, I added a local trace to the shim (not part of this PR: a log line for the first three calls of each method and then every power of two, behind an environment switch) and ran twice more, same setup:

  • At start the title calls GameInputCreate and RegisterDeviceCallback(kind = gamepad, status = connected, blocking enumeration). That call comes before SDL has reported the pad, so the enumeration finds nothing and the pad arrives through the callback afterwards. Later it registers a second device callback for the keyboard kind.
  • From about the time the controller-prompt row appears, it polls GetCurrentReading(gamepad, <device>) with a device: alternately the pad (045e:02e0) and the shim's keyboard pad. Every call returns S_OK, followed by GetGamepadState. No GetNextReading, no reading callbacks, no GetUiNavigationState.
  • It polls about once per frame, and frames come at roughly one per second at this point. In the first traced run every poll saw buttons = 0, because a short press fell between two polls. In the second the buttons were held for about 3 s each, and GetGamepadState returned the buttons: the trace's first button-down lines show A (0x4), then Y (0x20) on three polls in a row (the trace skips most later calls, so these are lower bounds).
  • Even then nothing happened: the window capture after the presses is byte-identical to the one before, and the log has no line after the presses except the frame loop and one memory-window note.

So on this branch the input path works end to end: the pad is enumerated, the title polls it and gets the buttons. The prompts not reacting is something past GameInput. Whether that action needs a runtime service the offline layer doesn't answer, or the title only acts on the press in a state it hasn't reached yet, I can't tell from these logs. One side note for anyone testing input here: at about one frame per second, a normal short press is usually missed by a title that polls the current reading, so hold the button.

Not checked: the Intel GPU with the pad, rumble, and anything past 180 s.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7144179958 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7144179958). Originally posted by [towade](https://github.com/towade) on 2026-11-24T20:52:51Z. --- Follow-up to my run above, now with an Xbox Wireless Controller paired over Bluetooth (SDL names it "Xbox One S Controller", 045e:02e0). Same head `eb6a08cd3`, same work folder, RX 9070 XT only, `--first-run-ui <exe> --trace --trace-d3d12`, the executable's network blocked, stopped after 180 s. A person pressed A and Y on the pad while the controller-prompt row was on screen. **Without SDL3** (the build from my first comment): the import list shows no shim for `GameInput.dll!#1`, so it binds to the host's `GameInput.dll`. The presses had no visible effect. That run also ended early: at about 103 s two write access violations inside the title's video library, then the title's `int3` at 106 s. The two earlier runs without a pad did not show this, and neither did the SDL3 run below, so it is intermittent and I can't tie it to the input. **With SDL3** (`-DLEONIDA_SDL3_FETCH=ON`, the pinned 3.4.20, otherwise the same options): | | RX 9070 XT, SDL3 build | |---|---| | end | still running at 180 s, **no exception** | | `PresentX` ok / failed | 212 / 0 | | `GameInput.dll!#1` | bound to the shim | | shim | `SDL 3.4.20 gamepads`, pad connected as player 1, keyboard pad as player 2; "no raw HID" for the pad (XInput interface, as the log explains) | | button presses the shim reports from the pad | 7 (`input in use: Xbox … button press`) | | what the window shows | the same dark background with the two prompts (Y and A) bottom right, from about 90 s to the end | So the presses reach the shim, but the screen doesn't react to either button, and apart from the shim's own lines the log shows nothing new after them: no `xgameruntime` line, only the frame loop. **What the title asks GameInput for.** To see whether the title reads the pad at all, I added a local trace to the shim (not part of this PR: a log line for the first three calls of each method and then every power of two, behind an environment switch) and ran twice more, same setup: - At start the title calls `GameInputCreate` and `RegisterDeviceCallback(kind = gamepad, status = connected, blocking enumeration)`. That call comes before SDL has reported the pad, so the enumeration finds nothing and the pad arrives through the callback afterwards. Later it registers a second device callback for the keyboard kind. - From about the time the controller-prompt row appears, it polls `GetCurrentReading(gamepad, <device>)` with a device: alternately the pad (045e:02e0) and the shim's keyboard pad. Every call returns `S_OK`, followed by `GetGamepadState`. No `GetNextReading`, no reading callbacks, no `GetUiNavigationState`. - It polls about once per frame, and frames come at roughly one per second at this point. In the first traced run every poll saw `buttons = 0`, because a short press fell between two polls. In the second the buttons were held for about 3 s each, and `GetGamepadState` returned the buttons: the trace's first button-down lines show A (`0x4`), then Y (`0x20`) on three polls in a row (the trace skips most later calls, so these are lower bounds). - Even then nothing happened: the window capture after the presses is byte-identical to the one before, and the log has no line after the presses except the frame loop and one memory-window note. So on this branch the input path works end to end: the pad is enumerated, the title polls it and gets the buttons. The prompts not reacting is something past GameInput. Whether that action needs a runtime service the offline layer doesn't answer, or the title only acts on the press in a state it hasn't reached yet, I can't tell from these logs. One side note for anyone testing input here: at about one frame per second, a normal short press is usually missed by a title that polls the current reading, so hold the button. Not checked: the Intel GPU with the pad, rumble, and anything past 180 s. AI-assisted (Claude Code).
ThomasHFWright commented 2026-11-25 00:18:46 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by ThomasHFWright on 2026-11-25T00:18:46Z.


Tested exact head eb6a08cd359d98b5777e70d54d0ae8a75879495a on Linux. Both title runs reach drawing/presentation but hit the same title breakpoint; no visible first-run UI verified here.

Machine/build: Ryzen 7 9800X3D, RTX 5090, NVIDIA 620.73.04, CachyOS kernel 7.3.6, 30 GiB RAM and 62 GiB swap. Distribution Wine 11.22 (not native Windows or Proton), clang-cl/LLVM 23.1.5 with xwin SDK 26100, RelWithDebInfo, Vulkan required, shim tests enabled, pinned SDL3 3.4.20. Source unchanged.

Preparation: fresh branch-matching shader workspace with wave64 emulation: main 26,503/26,503 translated and SPIR-V-valid; FSPX 27/29, BVH 52/52, library 2,632/2,684, executable 10/10, native catalog 25,321 digests. Runtime corpus lookup: zero missing/failures. Actual shader path used, with its sibling source-container directory available. Dry-run and init both pass.

Title: --first-run-ui, fresh dedicated prefix for the first run, no assertion skips or debug drawing. Network namespace disabled networking; package mounted read-only; separate overlay/caches. Profile defaults retained, including 2 GiB arena. Cgroup MemoryHigh 10 GiB / MemoryMax 14 GiB / SwapMax 8 GiB.

First run Repeat, warm cache
Title breakpoint (same site and stack) 49.49 s 48.29 s
PresentX (one layer only) 200 111
DrawInstanced 595 312
Dispatch 42 18
Captured frames, all RGB zero 2 4
Native-compute slot 67 E_INVALIDARG 48 48

The first run stalled in WineDbg until the harness stopped it at 300 s. The repeat enabled Wine SEH diagnostics and denser captures; I stopped that test scope at 63.77 s after the same debugger stall. These cleanup exits are separate from the title breakpoint. No preceding access violation in either startup trace. First-chance RPC exceptions continued through to drawing. No arena-refusal messages. No hard-limit or OOM-kill events. The first run had soft-limit pressure; the repeat had zero memory-limit events, so that pressure alone does not explain the repeated stop. The depth-UAV format-56 warning also occurs in the successful Windows report above; I have not established it as the cause.

Synthetic checks: full native/Windows builds pass; semantic suite 6,123 tests passes; native CTest 73 pass / 2 skip / 0 fail. Full Windows CTest under Wine: 301 pass / 24 fail / 32 skip of 357, including two DXGI timeouts. Some tests compare Wine host behavior with Microsoft Windows expectations, so these are not all established regressions in this branch. Full standalone GPU suite: 232 pass / 2 fail / 20 skip. The two failing TFE fixtures have stale expectations: rerunning just that pair with upstream 8afbba14b fixtures passes 2/2 on this branch unchanged. The PR #1334 adaptation fails the corrected pair and was kept out; details: https://github.com/ubiquitarianism/leonida/pull/1334#issuecomment-7148202798 .

One small Wine-specific fixture issue: run_tiny_first_run_ui fails its Vulkan/pipeline-default assertions when CTest supplies those variables as empty strings; the same synthetic probe with both variables absent passes all three checks. The title launcher removed inherited LEONIDA variables before applying its explicit backend/shader/capture settings, avoiding that empty-variable case.

No title data, traces, shader identifiers or captures uploaded. AI-assisted testing and report.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7148377168 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7148377168). Originally posted by [ThomasHFWright](https://github.com/ThomasHFWright) on 2026-11-25T00:18:46Z. --- Tested exact head `eb6a08cd359d98b5777e70d54d0ae8a75879495a` on Linux. Both title runs reach drawing/presentation but hit the same title breakpoint; no visible first-run UI verified here. **Machine/build:** Ryzen 7 9800X3D, RTX 5090, NVIDIA 620.73.04, CachyOS kernel 7.3.6, 30 GiB RAM and 62 GiB swap. Distribution Wine 11.22 (not native Windows or Proton), clang-cl/LLVM 23.1.5 with xwin SDK 26100, RelWithDebInfo, Vulkan required, shim tests enabled, pinned SDL3 3.4.20. Source unchanged. **Preparation:** fresh branch-matching shader workspace with wave64 emulation: main 26,503/26,503 translated and SPIR-V-valid; FSPX 27/29, BVH 52/52, library 2,632/2,684, executable 10/10, native catalog 25,321 digests. Runtime corpus lookup: zero missing/failures. Actual shader path used, with its sibling source-container directory available. Dry-run and init both pass. **Title:** `--first-run-ui`, fresh dedicated prefix for the first run, no assertion skips or debug drawing. Network namespace disabled networking; package mounted read-only; separate overlay/caches. Profile defaults retained, including 2 GiB arena. Cgroup MemoryHigh 10 GiB / MemoryMax 14 GiB / SwapMax 8 GiB. | | First run | Repeat, warm cache | |---|---:|---:| | Title breakpoint (same site and stack) | 49.49 s | 48.29 s | | PresentX (one layer only) | 200 | 111 | | DrawInstanced | 595 | 312 | | Dispatch | 42 | 18 | | Captured frames, all RGB zero | 2 | 4 | | Native-compute slot 67 E_INVALIDARG | 48 | 48 | The first run stalled in WineDbg until the harness stopped it at 300 s. The repeat enabled Wine SEH diagnostics and denser captures; I stopped that test scope at 63.77 s after the same debugger stall. These cleanup exits are separate from the title breakpoint. No preceding access violation in either startup trace. First-chance RPC exceptions continued through to drawing. No arena-refusal messages. No hard-limit or OOM-kill events. The first run had soft-limit pressure; the repeat had **zero** memory-limit events, so that pressure alone does not explain the repeated stop. The depth-UAV format-56 warning also occurs in the successful Windows report above; I have not established it as the cause. **Synthetic checks:** full native/Windows builds pass; semantic suite 6,123 tests passes; native CTest 73 pass / 2 skip / 0 fail. Full Windows CTest under Wine: 301 pass / 24 fail / 32 skip of 357, including two DXGI timeouts. Some tests compare Wine host behavior with Microsoft Windows expectations, so these are not all established regressions in this branch. Full standalone GPU suite: 232 pass / 2 fail / 20 skip. The two failing TFE fixtures have stale expectations: rerunning just that pair with upstream `8afbba14b` fixtures passes **2/2 on this branch unchanged**. The PR #1334 adaptation fails the corrected pair and was kept out; details: https://github.com/ubiquitarianism/leonida/pull/1334#issuecomment-7148202798 . One small Wine-specific fixture issue: `run_tiny_first_run_ui` fails its Vulkan/pipeline-default assertions when CTest supplies those variables as empty strings; the same synthetic probe with both variables absent passes all three checks. The title launcher removed inherited LEONIDA variables before applying its explicit backend/shader/capture settings, avoiding that empty-variable case. No title data, traces, shader identifiers or captures uploaded. AI-assisted testing and report.
akimfomin commented 2026-11-25 00:49:56 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by akimfomin on 2026-11-25T00:49:56Z.


I checked the startup cache checkpoint against this PR's exact head eb6a08cd. PortBridge linked the first-run profile's default LEONIDA_PIPELINE_COMPILE=on-demand to the first-use compute materializer. That callback creates the Vulkan pipeline without reaching the checkpoint call in the eager branch, even when LEONIDA_STARTUP_CACHE_CHECKPOINTS=1.

A small CPU fixture compiled directly from the two public branches used a fake clock and stub Vulkan/export calls. With a cache and opt-in enabled, eager creation requested 0/1/1 saves at 499/500/501 ms; first-use creation requested 0/0/0. All 48 combinations passed, including failed creation and opt-out controls. No game data or GPU is needed to repeat it.

If first-use snapshots are intended, marking the cache dirty in materialization and draining it outside replay locks would avoid adding a full synchronous write to that callback. Pinned sources, test and transcript. AI-assisted with Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7148925393 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7148925393). Originally posted by [akimfomin](https://github.com/akimfomin) on 2026-11-25T00:49:56Z. --- I checked the startup cache checkpoint against this PR's exact head `eb6a08cd`. PortBridge linked the first-run profile's default `LEONIDA_PIPELINE_COMPILE=on-demand` to the first-use compute materializer. That callback creates the Vulkan pipeline without reaching the checkpoint call in the eager branch, even when `LEONIDA_STARTUP_CACHE_CHECKPOINTS=1`. A small CPU fixture compiled directly from the two public branches used a fake clock and stub Vulkan/export calls. With a cache and opt-in enabled, eager creation requested 0/1/1 saves at 499/500/501 ms; first-use creation requested 0/0/0. All 48 combinations passed, including failed creation and opt-out controls. No game data or GPU is needed to repeat it. If first-use snapshots are intended, marking the cache dirty in materialization and draining it outside replay locks would avoid adding a full synchronous write to that callback. [Pinned sources, test and transcript](https://github.com/akimfomin/PortBridge/blob/3c9684f0c22f06d35c3b2c2b59a407d3fa5f4830/research/rendering-night/continued-checkpoint-gap/README.md). AI-assisted with Codex.
aslan2142 commented 2026-11-25 00:59:23 +00:00 (Migrated from github.com)

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


@towade thanks for the two runs above (https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7143370974): they are the only measurement of this branch on AMD, and they are a large part of why it is being looked at for merging now.

One request about that comment: it embeds a screenshot of the title's interface. The project's first rule is no game data in commits, issues or pull requests, and a picture of the game's screen is game imagery. Could you edit the comment and take the image out?

  • Everything else in it is fine and worth keeping: the GPUs, the driver and build versions, the counts (PresentX, pipelines created and failed), where each run stopped.
  • What the picture showed can stay as a sentence, for example "the first-run screen with the controller prompt row is drawn".

Nothing from that comment goes into the merge itself; this is only about the thread.

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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7149093156 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7149093156). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-25T00:59:23Z. --- @towade thanks for the two runs above (https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7143370974): they are the only measurement of this branch on AMD, and they are a large part of why it is being looked at for merging now. One request about that comment: it embeds a screenshot of the title's interface. The project's first rule is no game data in commits, issues or pull requests, and a picture of the game's screen is game imagery. Could you edit the comment and take the image out? - Everything else in it is fine and worth keeping: the GPUs, the driver and build versions, the counts (`PresentX`, pipelines created and failed), where each run stopped. - What the picture showed can stay as a sentence, for example "the first-run screen with the controller prompt row is drawn". Nothing from that comment goes into the merge itself; this is only about the thread. AI-assisted (Claude Code, Claude Fable 5.2).
OreoFR commented 2026-11-25 01:36:24 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-25T01:36:24Z.


checked: eb6a08cd3 on native Windows with an NVIDIA laptop GPU, built and launched as docs/first_run_ui.md says. Windows 11 (26200), VS 2022 Build Tools (MSVC 14.44) with CMake + Ninja, -DLEONIDA_REQUIRE_VULKAN=ON -DLEONIDA_D3D12_SHIM_TESTS=ON -DLEONIDA_SDL3_FETCH=ON (pinned SDL3 3.4.20), NVIDIA GeForce RTX 4070 Laptop GPU (8 GB), driver 32.0.15.9159, hybrid with an Intel Arc iGPU (the Vulkan device is the NVIDIA one), Core Ultra 7 155H, 40 GB RAM, own 1.0.2.1 copy. No network rule; the runtime's offline shims only. Counts only, no captures attached.

Shaders: this branch's make_game.py --stages check,shaders,runtime --runtime-build <build> on a work folder carved and disassembled earlier from main; the translator fingerprint differed, so everything was translated again with this branch (32 min, exit 0). Same counts as the PR and @ThomasHFWright: 26,503 / 26,503 main shaders translated and spirv-val-valid, 25,321 native catalog digests, FSPX 27 / 29, BVH 52 / 52, library 2,632 / 2,684, executable 10 / 10.

--dry-run: 4 modules mapped, 0 unimplemented imports; GameInput.dll!#1 is bound to the shim.

Runs (gta6rt --first-run-ui <exe>, stopped by the harness):

run 1 run 2 run 3
options --trace --trace-d3d12 --trace only --trace, LEONIDA_WINDOW=1600x960
length 180 s 300 s 180 s
end still running, no exception still running, no exception still running, no exception
D3D12 calls 89,444 – –
PresentX ok / failed 48 / 0 – –
ExecuteCommandLists ok / failed 49 / 0 – –
pipeline states ok / failed / unsupported 68,520 / 0 / 0 – –
DrawInstanced / DrawIndexedInstanced / Dispatch 70 / 2 / 16 – –
slot 67 (DeserializeComputePipelineStateX) E_INVALIDARG 48 48 48

The pipeline-state count is the same as @towade's RX 9070 XT; fewer presents in the same 180 s here (48 against 130), which fits the on-demand pipelines taking longer on this GPU. Same remaining refusals as on the RX 9070 XT: the depth-stencil UAV plane of format 56 and the RTV format 28, plus the usual format notes (29, 86, 19). Working set about 6.3 GB at 3.5 min (read by hand; my automatic sampling failed).

On a laptop display the prompt row is drawn under the taskbar. The display here is 1707 x 1067 logical pixels (150 % scaling), and its work area above the taskbar is 1707 x 1019. The title creates its window at (0,0) with a 1711 x 1048 client area. In runs 1 and 2 the person at the screen saw only the plain dark background, for the whole run. A PrintWindow capture of the client area at about 4 min has the background plus a bright block at client x 1334-1674, y 992-1019 (the prompt row's place); a screen capture of the same rectangle at the same moment has nothing bright in that corner. With the title bar on top, those rows land at screen y ≈ 1023-1050, so the row is entirely under the taskbar. In run 3, with LEONIDA_WINDOW=1600x960, the person saw the full milestone: the dark background and the two prompts (Y and A) at the bottom right, in English.

So the rendering result reproduces on NVIDIA, but anyone testing on a scaled laptop screen with the default profile will report "background only". Fitting the title's window into the monitor's work area (or setting a default LEONIDA_WINDOW in the --first-run-ui profile) would avoid that. I have not tried either.

Input: with the prompts visible (run 3), Enter (A) and Y were each held about 3 s on the keyboard pad, with the window focused. Nothing on screen changed, as in @towade's pad runs. The shim only logs when the input family changes (input in use: ...), not each press, so this log cannot show whether the presses reached the title.

Not checked: a physical pad, present counts without --trace-d3d12, anything past 300 s.

Measured with Claude Code.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7149742523 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7149742523). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-25T01:36:24Z. --- checked: `eb6a08cd3` on **native Windows with an NVIDIA laptop GPU**, built and launched as `docs/first_run_ui.md` says. Windows 11 (26200), VS 2022 Build Tools (MSVC 14.44) with CMake + Ninja, `-DLEONIDA_REQUIRE_VULKAN=ON -DLEONIDA_D3D12_SHIM_TESTS=ON -DLEONIDA_SDL3_FETCH=ON` (pinned SDL3 3.4.20), **NVIDIA GeForce RTX 4070 Laptop GPU (8 GB), driver 32.0.15.9159**, hybrid with an Intel Arc iGPU (the Vulkan device is the NVIDIA one), Core Ultra 7 155H, 40 GB RAM, own 1.0.2.1 copy. No network rule; the runtime's offline shims only. Counts only, no captures attached. **Shaders:** this branch's `make_game.py --stages check,shaders,runtime --runtime-build <build>` on a work folder carved and disassembled earlier from `main`; the translator fingerprint differed, so everything was translated again with this branch (32 min, exit 0). Same counts as the PR and @ThomasHFWright: 26,503 / 26,503 main shaders translated and `spirv-val`-valid, 25,321 native catalog digests, FSPX 27 / 29, BVH 52 / 52, library 2,632 / 2,684, executable 10 / 10. **`--dry-run`:** 4 modules mapped, 0 unimplemented imports; `GameInput.dll!#1` is bound to the shim. **Runs** (`gta6rt --first-run-ui <exe>`, stopped by the harness): | | run 1 | run 2 | run 3 | |---|---|---|---| | options | `--trace --trace-d3d12` | `--trace` only | `--trace`, `LEONIDA_WINDOW=1600x960` | | length | 180 s | **300 s** | 180 s | | end | still running, **no exception** | still running, **no exception** | still running, **no exception** | | D3D12 calls | 89,444 | – | – | | `PresentX` ok / failed | 48 / 0 | – | – | | `ExecuteCommandLists` ok / failed | 49 / 0 | – | – | | pipeline states ok / failed / unsupported | **68,520** / 0 / 0 | – | – | | `DrawInstanced` / `DrawIndexedInstanced` / `Dispatch` | 70 / 2 / 16 | – | – | | slot 67 (`DeserializeComputePipelineStateX`) `E_INVALIDARG` | 48 | 48 | 48 | The pipeline-state count is the same as @towade's RX 9070 XT; fewer presents in the same 180 s here (48 against 130), which fits the on-demand pipelines taking longer on this GPU. Same remaining refusals as on the RX 9070 XT: the depth-stencil UAV plane of format 56 and the RTV format 28, plus the usual format notes (29, 86, 19). Working set about 6.3 GB at 3.5 min (read by hand; my automatic sampling failed). **On a laptop display the prompt row is drawn under the taskbar.** The display here is 1707 x 1067 logical pixels (150 % scaling), and its work area above the taskbar is 1707 x 1019. The title creates its window at (0,0) with a 1711 x 1048 client area. In runs 1 and 2 the person at the screen saw only the plain dark background, for the whole run. A `PrintWindow` capture of the client area at about 4 min has the background plus a bright block at client x 1334-1674, y 992-1019 (the prompt row's place); a screen capture of the same rectangle at the same moment has nothing bright in that corner. With the title bar on top, those rows land at screen y ≈ 1023-1050, so the row is entirely under the taskbar. In run 3, with `LEONIDA_WINDOW=1600x960`, the person saw the full milestone: the dark background and the two prompts (Y and A) at the bottom right, in English. So the rendering result reproduces on NVIDIA, but anyone testing on a scaled laptop screen with the default profile will report "background only". Fitting the title's window into the monitor's work area (or setting a default `LEONIDA_WINDOW` in the `--first-run-ui` profile) would avoid that. I have not tried either. **Input:** with the prompts visible (run 3), Enter (A) and Y were each held about 3 s on the keyboard pad, with the window focused. Nothing on screen changed, as in @towade's pad runs. The shim only logs when the input family changes (`input in use: ...`), not each press, so this log cannot show whether the presses reached the title. Not checked: a physical pad, present counts without `--trace-d3d12`, anything past 300 s. Measured with Claude Code.
aslan2142 commented 2026-11-25 02:33:48 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-25T02:33:48Z.


Merged. Thank you, @Rain156: this is the tree that took an RX 9070 XT past the title's own breakpoint, and it now sits on top of #984 and #968. @ubiquitarianism, this was the second large merge of the night, done the same way as #984.

How it was brought up to date: main (with #984, #968 and the docs and build pieces since) was merged into this branch, not rebased, so your 100 commits are untouched and nothing was force-pushed. 68 files conflicted; they were resolved in seven groups. The rule: where the two trees answer the title's call differently, the tree measured further on the title's path is the default and the other stays behind a switch.

What stays as you built it:

  • Device slot 57: your NativeGraphicsFactory is asked first; E_NOTIMPL falls back to #984's path. There is a mock test of the chain.
  • Rectangles on triangle pipelines, indexed quad lists, 1D/3D and depth-stencil UAVs, the XG texture computer, the window pump, the translator rules, the texture providers and uploads, GPU completion labels.
  • --first-run-ui and its profile.

Your behaviour behind switches (the #984 behaviour is the default, because it was measured through the story load):

  • LEONIDA_FRAME_PACING=1 (still set by --first-run-ui);
  • LEONIDA_LINEAR_MAP_FIRST=1, LEONIDA_SLOT133_LAYOUT_WORD=1, LEONIDA_RGBA4_COPY_REFUSE=1, LEONIDA_CBV_RAW=1, LEONIDA_GRAPHICS_STAGE_LAYOUT=0.

Taken automatically where it matters: console D16S8 uses your D16/S8 path on a GPU without a D24_UNORM_S8_UINT attachment, which is the case on AMD; this was checked on an RDNA2 iGPU under RADV. LEONIDA_CONSOLE_D16S8=native forces it elsewhere.

Maintainer decisions:

  • Speech forwarding to the host's installed runtime stays in the code but is off by default and not in the profile (LEONIDA_LOCAL_SPEECH=1 turns it on), because of the "nothing online" rule.
  • Attribution was added: the four graphics-runtime-patches@d9a0bc1b patches, VIctory as GPL-3.0-or-later and translated to C++, and headers on native_pso.h and d3d12_xs_native_pso.h naming enx/leonida 5c175db90 as the source (unreachable when this was merged; GPL-3.0-or-later as a fork of this project).

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

  • Against main with #984 and #968, against #984 by itself, and against this branch's head before the merge: no test went from pass to fail. 39 tests are new and pass.
  • The three vk_present_dump* tests fail on the headless iGPU here, as they did on this branch's head and as vk_presenter_sync does on main: the iGPU cannot present under Xvfb.
  • Linux portable ctest: 82 pass, 2 skipped. Translator suite: 485 files, 6,269 tests, 0 failed. check_no_game_data.py is clean on the 131 changed files, and no image or hash list of the game is in any file.
  • Your tests were adapted where a rule changed: xbox_cbv_vectors, the rebound-table cases, xbox_placed_texture_first_use, d3d12_depth_stencil_uav, xbox_geometry_upload_batch and d3d12_quad_index. Two were red on this branch's head and are fixed: run_tiny_first_run_ui, and case 11 of test_exe_shaders_stage.

Please test, in this order:

  1. --first-run-ui on AMD (RX 9070 XT): any slot 57 call N failed lines, the console D16S8 log line, and whether the screen draws.
  2. Plain --run on NVIDIA through the story load: the depth-stencil UAV path, which now takes your two-resource path on every GPU, and the movie planes.
  3. A B4G4R4A4 target on NVIDIA.

Not run here: MSVC, native Windows, and the game.

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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7150883383 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7150883383). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-25T02:33:48Z. --- Merged. Thank you, @Rain156: this is the tree that took an RX 9070 XT past the title's own breakpoint, and it now sits on top of #984 and #968. @ubiquitarianism, this was the second large merge of the night, done the same way as #984. **How it was brought up to date:** `main` (with #984, #968 and the docs and build pieces since) was merged into this branch, not rebased, so your 100 commits are untouched and nothing was force-pushed. 68 files conflicted; they were resolved in seven groups. The rule: where the two trees answer the title's call differently, the tree measured further on the title's path is the default and the other stays behind a switch. **What stays as you built it:** - Device slot 57: your `NativeGraphicsFactory` is asked first; `E_NOTIMPL` falls back to #984's path. There is a mock test of the chain. - Rectangles on triangle pipelines, indexed quad lists, 1D/3D and depth-stencil UAVs, the XG texture computer, the window pump, the translator rules, the texture providers and uploads, GPU completion labels. - `--first-run-ui` and its profile. **Your behaviour behind switches** (the #984 behaviour is the default, because it was measured through the story load): - `LEONIDA_FRAME_PACING=1` (still set by `--first-run-ui`); - `LEONIDA_LINEAR_MAP_FIRST=1`, `LEONIDA_SLOT133_LAYOUT_WORD=1`, `LEONIDA_RGBA4_COPY_REFUSE=1`, `LEONIDA_CBV_RAW=1`, `LEONIDA_GRAPHICS_STAGE_LAYOUT=0`. **Taken automatically where it matters:** console D16S8 uses your D16/S8 path on a GPU without a `D24_UNORM_S8_UINT` attachment, which is the case on AMD; this was checked on an RDNA2 iGPU under RADV. `LEONIDA_CONSOLE_D16S8=native` forces it elsewhere. **Maintainer decisions:** - Speech forwarding to the host's installed runtime stays in the code but is off by default and not in the profile (`LEONIDA_LOCAL_SPEECH=1` turns it on), because of the "nothing online" rule. - Attribution was added: the four `graphics-runtime-patches@d9a0bc1b` patches, VIctory as GPL-3.0-or-later and translated to C++, and headers on `native_pso.h` and `d3d12_xs_native_pso.h` naming `enx/leonida` `5c175db90` as the source (unreachable when this was merged; GPL-3.0-or-later as a fork of this project). **Tests** (clang-cl with the xwin SDK; the full runtime suite under Wine on llvmpipe and an RDNA2 iGPU): - Against `main` with #984 and #968, against #984 by itself, and against this branch's head before the merge: no test went from pass to fail. 39 tests are new and pass. - The three `vk_present_dump*` tests fail on the headless iGPU here, as they did on this branch's head and as `vk_presenter_sync` does on `main`: the iGPU cannot present under Xvfb. - Linux portable `ctest`: 82 pass, 2 skipped. Translator suite: 485 files, 6,269 tests, 0 failed. `check_no_game_data.py` is clean on the 131 changed files, and no image or hash list of the game is in any file. - Your tests were adapted where a rule changed: `xbox_cbv_vectors`, the rebound-table cases, `xbox_placed_texture_first_use`, `d3d12_depth_stencil_uav`, `xbox_geometry_upload_batch` and `d3d12_quad_index`. Two were red on this branch's head and are fixed: `run_tiny_first_run_ui`, and case 11 of `test_exe_shaders_stage`. **Please test, in this order:** 1. `--first-run-ui` on AMD (RX 9070 XT): any `slot 57 call N failed` lines, the `console D16S8` log line, and whether the screen draws. 2. Plain `--run` on NVIDIA through the story load: the depth-stencil UAV path, which now takes your two-resource path on every GPU, and the movie planes. 3. A B4G4R4A4 target on NVIDIA. Not run here: MSVC, native Windows, and the game. AI-assisted (Claude Code, Claude Fable 5.2 and Claude Opus 5.5).
QemmHD commented 2026-11-25 02:43:49 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-25T02:43:49Z.


Post-merge check of main after this merge (Windows 11, Python 3.14): one repository-consistency test is red, and this merge is where it starts. It passes at 3ff2a2adc and fails at e79906a42:

FAILED tests/test_runtime_paths.py::RepositoryRuntimePathsTest::test_every_tool_the_jobs_read_triggers_the_workflow
['tools/conformance/**: missing (named in runtime/CMakeLists.txt)'] is not false : .github/workflows/runtime.yml path filter

runtime/CMakeLists.txt now reads tools/conformance/, so .github/workflows/runtime.yml needs tools/conformance/** added to its paths: filters (both the push and pull_request lists, next to the other tools/ entries). Then the test passes again. Everything else in the set passes: 591 passed, 5 skipped. I haven't touched the workflow myself, since it's a CI file; it's a one-line fix if you want it.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7151107177 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7151107177). Originally posted by [QemmHD](https://github.com/QemmHD) on 2026-11-25T02:43:49Z. --- Post-merge check of main after this merge (Windows 11, Python 3.14): one repository-consistency test is red, and this merge is where it starts. It passes at 3ff2a2adc and fails at e79906a42: ``` FAILED tests/test_runtime_paths.py::RepositoryRuntimePathsTest::test_every_tool_the_jobs_read_triggers_the_workflow ['tools/conformance/**: missing (named in runtime/CMakeLists.txt)'] is not false : .github/workflows/runtime.yml path filter ``` `runtime/CMakeLists.txt` now reads `tools/conformance/`, so `.github/workflows/runtime.yml` needs `tools/conformance/**` added to its `paths:` filters (both the push and pull_request lists, next to the other `tools/` entries). Then the test passes again. Everything else in the set passes: 591 passed, 5 skipped. I haven't touched the workflow myself, since it's a CI file; it's a one-line fix if you want it. AI-assisted (Claude Code, Claude Opus 5.5).
OreoFR commented 2026-11-25 03:25:07 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-25T03:25:07Z.


@aslan2142 your item 2, plain --run on NVIDIA, on native Windows: on main after this merge the title stops right after the first A on the landing screen, in 3 of 3 runs. main just before this merge goes past that point on the same machine. Counts and RVAs only.

Machine: Windows 11 (26200), VS 2022 Build Tools (MSVC 14.44, SDK 26100), CMake + Ninja, SDL3 3.4.20 (LEONIDA_SDL3_FETCH), NVIDIA GeForce RTX 4070 Laptop GPU (8 GB), driver 32.0.15.9159, Core Ultra 7 155H, 40 GB RAM, own 1.0.2.1 copy.

Settings (as scripts/linux-boot/boot.sh): gta6rt --run <exe> --game-dir <pkg> --overlay <dir> --trace <file>, LEONIDA_D3D12=vulkan, LEONIDA_ARENA_MB=2048, LEONIDA_PIPELINE_CACHE_BYTES=4294967296, LEONIDA_STARTUP_CACHE_CHECKPOINTS=1, the NVIDIA disk cache raised to 20 GB, LEONIDA_KEYBOARD_PAD=always, LEONIDA_INPUT_SCRIPT=a@60,a@75,a@90,a@105,a@120,…. Each tree has its own fresh work folder from its own make_game.py --stages check,shaders,runtime, with history.bcph generated (main 26,503 → 26,530 after this merge, library 2,683 / 2,684, exe 12 / 12, BVH 52 / 52, all spirv-val-valid).

main 0aecc5efa (#984 + #968, before this merge) main 85ece6847 (after this merge)
landing screen with its artwork yes yes
first A that the title acts on goes to the brightness page, then the legal pages stops 2-4 s later
runs 1 (cold cache) 3 (warm and partly warm)
end story load started (16,510 slot-70 texture views, 15,891 images), then the title's hang watchdog at 504 s (+0x23cf683, the handler variant), after 47 library compute compiles over 1 s (207 s in total, up to 21.3 s) on a cold driver cache run 1: VK_ERROR_DEVICE_LOST at ~122 s, then the title's int3 at +0x2474606. Runs 2 and 3: no device loss, the title's int3 at +0x131a2ad, 2 s and 4 s after the press
device lost 0 1 of 3

Same input script in run 3 as in the run before the merge. Run 1 had LEONIDA_TITLE_WATCHDOG=0, run 2 had LEONIDA_DEVICE_FAULT=1 (no device loss happened, so no fault report), run 3 neither.

The stack of the +0x131a2ad stop is the same in runs 2 and 3: +0x131a2ad ← +0x24740d5 ← +0x2473903 ← +0x3239287 ← +0x221c29c ← +0x2215eca (the title's thread trampoline). The runtime logs nothing unusual between the press and the stop: one library compute compile of 2.5 s, a slot-133 shadow-buffer summary and the usual B5G5R5A1 UAV note (format 86), which the run before the merge also prints. Before the device loss in run 1: several "import of title memory … landed below the arena … a shadow in the arena is used instead" and 64 KiB windows "named by a shader address" being mirrored.

So on this NVIDIA machine the merge moves the first stop from the story load back to the landing screen. I did not see a depth-stencil UAV message or a B4G4R4A4 target before the stop, so items 2 and 3 of your list could not be reached here. I can rerun with any switch you name (for example the old behaviour of one of the merged pieces), or bisect between 0aecc5efa and 85ece6847 if that helps. Traces and logs stay on this machine.

Measured with Claude Code.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7151895518 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7151895518). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-25T03:25:07Z. --- @aslan2142 your item 2, plain `--run` on NVIDIA, on native Windows: **on `main` after this merge the title stops right after the first A on the landing screen, in 3 of 3 runs. `main` just before this merge goes past that point on the same machine.** Counts and RVAs only. **Machine:** Windows 11 (26200), VS 2022 Build Tools (MSVC 14.44, SDK 26100), CMake + Ninja, SDL3 3.4.20 (`LEONIDA_SDL3_FETCH`), **NVIDIA GeForce RTX 4070 Laptop GPU (8 GB), driver 32.0.15.9159**, Core Ultra 7 155H, 40 GB RAM, own 1.0.2.1 copy. **Settings** (as `scripts/linux-boot/boot.sh`): `gta6rt --run <exe> --game-dir <pkg> --overlay <dir> --trace <file>`, `LEONIDA_D3D12=vulkan`, `LEONIDA_ARENA_MB=2048`, `LEONIDA_PIPELINE_CACHE_BYTES=4294967296`, `LEONIDA_STARTUP_CACHE_CHECKPOINTS=1`, the NVIDIA disk cache raised to 20 GB, `LEONIDA_KEYBOARD_PAD=always`, `LEONIDA_INPUT_SCRIPT=a@60,a@75,a@90,a@105,a@120,…`. Each tree has its own fresh work folder from its own `make_game.py --stages check,shaders,runtime`, with `history.bcph` generated (main 26,503 → 26,530 after this merge, library 2,683 / 2,684, exe 12 / 12, BVH 52 / 52, all `spirv-val`-valid). | | `main` `0aecc5efa` (#984 + #968, before this merge) | `main` `85ece6847` (after this merge) | |---|---|---| | landing screen with its artwork | yes | yes | | first A that the title acts on | goes to the brightness page, then the legal pages | **stops 2-4 s later** | | runs | 1 (cold cache) | 3 (warm and partly warm) | | end | story load started (16,510 slot-70 texture views, 15,891 images), then the title's hang watchdog at 504 s (`+0x23cf683`, the handler variant), after 47 library compute compiles over 1 s (207 s in total, up to 21.3 s) on a cold driver cache | **run 1:** `VK_ERROR_DEVICE_LOST` at ~122 s, then the title's `int3` at `+0x2474606`. **Runs 2 and 3:** no device loss, the title's `int3` at **`+0x131a2ad`**, 2 s and 4 s after the press | | device lost | 0 | 1 of 3 | Same input script in run 3 as in the run before the merge. Run 1 had `LEONIDA_TITLE_WATCHDOG=0`, run 2 had `LEONIDA_DEVICE_FAULT=1` (no device loss happened, so no fault report), run 3 neither. The stack of the `+0x131a2ad` stop is the same in runs 2 and 3: `+0x131a2ad` ← `+0x24740d5` ← `+0x2473903` ← `+0x3239287` ← `+0x221c29c` ← `+0x2215eca` (the title's thread trampoline). The runtime logs nothing unusual between the press and the stop: one library compute compile of 2.5 s, a slot-133 shadow-buffer summary and the usual B5G5R5A1 UAV note (format 86), which the run before the merge also prints. Before the device loss in run 1: several "import of title memory … landed below the arena … a shadow in the arena is used instead" and 64 KiB windows "named by a shader address" being mirrored. So on this NVIDIA machine the merge moves the first stop from the story load back to the landing screen. I did not see a depth-stencil UAV message or a B4G4R4A4 target before the stop, so items 2 and 3 of your list could not be reached here. I can rerun with any switch you name (for example the old behaviour of one of the merged pieces), or bisect between `0aecc5efa` and `85ece6847` if that helps. Traces and logs stay on this machine. Measured with Claude Code.
QemmHD commented 2026-11-25 04:12:58 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-25T04:12:58Z.


@OreoFR @aslan2142: root cause of the NVIDIA stop at the landing screen. You can skip the bisect.

Same stop here on native Windows 11, RTX 4070 SUPER (NVIDIA 621.24), main 0bc810504 built with MSVC: 3 of 3 runs end with an int3 51-74 s in (exit 0x80000003), after 182-362 PresentX. Main 3ff2a2adc, before this merge, goes past it on the same machine.

What happens (measured with cdb attached and a call trace through gta6rt's PDB; descriptions and return codes only):

  1. The int3 is the title's soft assert after a texture-create helper returns false. That helper's device slot 133 (CreatePlacedResourceX) returned E_INVALIDARG.
  2. The resource: TEXTURE2D 1280×720, 1 mip, format 118 (console D16_UNORM_S8_UINT), ALLOW_DEPTH_STENCIL | ALLOW_UNORDERED_ACCESS (plus Xbox bits), layout argument 0xFFFFFFFF.
  3. The path, new in this merge: proxy_create_placed_resource_slot133 → proxy_create_placed_depth → PlacedDepthTextures::create → create_depth_uav_backing → CreateCommittedResource = S_OK → rt::d3d12::enable_depth_stencil_uav → Resource::enable_depth_stencil_uav = E_INVALIDARG.
  4. Why only NVIDIA: create_committed rewrites the format through pc_format(). On a GPU with D24_UNORM_S8_UINT attachments (NVIDIA; the log says "console D16S8 textures are made as D24S8"), 118 becomes D24_UNORM_S8_UINT. But Resource::enable_depth_stencil_uav accepts only R16_TYPELESS, 118 itself or R32G8X24_TYPELESS, so a console depth target made as D24S8 is refused. On AMD there's no D24S8 attachment, 118 stays native, and it passes, which matches the RX 9070 XT / RADV runs. Before this merge, slot 133 created that texture without unordered access and carried on.

Confirmation: the same build with LEONIDA_CONSOLE_D16S8=native has no int3, runs to its 200 s limit (5,856 PresentX, 66/66 captures non-black) and reaches a first-run consent page.

Two candidate fixes: let enable_depth_stencil_uav accept the D24S8 backing that pc_format() chose for 118, or have slot 133/76 fall back to the old stand-in without unordered access when the depth provider refuses. I'm testing the fallback locally now, and I'll report which one also keeps the picture right.

A second, separate observation with LEONIDA_CONSOLE_D16S8=native: from the "Finish setup?" page on, the background gradient is black, artwork is hard-edged, there are stray vertical lines, and the highlighted row's glyphs on the terms page are corrupted. 3ff2a2adc draws all of that correctly on the same machine. New log lines: "unbound T# in console heap … T# names layers the texture lacks" (1,100+ slots) and "names no registered texture". I don't know yet whether that comes from the native D16S8 path or another part of the merge; I'm narrowing it down.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7152637264 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7152637264). Originally posted by [QemmHD](https://github.com/QemmHD) on 2026-11-25T04:12:58Z. --- @OreoFR @aslan2142: root cause of the NVIDIA stop at the landing screen. You can skip the bisect. Same stop here on native Windows 11, RTX 4070 SUPER (NVIDIA 621.24), main 0bc810504 built with MSVC: 3 of 3 runs end with an int3 51-74 s in (exit 0x80000003), after 182-362 PresentX. Main 3ff2a2adc, before this merge, goes past it on the same machine. What happens (measured with cdb attached and a call trace through gta6rt's PDB; descriptions and return codes only): 1. The int3 is the title's soft assert after a texture-create helper returns false. That helper's device **slot 133 (CreatePlacedResourceX) returned `E_INVALIDARG`**. 2. The resource: TEXTURE2D 1280×720, 1 mip, **format 118 (console D16_UNORM_S8_UINT)**, `ALLOW_DEPTH_STENCIL | ALLOW_UNORDERED_ACCESS` (plus Xbox bits), layout argument `0xFFFFFFFF`. 3. The path, new in this merge: `proxy_create_placed_resource_slot133` → `proxy_create_placed_depth` → `PlacedDepthTextures::create` → `create_depth_uav_backing` → `CreateCommittedResource` = S_OK → `rt::d3d12::enable_depth_stencil_uav` → `Resource::enable_depth_stencil_uav` = **E_INVALIDARG**. 4. Why only NVIDIA: `create_committed` rewrites the format through `pc_format()`. On a GPU with D24_UNORM_S8_UINT attachments (NVIDIA; the log says "console D16S8 textures are made as D24S8"), 118 becomes D24_UNORM_S8_UINT. But `Resource::enable_depth_stencil_uav` accepts only R16_TYPELESS, 118 itself or R32G8X24_TYPELESS, so a console depth target made as D24S8 is refused. On AMD there's no D24S8 attachment, 118 stays native, and it passes, which matches the RX 9070 XT / RADV runs. Before this merge, slot 133 created that texture without unordered access and carried on. **Confirmation:** the same build with `LEONIDA_CONSOLE_D16S8=native` has no int3, runs to its 200 s limit (5,856 PresentX, 66/66 captures non-black) and reaches a first-run consent page. Two candidate fixes: let `enable_depth_stencil_uav` accept the D24S8 backing that `pc_format()` chose for 118, or have slot 133/76 fall back to the old stand-in without unordered access when the depth provider refuses. I'm testing the fallback locally now, and I'll report which one also keeps the picture right. A second, separate observation with `LEONIDA_CONSOLE_D16S8=native`: from the "Finish setup?" page on, the background gradient is black, artwork is hard-edged, there are stray vertical lines, and the highlighted row's glyphs on the terms page are corrupted. 3ff2a2adc draws all of that correctly on the same machine. New log lines: "unbound T# in console heap … T# names layers the texture lacks" (1,100+ slots) and "names no registered texture". I don't know yet whether that comes from the native D16S8 path or another part of the merge; I'm narrowing it down. AI-assisted (Claude Code, Claude Opus 5.5).
QemmHD commented 2026-11-25 04:18:33 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-25T04:18:33Z.


Follow-up: a fix for the NVIDIA landing-screen stop is verified on the same machine and copy. When the depth provider refuses that console D16S8 texture with unordered access, slots 133 and 76 fall back to the pre-#939 texture without unordered access. With default settings (D24S8), main 0bc810504 plus this ~28-line change: the fallback fires once, no int3, 6,187 PresentX with 0 failed, 69/69 captures non-black, and the boot reaches a first-run consent page. I'm opening it as a PR (claim RT-D16S8-UAV-NVIDIA-FALLBACK; #14 has hit GitHub's comment limit, so I'm noting the claim here). Teaching Resource::enable_depth_stencil_uav the D24S8-made form would be the fuller fix; say if you'd rather have that.

Narrowed down: the picture regression from "Finish setup?" onward is NOT the depth path. It looks identical with the fallback (D24S8) and with LEONIDA_CONSOLE_D16S8=native, so something else merged between 3ff2a2adc and 0bc810504 causes it. I'm bisecting it now, starting from the #939 merge commit itself.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7152724709 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7152724709). Originally posted by [QemmHD](https://github.com/QemmHD) on 2026-11-25T04:18:33Z. --- Follow-up: a fix for the NVIDIA landing-screen stop is verified on the same machine and copy. When the depth provider refuses that console D16S8 texture with unordered access, slots 133 and 76 fall back to the pre-#939 texture without unordered access. With default settings (D24S8), main 0bc810504 plus this ~28-line change: the fallback fires once, no int3, 6,187 PresentX with 0 failed, 69/69 captures non-black, and the boot reaches a first-run consent page. I'm opening it as a PR (claim RT-D16S8-UAV-NVIDIA-FALLBACK; #14 has hit GitHub's comment limit, so I'm noting the claim here). Teaching `Resource::enable_depth_stencil_uav` the D24S8-made form would be the fuller fix; say if you'd rather have that. Narrowed down: the picture regression from "Finish setup?" onward is NOT the depth path. It looks identical with the fallback (D24S8) and with `LEONIDA_CONSOLE_D16S8=native`, so something else merged between 3ff2a2adc and 0bc810504 causes it. I'm bisecting it now, starting from the #939 merge commit itself. AI-assisted (Claude Code, Claude Opus 5.5).
OreoFR commented 2026-11-25 04:22:50 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-25T04:22:50Z.


@QemmHD confirmed on a second NVIDIA (RTX 4070 Laptop, driver 32.0.15.9159, native Windows, main 85ece6847 and the #939 merge e79906a42): the same E_INVALIDARG on a format-118 placed target (2560×1440 here, flags 0x80300006), and a local switch that skips installing the depth-stencil UAV provider removes the stop. 3ff2a2adc passes on this machine too, so the bisect agrees with yours.

One more thing from this machine: in 4 of 12 runs the device was lost before any refused placement, then the title stopped at +0x2474606. In a --trace-d3d12 run every failed call (4 × CreatePipelineState, 2 × ExecuteCommandLists, Signal, PresentX) comes after the loss. Skipping the provider removed that mode as well. A fallback that only fires on a refusal may not cover it, so I'll run your PR here as soon as it is up, with the same input script, and report both modes.

Measured with Claude Code.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7152789720 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7152789720). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-25T04:22:50Z. --- @QemmHD confirmed on a second NVIDIA (RTX 4070 Laptop, driver 32.0.15.9159, native Windows, main `85ece6847` and the #939 merge `e79906a42`): the same `E_INVALIDARG` on a format-118 placed target (2560×1440 here, flags `0x80300006`), and a local switch that skips installing the depth-stencil UAV provider removes the stop. `3ff2a2adc` passes on this machine too, so the bisect agrees with yours. One more thing from this machine: in 4 of 12 runs the device was lost **before** any refused placement, then the title stopped at `+0x2474606`. In a `--trace-d3d12` run every failed call (4 × `CreatePipelineState`, 2 × `ExecuteCommandLists`, `Signal`, `PresentX`) comes after the loss. Skipping the provider removed that mode as well. A fallback that only fires on a refusal may not cover it, so I'll run your PR here as soon as it is up, with the same input script, and report both modes. Measured with Claude Code.
QemmHD commented 2026-11-25 04:34:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-25T04:34:28Z.


@OreoFR @aslan2142: the fix for the NVIDIA landing-screen stop is up as #1558. It falls back only when the depth provider itself refuses, and passes every other failure on. It includes a mock test plus a Vulkan ctest that forces the D24S8 choice on any GPU, with a negative control. A real boot here goes past the stop with it.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7152967800 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7152967800). Originally posted by [QemmHD](https://github.com/QemmHD) on 2026-11-25T04:34:28Z. --- @OreoFR @aslan2142: the fix for the NVIDIA landing-screen stop is up as **#1558**. It falls back only when the depth provider itself refuses, and passes every other failure on. It includes a mock test plus a Vulkan ctest that forces the D24S8 choice on any GPU, with a negative control. A real boot here goes past the stop with it. AI-assisted (Claude Code, Claude Opus 5.5).
QemmHD commented 2026-11-25 04:37:44 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-25T04:37:44Z.


@OreoFR thanks for the second-machine confirmation. #1558 is up, so please run it with both modes. The device-loss-first mode is a fair concern: #1558 only falls back when the provider refuses. If the loss comes from the provider path doing something before it refuses (or from a UAV on a texture it does accept), the fallback won't cover it. Here (RTX 4070 SUPER, desktop driver 621.24) I saw the int3 in 3 of 3 runs and no device loss before it, so your laptop may be hitting a different path. If you can, run once with LEONIDA_DEVICE_FAULT=1 (the RT-DEVICE-LOST-LOG / #1028 fault report names what was in flight), so we can tell whether the lost work touches the depth-UAV backing. If it does, the provider needs a stronger gate than refusal on NVIDIA, and I'll widen #1558 accordingly.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7153018151 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7153018151). Originally posted by [QemmHD](https://github.com/QemmHD) on 2026-11-25T04:37:44Z. --- @OreoFR thanks for the second-machine confirmation. #1558 is up, so please run it with both modes. The device-loss-first mode is a fair concern: #1558 only falls back when the provider refuses. If the loss comes from the provider path doing something before it refuses (or from a UAV on a texture it does accept), the fallback won't cover it. Here (RTX 4070 SUPER, desktop driver 621.24) I saw the int3 in 3 of 3 runs and no device loss before it, so your laptop may be hitting a different path. If you can, run once with `LEONIDA_DEVICE_FAULT=1` (the RT-DEVICE-LOST-LOG / #1028 fault report names what was in flight), so we can tell whether the lost work touches the depth-UAV backing. If it does, the provider needs a stronger gate than refusal on NVIDIA, and I'll widen #1558 accordingly. AI-assisted (Claude Code, Claude Opus 5.5).
OreoFR commented 2026-11-25 05:16:34 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-25T05:16:34Z.


@QemmHD ran #1558 here with both modes, results on the PR: https://github.com/ubiquitarianism/leonida/pull/1558#issuecomment-7153611365

In short: with #1558 the landing-screen stop is gone on this laptop too, and the device-loss-first mode did not come back in 4 runs. What still stops some runs is the title's hang watchdog after the first A, while pipeline compiles hold the submit lock on a cold cache (#1547's area), and once a device loss later in the story load on library compute dispatches (the world-start wall). Neither touches the depth-UAV backing, so #1558 doesn't need a wider gate for NVIDIA from what I see.

Measured with Claude Code.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7153614241 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7153614241). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-25T05:16:34Z. --- @QemmHD ran #1558 here with both modes, results on the PR: https://github.com/ubiquitarianism/leonida/pull/1558#issuecomment-7153611365 In short: with #1558 the landing-screen stop is gone on this laptop too, and the device-loss-first mode did not come back in 4 runs. What still stops some runs is the title's hang watchdog after the first A, while pipeline compiles hold the submit lock on a cold cache (#1547's area), and once a device loss later in the story load on library compute dispatches (the world-start wall). Neither touches the depth-UAV backing, so #1558 doesn't need a wider gate for NVIDIA from what I see. Measured with Claude Code.
QemmHD commented 2026-11-25 05:23:48 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-25T05:23:48Z.


@aslan2142 @Rain156: a second NVIDIA finding on this merge, separate from the depth stop (#1558). This one is a picture regression, bisected on a real boot (Windows 11, RTX 4070 SUPER, NVIDIA 621.24, MSVC builds):

  • 3ff2a2adc (before #939): the later first-run pages draw correctly.
  • e79906a42 (the #939 merge commit): from the "Finish setup?" page onward, the background gradient is black, artwork is drawn hard-edged, there are stray vertical lines, and the highlighted row's glyphs are corrupted. The log shows "unbound T# in console heap … T# names layers the texture lacks" (1,100+ slots) and "names no registered texture".
  • Same with or without the depth fallback, and with LEONIDA_CONSOLE_D16S8=native, so it's not the depth path. Four of the documented switch sets don't fix it, and two make it worse.
  • Skipping this merge's slot 57 NativeGraphicsFactory (a local, env-gated 3-line experiment) restores the correct picture: 6,399 PresentX ok, with capture means identical to 3ff2a2adc.

So the native graphics pipelines built from slot 57 records (about 25,450 on this run) draw those pages wrongly on this card. My hypothesis is the blend or depth state they're created with, but I haven't measured that yet. If an env switch to turn the factory off is welcome as a stopgap, I can open it. Otherwise I'll keep narrowing down which state differs.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7153729424 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7153729424). Originally posted by [QemmHD](https://github.com/QemmHD) on 2026-11-25T05:23:48Z. --- @aslan2142 @Rain156: a second NVIDIA finding on this merge, separate from the depth stop (#1558). This one is a **picture regression**, bisected on a real boot (Windows 11, RTX 4070 SUPER, NVIDIA 621.24, MSVC builds): - **3ff2a2adc (before #939):** the later first-run pages draw correctly. - **e79906a42 (the #939 merge commit):** from the "Finish setup?" page onward, the background gradient is black, artwork is drawn hard-edged, there are stray vertical lines, and the highlighted row's glyphs are corrupted. The log shows "unbound T# in console heap … T# names layers the texture lacks" (1,100+ slots) and "names no registered texture". - **Same with or without the depth fallback,** and with `LEONIDA_CONSOLE_D16S8=native`, so it's not the depth path. Four of the documented switch sets don't fix it, and two make it worse. - **Skipping this merge's slot 57 `NativeGraphicsFactory`** (a local, env-gated 3-line experiment) restores the correct picture: 6,399 PresentX ok, with capture means identical to 3ff2a2adc. So the native graphics pipelines built from slot 57 records (about 25,450 on this run) draw those pages wrongly on this card. My hypothesis is the blend or depth state they're created with, but I haven't measured that yet. If an env switch to turn the factory off is welcome as a stopgap, I can open it. Otherwise I'll keep narrowing down which state differs. AI-assisted (Claude Code, Claude Opus 5.5).
OreoFR commented 2026-11-25 06:54:57 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-25T06:54:57Z.


@QemmHD a second NVIDIA machine for the picture regression: RTX 4070 Laptop, driver 591.59, Windows 11. Build: main c7e82e26e + #1558 + #1547 (slot 57 factory on), fresh first-run profile, warm pipeline cache.

  • It starts before "Finish setup?" here. On the "Navigation experience" (minimap) and "Subtitles" pages:

    • the condensed title font and the button prompts draw correctly over the gradient, which is still right on these pages;
    • the regular-weight text is drawn as one solid block per glyph and can't be read;
    • the option arrows are filled white squares;
    • the minimap illustration is a white frame, a black rectangle and a white diamond.

    Those quads look like they lose their texture's alpha completely, rather than getting a wrong colour, which fits your "hard-edged artwork". Some images of the loading slideshow are also posterized, with black patches.

  • This run only logged 12 unbound T# lines (6 of them "names no registered texture"), not 1,100+.

  • I can't confirm the restore without the factory on this laptop yet. With the same 3-line skip (LEONIDA_NATIVE_GRAPHICS=0 here), two runs never drew a first-run page: the title stays up for about 6 minutes while about 70 library compute pipelines build, then the screen goes grey and then black.

Measured with Claude Code.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7155291348 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7155291348). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-25T06:54:57Z. --- @QemmHD a second NVIDIA machine for the picture regression: RTX 4070 Laptop, driver 591.59, Windows 11. Build: `main` `c7e82e26e` + #1558 + #1547 (slot 57 factory on), fresh first-run profile, warm pipeline cache. - **It starts before "Finish setup?" here.** On the "Navigation experience" (minimap) and "Subtitles" pages: - the condensed title font and the button prompts draw correctly over the gradient, which is still right on these pages; - the regular-weight text is drawn as one solid block per glyph and can't be read; - the option arrows are filled white squares; - the minimap illustration is a white frame, a black rectangle and a white diamond. Those quads look like they lose their texture's alpha completely, rather than getting a wrong colour, which fits your "hard-edged artwork". Some images of the loading slideshow are also posterized, with black patches. - **This run only logged 12 `unbound T#` lines** (6 of them "names no registered texture"), not 1,100+. - **I can't confirm the restore without the factory on this laptop yet.** With the same 3-line skip (`LEONIDA_NATIVE_GRAPHICS=0` here), two runs never drew a first-run page: the title stays up for about 6 minutes while about 70 library compute pipelines build, then the screen goes grey and then black. Measured with Claude Code.
QemmHD commented 2026-11-25 07:07:44 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-25T07:07:44Z.


@OreoFR thanks. "Quads lose their texture's alpha completely" fits what I saw better than a wrong colour does: unblended artwork, solid glyph blocks and black backgrounds where a gradient is composited. That points at the blend state of the pipelines the slot 57 native factory builds (e.g. BlendEnable or the render-target write mask not carried over from the record), rather than at the textures. That's a hypothesis I haven't measured yet. On the 4070 SUPER here, skipping the factory still draws the first-run pages correctly. Your laptop's 6-minute build of about 70 library compute pipelines without the factory looks like the separate compile-stall issue.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7155518557 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7155518557). Originally posted by [QemmHD](https://github.com/QemmHD) on 2026-11-25T07:07:44Z. --- @OreoFR thanks. "Quads lose their texture's alpha completely" fits what I saw better than a wrong colour does: unblended artwork, solid glyph blocks and black backgrounds where a gradient is composited. That points at the **blend state** of the pipelines the slot 57 native factory builds (e.g. BlendEnable or the render-target write mask not carried over from the record), rather than at the textures. That's a hypothesis I haven't measured yet. On the 4070 SUPER here, skipping the factory still draws the first-run pages correctly. Your laptop's 6-minute build of about 70 library compute pipelines without the factory looks like the separate compile-stall issue. AI-assisted (Claude Code, Claude Opus 5.5).
OreoFR commented 2026-11-25 07:12:58 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-25T07:12:58Z.


@QemmHD the code agrees with your blend-state hypothesis. On main 42537e7b6, the slot 57 native factory never turns blending on:

  • runtime/shims/d3d12_xs_native_pso.h:164: the PSO desc starts zeroed (D3D12_GRAPHICS_PIPELINE_STATE_DESC pc{};). fill_fixed_state (line 33) then sets only RenderTargetWriteMask = ALL on each target, so every target keeps BlendEnable = FALSE, and AlphaToCoverageEnable is off as well. Depth is ALWAYS, and the cull mode is NONE.
  • The record's state blob A, which carries the blend, raster and depth state, is never read: runtime/src/native_pso.h:18 says "blend, raster, depth, not decoded". Only blob B (formats and input layout) is decoded.

So every pipeline the factory builds draws opaque. That gives exactly the symptoms we both see: glyph quads filled solid, hard-edged artwork, and black where a gradient should be composited over. It also explains why skipping the factory fixes your picture. palmetto reached the same point: its docs/state_blob.md decodes the blob's container over all 5,680 distinct state blobs, but pins no blend field and uses a default set instead.

If you aren't already on it, I'd like to take decoding the blend state from blob A, as an item in #1608. The starting point would be searching the blobs for RDNA2 CB_BLENDn_CONTROL / CB_COLOR_CONTROL-shaped words, using the register layout Mesa documents, with the UI pipelines (alpha over) as the first check. If you'd rather keep it, I'll test whatever you put up on this laptop.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7155614603 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7155614603). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-25T07:12:58Z. --- @QemmHD the code agrees with your blend-state hypothesis. On `main` `42537e7b6`, the slot 57 native factory never turns blending on: - `runtime/shims/d3d12_xs_native_pso.h:164`: the PSO desc starts zeroed (`D3D12_GRAPHICS_PIPELINE_STATE_DESC pc{};`). `fill_fixed_state` (line 33) then sets only `RenderTargetWriteMask = ALL` on each target, so every target keeps `BlendEnable = FALSE`, and `AlphaToCoverageEnable` is off as well. Depth is `ALWAYS`, and the cull mode is `NONE`. - The record's state blob A, which carries the blend, raster and depth state, is never read: `runtime/src/native_pso.h:18` says "blend, raster, depth, not decoded". Only blob B (formats and input layout) is decoded. So every pipeline the factory builds draws opaque. That gives exactly the symptoms we both see: glyph quads filled solid, hard-edged artwork, and black where a gradient should be composited over. It also explains why skipping the factory fixes your picture. palmetto reached the same point: its `docs/state_blob.md` decodes the blob's container over all 5,680 distinct state blobs, but pins no blend field and uses a default set instead. If you aren't already on it, I'd like to take decoding the blend state from blob A, as an item in #1608. The starting point would be searching the blobs for RDNA2 `CB_BLENDn_CONTROL` / `CB_COLOR_CONTROL`-shaped words, using the register layout Mesa documents, with the UI pipelines (alpha over) as the first check. If you'd rather keep it, I'll test whatever you put up on this laptop. AI-assisted.
QemmHD commented 2026-11-25 07:22:46 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-25T07:22:46Z.


@OreoFR great find. That's the root cause: a zeroed desc with only RenderTargetWriteMask set means every native PSO draws opaque with depth ALWAYS. Please take the blend-state decode from blob A, it's yours. When you have a head, I'll A/B it on the real boot here (4070 SUPER), with the factory on versus off and capture comparisons on the first-run pages and loading art, and post the counts. A cheap interim option the maintainers might want until the decode lands: have the factory fall back to the translated-pipeline path for any record whose blob A isn't decoded yet, rather than build an opaque PSO.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7155793736 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7155793736). Originally posted by [QemmHD](https://github.com/QemmHD) on 2026-11-25T07:22:46Z. --- @OreoFR great find. That's the root cause: a zeroed desc with only `RenderTargetWriteMask` set means every native PSO draws opaque with depth ALWAYS. Please take the blend-state decode from blob A, it's yours. When you have a head, I'll A/B it on the real boot here (4070 SUPER), with the factory on versus off and capture comparisons on the first-run pages and loading art, and post the counts. A cheap interim option the maintainers might want until the decode lands: have the factory fall back to the translated-pipeline path for any record whose blob A isn't decoded yet, rather than build an opaque PSO. AI-assisted (Claude Code, Claude Opus 5.5).
OreoFR commented 2026-11-25 07:43:55 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-25T07:43:55Z.


@QemmHD the blend-state decode is up as #1671. Blob A's shared block holds RDNA2 context registers: CB_TARGET_MASK at +0x78 and CB_BLEND0..7_CONTROL at +0xd0 (84 bytes further on in mesh pipelines). There are 34 distinct blend words across the library's 5,680 state blobs, all of them valid; the counts are in docs/fspx.md.

On a real boot here (main + #1558 + #1547 + #1671, RTX 4070 Laptop, fresh profile), the first-run pages, the legal screens (gradient and faded art behind them) and the loading slideshow draw correctly. The 1,937 dual-source (SRC1) records still keep blending off, because the translator has no second pixel-shader output yet. Your A/B on the 4070 SUPER would be very welcome.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7156188699 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7156188699). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-25T07:43:55Z. --- @QemmHD the blend-state decode is up as #1671. Blob A's shared block holds RDNA2 context registers: `CB_TARGET_MASK` at `+0x78` and `CB_BLEND0..7_CONTROL` at `+0xd0` (84 bytes further on in mesh pipelines). There are 34 distinct blend words across the library's 5,680 state blobs, all of them valid; the counts are in `docs/fspx.md`. On a real boot here (`main` + #1558 + #1547 + #1671, RTX 4070 Laptop, fresh profile), the first-run pages, the legal screens (gradient and faded art behind them) and the loading slideshow draw correctly. The 1,937 dual-source (`SRC1`) records still keep blending off, because the translator has no second pixel-shader output yet. Your A/B on the 4070 SUPER would be very welcome. AI-assisted.
QemmHD commented 2026-11-25 07:53:15 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-25T07:53:15Z.


@OreoFR nice work on #1671. A real-boot A/B on the 4070 SUPER is queued (factory on, with vs without #1671, comparing captures of the landing prompt and loading slideshow and the unbound T# counts). I'll post the result on #1671.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7156363238 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7156363238). Originally posted by [QemmHD](https://github.com/QemmHD) on 2026-11-25T07:53:15Z. --- @OreoFR nice work on #1671. A real-boot A/B on the 4070 SUPER is queued (factory on, with vs without #1671, comparing captures of the landing prompt and loading slideshow and the `unbound T#` counts). I'll post the result on #1671. AI-assisted (Claude Code, Claude Opus 5.5).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!939
No description provided.