[PR #64] Retail boot v35 #117

Open
opened 2026-11-26 20:16:51 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/64
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: old-pr/9789


📝 Commits (2)

  • 3c6f36a Advance retail boot to 52354 graphics events with shader, ABI, memory and Vulkan compatibility fixes
  • 5cfceaa v35: reach sustained retail rendering loop with live fences and A8 compatibility

📊 Changes

55 files changed (+10522 additions, -402 deletions)

View changed files

➕ docs/retail-boot-v30.md (+33 -0)
➕ docs/retail-boot-v35.md (+40 -0)
📝 runtime/CMakeLists.txt (+149 -1)
➕ runtime/shims/acphal.cpp (+197 -0)
➕ runtime/shims/bridge_range_v10.h (+25 -0)
📝 runtime/shims/d3d12_com.cpp (+36 -1)
📝 runtime/shims/d3d12_com.h (+8 -0)
📝 runtime/shims/d3d12_vulkan_device.cpp (+316 -20)
📝 runtime/shims/d3d12_xs.cpp (+53 -2)
📝 runtime/shims/d3d12_xs_device.cpp (+3364 -167)
📝 runtime/shims/d3d12_xs_device.h (+54 -10)
➕ runtime/shims/dstorage.cpp (+1184 -0)
📝 runtime/shims/registry.cpp (+39 -0)
➕ runtime/shims/sampler_decode_v13.h (+79 -0)
📝 runtime/shims/shims.h (+13 -0)
📝 runtime/shims/startup_trace.h (+7 -6)
➕ runtime/shims/xapu_chad.cpp (+216 -0)
➕ runtime/shims/xg_xs.cpp (+323 -0)
📝 runtime/shims/xgameruntime.cpp (+8 -0)
📝 runtime/shims/xmem.cpp (+125 -17)

...and 35 more files

📄 Description

Carried over from old PR 9789 by incub0t-hash in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9789, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
This branch conflicts with the current main and needs a rebase.
incub0t-hash: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

Claimed in the coordination issue as: Pending coordination in #9677.
finding: Experimental retail boot advancement reaching a sustained rendering loop, with live fence synchronisation, A8 resource compatibility and additional runtime ABI fixes.

My v35 branch reaches 65,646 graphics events, 434 recorded draw calls and 869 successful command-queue execution calls within 240 seconds, with the runtime remaining active.

Branch: https://github.com/incub0t-hash/Leonida/tree/retail-boot-v35

All 31 selected regression tests and additional integration tests passed on an RTX 3080 Ti with driver 621.24.

Visible frame presentation is not yet confirmed. Please advise on the appropriate coordination IDs and how best to split or reconcile the changes with existing work.

Depends on: #7403, #7323, #7201, #7490, #5381 — incorporated changes or overlapping implementations requiring reconciliation with current main.

What and why

This experimental branch advances retail boot substantially beyond the original startup blockers encountered at base commit 5bc205a.

Changes include:

  • Xbox D3D12 device and command-list ABI compatibility.
  • Physical memory allocation and mapping improvements.
  • DirectStorage decompression support.
  • Sampler and descriptor compatibility.
  • Packed 16-bit Vulkan image compatibility.
  • Sampled A8_UNORM 1D texture allocation and creation.
  • AMD CLZERO compatibility on Intel processors.
  • Live Xbox fence-completion counters backed by actual completion values.
  • Scoped MONITORX/MWAITX compatibility.
  • Optional device slot 81 query failure handling.
  • Local shader-recovery diagnostics.

The runtime now reaches a sustained rendering loop and continues executing without terminating at the previously encountered startup assertions.

Tested

Hardware and environment:

  • Intel Core i9-14900KF
  • NVIDIA GeForce RTX 3080 Ti, 12 GB
  • NVIDIA driver 621.24
  • Windows
  • Vulkan backend

Regression results:

  • 27/27 core runtime tests passed.
  • 4/4 PC graphics regression tests passed.
  • Packed 16-bit GPU roundtrip passed.
  • Live fence CPU and queue signalling tests passed.
  • A8 1D resource allocation and creation passed.

Retail runtime results at 240 seconds:

  • 65,646 graphics trace events.
  • 50,466 successful pipeline creations.
  • 434 recorded draw calls.
  • 869 successful command-queue execution calls.
  • 868 successful queue signalling calls.
  • Runtime remained active beyond the reporting limit.

Local shader recovery:

  • 67 additional shader programs recovered locally.
  • 49/67 translated and passed spirv-val.
  • 18 remained unresolved in that batch.
  • Further shader requests were encountered during subsequent startup.

No generated shader files are included in this submission.

Remaining limitations:

Successful visible frame presentation has not yet been verified. Presentation integration, additional shader translation and several experimental compatibility paths require further work.

AI-assisted: Yes.

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here — final repository audit pending.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed — pending translator changes and documentation review.

🔄 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/64 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `old-pr/9789` --- ### 📝 Commits (2) - [`3c6f36a`](https://github.com/ubiquitarianism/leonida/commit/3c6f36ace29f9cf7b67e0d9ab9744dc4de6873ba) Advance retail boot to 52354 graphics events with shader, ABI, memory and Vulkan compatibility fixes - [`5cfceaa`](https://github.com/ubiquitarianism/leonida/commit/5cfceaa5b5eddad5c874a407126b8f36c9571066) v35: reach sustained retail rendering loop with live fences and A8 compatibility ### 📊 Changes **55 files changed** (+10522 additions, -402 deletions) <details> <summary>View changed files</summary> ➕ `docs/retail-boot-v30.md` (+33 -0) ➕ `docs/retail-boot-v35.md` (+40 -0) 📝 `runtime/CMakeLists.txt` (+149 -1) ➕ `runtime/shims/acphal.cpp` (+197 -0) ➕ `runtime/shims/bridge_range_v10.h` (+25 -0) 📝 `runtime/shims/d3d12_com.cpp` (+36 -1) 📝 `runtime/shims/d3d12_com.h` (+8 -0) 📝 `runtime/shims/d3d12_vulkan_device.cpp` (+316 -20) 📝 `runtime/shims/d3d12_xs.cpp` (+53 -2) 📝 `runtime/shims/d3d12_xs_device.cpp` (+3364 -167) 📝 `runtime/shims/d3d12_xs_device.h` (+54 -10) ➕ `runtime/shims/dstorage.cpp` (+1184 -0) 📝 `runtime/shims/registry.cpp` (+39 -0) ➕ `runtime/shims/sampler_decode_v13.h` (+79 -0) 📝 `runtime/shims/shims.h` (+13 -0) 📝 `runtime/shims/startup_trace.h` (+7 -6) ➕ `runtime/shims/xapu_chad.cpp` (+216 -0) ➕ `runtime/shims/xg_xs.cpp` (+323 -0) 📝 `runtime/shims/xgameruntime.cpp` (+8 -0) 📝 `runtime/shims/xmem.cpp` (+125 -17) _...and 35 more files_ </details> ### 📄 Description > Carried over from **old PR 9789** by `incub0t-hash` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9789`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > This branch conflicts with the current `main` and needs a rebase. > `incub0t-hash`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): Claimed in the coordination issue as: Pending coordination in `#9677`. finding: Experimental retail boot advancement reaching a sustained rendering loop, with live fence synchronisation, A8 resource compatibility and additional runtime ABI fixes. My v35 branch reaches 65,646 graphics events, 434 recorded draw calls and 869 successful command-queue execution calls within 240 seconds, with the runtime remaining active. Branch: https://github.com/incub0t-hash/Leonida/tree/retail-boot-v35 All 31 selected regression tests and additional integration tests passed on an RTX 3080 Ti with driver 621.24. Visible frame presentation is not yet confirmed. Please advise on the appropriate coordination IDs and how best to split or reconcile the changes with existing work. Depends on: `#7403`, `#7323`, `#7201`, `#7490`, `#5381` — incorporated changes or overlapping implementations requiring reconciliation with current main. ### What and why This experimental branch advances retail boot substantially beyond the original startup blockers encountered at base commit `5bc205a`. Changes include: - Xbox D3D12 device and command-list ABI compatibility. - Physical memory allocation and mapping improvements. - DirectStorage decompression support. - Sampler and descriptor compatibility. - Packed 16-bit Vulkan image compatibility. - Sampled A8_UNORM 1D texture allocation and creation. - AMD CLZERO compatibility on Intel processors. - Live Xbox fence-completion counters backed by actual completion values. - Scoped MONITORX/MWAITX compatibility. - Optional device slot 81 query failure handling. - Local shader-recovery diagnostics. The runtime now reaches a sustained rendering loop and continues executing without terminating at the previously encountered startup assertions. ### Tested **Hardware and environment:** - Intel Core i9-14900KF - NVIDIA GeForce RTX 3080 Ti, 12 GB - NVIDIA driver 621.24 - Windows - Vulkan backend **Regression results:** - 27/27 core runtime tests passed. - 4/4 PC graphics regression tests passed. - Packed 16-bit GPU roundtrip passed. - Live fence CPU and queue signalling tests passed. - A8 1D resource allocation and creation passed. **Retail runtime results at 240 seconds:** - 65,646 graphics trace events. - 50,466 successful pipeline creations. - 434 recorded draw calls. - 869 successful command-queue execution calls. - 868 successful queue signalling calls. - Runtime remained active beyond the reporting limit. **Local shader recovery:** - 67 additional shader programs recovered locally. - 49/67 translated and passed spirv-val. - 18 remained unresolved in that batch. - Further shader requests were encountered during subsequent startup. No generated shader files are included in this submission. **Remaining limitations:** Successful visible frame presentation has not yet been verified. Presentation integration, additional shader translation and several experimental compatibility paths require further work. AI-assisted: Yes. ### Checklist - [ ] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here — final repository audit pending. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed — pending translator changes and documentation review. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#117
No description provided.