Retail boot v35 #64

Open
github-bot wants to merge 2 commits from github-bot/gh-64 into main AGit
Owner

@⁠Andretuta on GitHub · 2026-11-24 02:11 UTC · original
ubiquitarianism:old-pr/9789 → main · +10522 −402 · 55 files · 2 commits · draft

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.
**@⁠Andretuta** on GitHub · 2026-11-24 02:11 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/64) `ubiquitarianism:old-pr/9789` → `main` · +10522 −402 · 55 files · 2 commits · draft > 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:42:49 +00:00
This pull request has changes conflicting with the target branch.
  • runtime/CMakeLists.txt
  • runtime/shims/acphal.cpp
  • runtime/shims/d3d12_com.cpp
  • runtime/shims/d3d12_com.h
  • runtime/shims/d3d12_vulkan_device.cpp
  • runtime/shims/d3d12_xs.cpp
  • runtime/shims/d3d12_xs_device.cpp
  • runtime/shims/d3d12_xs_device.h
  • runtime/shims/dstorage.cpp
  • runtime/shims/startup_trace.h
  • runtime/shims/xapu_chad.cpp
  • runtime/shims/xg_xs.cpp
  • runtime/shims/xgameruntime.cpp
  • runtime/shims/xmem.cpp
  • runtime/src/command_list.h
  • runtime/src/gfx10_descriptors.h
  • runtime/src/main.cpp
  • runtime/src/pe_loader.cpp
  • runtime/src/pe_loader.h
  • runtime/src/root_signature.cpp
  • runtime/src/root_signature.h
  • runtime/src/vulkan_backend.h
  • runtime/src/vulkan_bindless.h
  • runtime/src/vulkan_replay.h
  • runtime/test/acphal_test.cpp
  • runtime/test/d3d12_compute_test.cpp
  • runtime/test/device_proxy_test.cpp
  • runtime/test/queue_proxy_test.cpp
  • runtime/test/root_signature_test.cpp
  • runtime/test/vk_test_device.h
  • runtime/test/xapu_chad_test.cpp
  • runtime/test/xg_xs_test.cpp
  • runtime/test/xgameruntime_test.cpp
  • runtime/test/xmem_test.cpp
  • runtime/test/xs_proxy_mock_test.cpp
  • scripts/build_runtime.ps1
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/64/head:github-bot/gh-64'
git switch 'github-bot/gh-64'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-64'
git switch 'github-bot/gh-64'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-64'
git switch 'github-bot/gh-64'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-64'
git switch 'main'
git merge --squash 'github-bot/gh-64'
git switch 'main'
git merge --ff-only 'github-bot/gh-64'
git switch 'main'
git merge 'github-bot/gh-64'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.