[integration] Windows offline boot to the first-run UI (RT-WINDOWS-FIRST-RUN-UI) #939
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!939
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/939/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Rain156 on GitHub · 2026-11-24 15:19 UTC · original
Rain156:integration/windows-first-run-ui→main· +14089 −953 · 131 files · 145 commits · merged 2026-11-25 02:33 UTCClaimed 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 normalmake_game.pycommand and the launch command. Build and launch from this branchTested
eb6a08cd3build, 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.check,shaders,runtimecommand 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 withcheck,runtime.d3d12_vulkan_devicetest 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.GPUs tested: NVIDIA GeForce RTX 5070 Ti, driver 617.42, Windows 11 x64 build 26200, MSVC x64 RelWithDebInfo.
AI-assisted: Yes (Codex).
Checklist
mainand checked for a clean merge.docs/design.md.9ec34cdff) into the frame-loop boot stack 1a04df0b1b84347bbb6): the pipeline-library stage of #19 next to the executable's embedded shaders aba2409915The coverage gate asks for every queue slot to have been called, and skips the overridden ones in its sweep of the refused tail. Slot 32 is overridden since the PresentX wiring, so nothing called it and the gate failed ("queue slot 32 never called"). The test now calls it where it calls the console ExecuteCommandLists slot: this build of the proxy has no presenter, so the answer is S_OK. Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt71a783e56into the #939 merge 38bd89d44e0aecc5efa: #984 and #968) into the #939 merge 7ea226e65b3ff2a2adc) into the #939 merge 0819cfec80@towade on GitHub · 2026-11-24 20:19 UTC · original · edited 2026-11-26 07:16 UTC
checked:
eb6a08cd3built 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'smake_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.int3after 10 sPresentXok / failedExecuteCommandListsok / failedDrawInstanced/DrawIndexedInstanced/DispatchOn the RX 9070 XT,
PresentXuses 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
mainand #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
PresentXok, 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 on GitHub · 2026-11-24 20:52 UTC · original
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'sGameInput.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'sint3at 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):PresentXok / failedGameInput.dll!#1SDL 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)input in use: Xbox … button press)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
xgameruntimeline, 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:
GameInputCreateandRegisterDeviceCallback(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.GetCurrentReading(gamepad, <device>)with a device: alternately the pad (045e:02e0) and the shim's keyboard pad. Every call returnsS_OK, followed byGetGamepadState. NoGetNextReading, no reading callbacks, noGetUiNavigationState.buttons = 0, because a short press fell between two polls. In the second the buttons were held for about 3 s each, andGetGamepadStatereturned 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).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 on GitHub · 2026-11-25 00:18 UTC · original
Tested exact head
eb6a08cd359d98b5777e70d54d0ae8a75879495aon 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.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
8afbba14bfixtures passes 2/2 on this branch unchanged. The PR #1334 adaptation fails the corrected pair and was kept out; details: #1334 .One small Wine-specific fixture issue:
run_tiny_first_run_uifails 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 on GitHub · 2026-11-25 00:49 UTC · original
I checked the startup cache checkpoint against this PR's exact head
eb6a08cd. PortBridge linked the first-run profile's defaultLEONIDA_PIPELINE_COMPILE=on-demandto the first-use compute materializer. That callback creates the Vulkan pipeline without reaching the checkpoint call in the eager branch, even whenLEONIDA_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.
@aslan2142 on GitHub · 2026-11-25 00:59 UTC · original
@towade thanks for the two runs above (#939): 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?
PresentX, pipelines created and failed), where each run stopped.Nothing from that comment goes into the merge itself; this is only about the thread.
AI-assisted (Claude Code, Claude Fable 5.2).
@OreoFR on GitHub · 2026-11-25 01:36 UTC · original
checked:
eb6a08cd3on native Windows with an NVIDIA laptop GPU, built and launched asdocs/first_run_ui.mdsays. 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 frommain; 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 andspirv-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!#1is bound to the shim.Runs (
gta6rt --first-run-ui <exe>, stopped by the harness):--trace --trace-d3d12--traceonly--trace,LEONIDA_WINDOW=1600x960PresentXok / failedExecuteCommandListsok / failedDrawInstanced/DrawIndexedInstanced/DispatchDeserializeComputePipelineStateX)E_INVALIDARGThe 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
PrintWindowcapture 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, withLEONIDA_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_WINDOWin the--first-run-uiprofile) 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 on GitHub · 2026-11-25 02:33 UTC · original
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:
NativeGraphicsFactoryis asked first;E_NOTIMPLfalls back to #984's path. There is a mock test of the chain.--first-run-uiand 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_UINTattachment, which is the case on AMD; this was checked on an RDNA2 iGPU under RADV.LEONIDA_CONSOLE_D16S8=nativeforces it elsewhere.Maintainer decisions:
LEONIDA_LOCAL_SPEECH=1turns it on), because of the "nothing online" rule.graphics-runtime-patches@d9a0bc1bpatches, VIctory as GPL-3.0-or-later and translated to C++, and headers onnative_pso.handd3d12_xs_native_pso.hnamingenx/leonida5c175db90as 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):
mainwith #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.vk_present_dump*tests fail on the headless iGPU here, as they did on this branch's head and asvk_presenter_syncdoes onmain: the iGPU cannot present under Xvfb.ctest: 82 pass, 2 skipped. Translator suite: 485 files, 6,269 tests, 0 failed.check_no_game_data.pyis clean on the 131 changed files, and no image or hash list of the game is in any file.xbox_cbv_vectors, the rebound-table cases,xbox_placed_texture_first_use,d3d12_depth_stencil_uav,xbox_geometry_upload_batchandd3d12_quad_index. Two were red on this branch's head and are fixed:run_tiny_first_run_ui, and case 11 oftest_exe_shaders_stage.Please test, in this order:
--first-run-uion AMD (RX 9070 XT): anyslot 57 call N failedlines, theconsole D16S8log line, and whether the screen draws.--runon NVIDIA through the story load: the depth-stencil UAV path, which now takes your two-resource path on every GPU, and the movie planes.Not run here: MSVC, native Windows, and the game.
AI-assisted (Claude Code, Claude Fable 5.2 and Claude Opus 5.5).
@QemmHD on GitHub · 2026-11-25 02:43 UTC · original
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
3ff2a2adcand fails ate79906a42:runtime/CMakeLists.txtnow readstools/conformance/, so.github/workflows/runtime.ymlneedstools/conformance/**added to itspaths:filters (both the push and pull_request lists, next to the othertools/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 on GitHub · 2026-11-25 03:25 UTC · original
@aslan2142 your item 2, plain
--runon NVIDIA, on native Windows: onmainafter this merge the title stops right after the first A on the landing screen, in 3 of 3 runs.mainjust 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 ownmake_game.py --stages check,shaders,runtime, withhistory.bcphgenerated (main 26,503 → 26,530 after this merge, library 2,683 / 2,684, exe 12 / 12, BVH 52 / 52, allspirv-val-valid).main0aecc5efa(#984 + #968, before this merge)main85ece6847(after this merge)+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 cacheVK_ERROR_DEVICE_LOSTat ~122 s, then the title'sint3at+0x2474606. Runs 2 and 3: no device loss, the title'sint3at+0x131a2ad, 2 s and 4 s after the pressSame input script in run 3 as in the run before the merge. Run 1 had
LEONIDA_TITLE_WATCHDOG=0, run 2 hadLEONIDA_DEVICE_FAULT=1(no device loss happened, so no fault report), run 3 neither.The stack of the
+0x131a2adstop 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
0aecc5efaand85ece6847if that helps. Traces and logs stay on this machine.Measured with Claude Code.
@QemmHD on GitHub · 2026-11-25 04:12 UTC · original · edited 2026-11-25 04:27 UTC
@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
0bc810504built with MSVC: 3 of 3 runs end with an int3 51-74 s in (exit 0x80000003), after 182-362 PresentX. Main3ff2a2adc, 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):
E_INVALIDARG.ALLOW_DEPTH_STENCIL | ALLOW_UNORDERED_ACCESS(plus Xbox bits), layout argument0xFFFFFFFF.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.create_committedrewrites the format throughpc_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. ButResource::enable_depth_stencil_uavaccepts 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=nativehas 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_uavaccept the D24S8 backing thatpc_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.3ff2a2adcdraws 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 on GitHub · 2026-11-25 04:18 UTC · original · edited 2026-11-25 04:27 UTC
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
0bc810504plus 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). TeachingResource::enable_depth_stencil_uavthe 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 between3ff2a2adcand0bc810504causes it. I'm bisecting it now, starting from the #939 merge commit itself.AI-assisted (Claude Code, Claude Opus 5.5).
@OreoFR on GitHub · 2026-11-25 04:22 UTC · original
@QemmHD confirmed on a second NVIDIA (RTX 4070 Laptop, driver 32.0.15.9159, native Windows, main
85ece6847and the #939 mergee79906a42): the sameE_INVALIDARGon a format-118 placed target (2560×1440 here, flags0x80300006), and a local switch that skips installing the depth-stencil UAV provider removes the stop.3ff2a2adcpasses 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-d3d12run 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 on GitHub · 2026-11-25 04:34 UTC · original
@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 on GitHub · 2026-11-25 04:37 UTC · original
@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 on GitHub · 2026-11-25 05:16 UTC · original
@QemmHD ran #1558 here with both modes, results on the PR: #1558
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 on GitHub · 2026-11-25 05:23 UTC · original
@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".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.NativeGraphicsFactory(a local, env-gated 3-line experiment) restores the correct picture: 6,399 PresentX ok, with capture means identical to3ff2a2adc.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 on GitHub · 2026-11-25 06:54 UTC · original
@QemmHD a second NVIDIA machine for the picture regression: RTX 4070 Laptop, driver 591.59, Windows 11. Build:
mainc7e82e26e+ #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:
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=0here), 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 on GitHub · 2026-11-25 07:07 UTC · original
@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 on GitHub · 2026-11-25 07:12 UTC · original
@QemmHD the code agrees with your blend-state hypothesis. On
main42537e7b6, 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 onlyRenderTargetWriteMask = ALLon each target, so every target keepsBlendEnable = FALSE, andAlphaToCoverageEnableis off as well. Depth isALWAYS, and the cull mode isNONE.runtime/src/native_pso.h:18says "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.mddecodes 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 on GitHub · 2026-11-25 07:22 UTC · original
@OreoFR great find. That's the root cause: a zeroed desc with only
RenderTargetWriteMaskset 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 on GitHub · 2026-11-25 07:43 UTC · original
@QemmHD the blend-state decode is up as #1671. Blob A's shared block holds RDNA2 context registers:
CB_TARGET_MASKat+0x78andCB_BLEND0..7_CONTROLat+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 indocs/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 on GitHub · 2026-11-25 07:53 UTC · original
@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).