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

Closed
opened 2026-11-26 20:19:41 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/939
Author: @Rain156
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142

Base: main ← Head: integration/windows-first-run-ui


📝 Commits (10+)

  • c0a5d66 feat(vulkan): support Texture1D, Texture1DArray and Texture3D UAVs
  • 1e63e09 test(vulkan): exercise D3D-78 texture UAVs in the GPU runner
  • 57cb669 fix(vulkan): require formatless reads for all D3D-78 UAVs
  • e925b63 d3d12_xs: route command queue slot 35 to ExecuteCommandLists
  • d3a1c29 d3d12: persist the pipeline cache across launches (D3D-704)
  • 86cd0c5 d3d12: draw the console's rectangle lists (17, PSO type 19) and quad lists (19) as triangles
  • a6b31d5 d3d12: rectangle list stage emits (v1 v2 v4) (v1 v4 v3) with capability Geometry, log cut-off quads (review fixes)
  • a3da512 d3d12: checkpoint slow compute pipeline compiles
  • 49410a5 d3d12: a slot-133 buffer whose pages are not imported is a shadow at the title's VA
  • 14dc9af d3d12: enable SSE4.1 for Clang's slot-133 streaming copy

📊 Changes

131 files changed (+14089 additions, -953 deletions)

View changed files

📝 README.md (+3 -1)
📝 docs/README.md (+2 -1)
📝 docs/boot.md (+4 -8)
📝 docs/d3d12_vulkan.md (+120 -55)
📝 docs/design.md (+6 -4)
📝 docs/embedded_shaders.md (+10 -2)
➕ docs/first_run_ui.md (+37 -0)
📝 docs/pipeline_check.md (+5 -3)
📝 docs/runtime_imports.md (+44 -11)
📝 docs/shader_library.md (+10 -10)
📝 docs/testing.md (+22 -3)
📝 make_game.py (+2 -2)
📝 runtime/CMakeLists.txt (+186 -14)
📝 runtime/README.md (+13 -0)
📝 runtime/shims/d3d12_com.cpp (+148 -18)
📝 runtime/shims/d3d12_com.h (+37 -5)
📝 runtime/shims/d3d12_com_object.h (+9 -0)
📝 runtime/shims/d3d12_vulkan_device.cpp (+1630 -236)
📝 runtime/shims/d3d12_xs_device.cpp (+623 -32)
📝 runtime/shims/d3d12_xs_device.h (+83 -4)

...and 80 more files

📄 Description

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.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/939 **Author:** [@Rain156](https://github.com/Rain156) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/25/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `integration/windows-first-run-ui` --- ### 📝 Commits (10+) - [`c0a5d66`](https://github.com/ubiquitarianism/leonida/commit/c0a5d66fa60c7fd8e95700242c3f64ea23560fe5) feat(vulkan): support Texture1D, Texture1DArray and Texture3D UAVs - [`1e63e09`](https://github.com/ubiquitarianism/leonida/commit/1e63e096805a779a61f31715da5498d9864da116) test(vulkan): exercise D3D-78 texture UAVs in the GPU runner - [`57cb669`](https://github.com/ubiquitarianism/leonida/commit/57cb669f52ba6ca4bb58bf2e09492ffbe2b8ee60) fix(vulkan): require formatless reads for all D3D-78 UAVs - [`e925b63`](https://github.com/ubiquitarianism/leonida/commit/e925b634551ed96d1ed097dfe17d7dfca0cdbe4d) d3d12_xs: route command queue slot 35 to ExecuteCommandLists - [`d3a1c29`](https://github.com/ubiquitarianism/leonida/commit/d3a1c290b5738694e4d3b78a66350e70e0eb5846) d3d12: persist the pipeline cache across launches (D3D-704) - [`86cd0c5`](https://github.com/ubiquitarianism/leonida/commit/86cd0c5f2a392f6637ff5724d2786b12084b28b7) d3d12: draw the console's rectangle lists (17, PSO type 19) and quad lists (19) as triangles - [`a6b31d5`](https://github.com/ubiquitarianism/leonida/commit/a6b31d51ac5d4ea43e965539fd1793f7d995d6db) d3d12: rectangle list stage emits (v1 v2 v4) (v1 v4 v3) with capability Geometry, log cut-off quads (review fixes) - [`a3da512`](https://github.com/ubiquitarianism/leonida/commit/a3da5122fdb1d4d9db8c5c2cdb89e9f04f46671b) d3d12: checkpoint slow compute pipeline compiles - [`49410a5`](https://github.com/ubiquitarianism/leonida/commit/49410a52fc6684f09692d551815fd385c73be7fc) d3d12: a slot-133 buffer whose pages are not imported is a shadow at the title's VA - [`14dc9af`](https://github.com/ubiquitarianism/leonida/commit/14dc9af525c5e54f9edbde43ccb2bbe499007852) d3d12: enable SSE4.1 for Clang's slot-133 streaming copy ### 📊 Changes **131 files changed** (+14089 additions, -953 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+3 -1) 📝 `docs/README.md` (+2 -1) 📝 `docs/boot.md` (+4 -8) 📝 `docs/d3d12_vulkan.md` (+120 -55) 📝 `docs/design.md` (+6 -4) 📝 `docs/embedded_shaders.md` (+10 -2) ➕ `docs/first_run_ui.md` (+37 -0) 📝 `docs/pipeline_check.md` (+5 -3) 📝 `docs/runtime_imports.md` (+44 -11) 📝 `docs/shader_library.md` (+10 -10) 📝 `docs/testing.md` (+22 -3) 📝 `make_game.py` (+2 -2) 📝 `runtime/CMakeLists.txt` (+186 -14) 📝 `runtime/README.md` (+13 -0) 📝 `runtime/shims/d3d12_com.cpp` (+148 -18) 📝 `runtime/shims/d3d12_com.h` (+37 -5) 📝 `runtime/shims/d3d12_com_object.h` (+9 -0) 📝 `runtime/shims/d3d12_vulkan_device.cpp` (+1630 -236) 📝 `runtime/shims/d3d12_xs_device.cpp` (+623 -32) 📝 `runtime/shims/d3d12_xs_device.h` (+83 -4) _...and 80 more files_ </details> ### 📄 Description 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`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:19:41 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#979
No description provided.