[PR #1152] [CLOSED] docs: restore and update d3d12_xs_console_abi.md for current main (DOC-XS-CONSOLE-ABI) #1187

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1152
Author: @Taffyyy-ops
Created: 11/24/2026
Status: ❌ Closed

Base: main ← Head: docs/xs-console-abi


📝 Commits (1)

  • eaaf51b docs: restore and update d3d12_xs_console_abi.md for current main (DOC-XS-CONSOLE-ABI)

📊 Changes

2 files changed (+221 additions, -0 deletions)

View changed files

📝 docs/README.md (+1 -0)
➕ docs/d3d12_xs_console_abi.md (+220 -0)

📄 Description

Item ID: DOC-XS-CONSOLE-ABI (#14 claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7141775044)

Attribution

Restores docs/d3d12_xs_console_abi.md originally authored by Nolan Cotter in ancestor commits c5da97fb5..ef9d0759d (present at d2d9b2657, dropped by merge 6dece9231, and released by @fiestorra in https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7130483199).

Summary of updates for current main

  • Device & presentation wiring (#402, #359, runtime/shims/d3d12_xs_device.{h,cpp}): Updated §1 and added ### 1.2 Current runtime routing on main covering slots 8/48/75, 9, 14 (heap proxy + console extension handler), 25/26 (C-ABI + PC struct return), 62, 67, 70, 73 (CreateCommandListX with ID3D12GraphicsCommandListX IID), 76, 78–81 (SetFrameIntervalX, ScheduleFrameEventX, WaitFrameEventX, GetFrameStatisticsX wired to XboxPresentation / FramePacer, plus LEONIDA_XS_*_SLOT overrides and kMaxSlots = 192), 127 (CreateCommittedResource3), and 133 (CreatePlacedResourceX).
  • Command queue (§4): Documented main's routing (LEONIDA_XS_PRESENT_X_SLOT default 30, explicit-only LEONIDA_XS_SUSPEND_X_SLOT / LEONIDA_XS_RESUME_X_SLOT, and E_NOTIMPL + first-call logging for unrouted beyond-PC slots).
  • Command list (§5): Documented ListProxy::pin_cursor_at_limit() (console_fields at +0x18.., limit +0x518), console_to_pc_list_slot in runtime/shims/d3d12_xs_device.h, and that slot 139 (Reset -> PC slot 10, measured on retail 1.0.2.1) is not forwarded on current main (slot 10 is mapped; slot 139 routing is open separately in #396). Removed the obsolete LEONIDA_D3D12_LISTS=pc reference (guests needing PC vtables call device slot 12).
  • PresentX & Unverified sections (§9, §11): Reconciled with docs/d3d12_xs_surface.md §7.1 (public GDK/XCL/ebiten corroboration for PresentX, 0x48-byte plane struct, 0x20-byte present-params struct, and 64-bit token; keeping unmeasured items accurately scoped).
  • Index & conflict avoidance: Indexed docs/d3d12_xs_console_abi.md in docs/README.md right after d3d12_xs_surface.md (away from #848's exe_fail_fast.md insertion), and left docs/d3d12_vulkan.md untouched to avoid conflicting with #1125.

Verification

AI-assisted: yes (docs-only change; no GPU required; LEONIDA_GAME_DIR and LEONIDA_MOVIE unset; no game files).
Ran all 12 tests/test_docs_*.py suites after staging both files:

  • test_docs_cli_flags.py: 4 tests OK
  • test_docs_design_rows.py: 5 tests OK
  • test_docs_encoding.py: 1 test OK
  • test_docs_env_vars.py: 4 tests OK
  • test_docs_links.py: 16 tests OK
  • test_docs_list_items.py: 3 tests OK
  • test_docs_pr_template.py: 2 tests OK
  • test_docs_python_deps.py: 3 tests OK
  • test_docs_repeated_lines.py: 2 tests OK
  • test_docs_repo_paths.py: 3 tests OK
  • test_docs_table_ids.py: 2 tests OK
  • test_docs_table_rows.py: 2 tests OK
  • python -I scripts/check_no_game_data.py docs/d3d12_xs_console_abi.md docs/README.md: exit 0
  • git diff --cached --check: clean

🔄 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/1152 **Author:** [@Taffyyy-ops](https://github.com/Taffyyy-ops) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `docs/xs-console-abi` --- ### 📝 Commits (1) - [`eaaf51b`](https://github.com/ubiquitarianism/leonida/commit/eaaf51bdfc5c37caad869cf172beb8a2b6f52d7c) docs: restore and update d3d12_xs_console_abi.md for current main (DOC-XS-CONSOLE-ABI) ### 📊 Changes **2 files changed** (+221 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/README.md` (+1 -0) ➕ `docs/d3d12_xs_console_abi.md` (+220 -0) </details> ### 📄 Description Item ID: `DOC-XS-CONSOLE-ABI` (#14 claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7141775044) ### Attribution Restores `docs/d3d12_xs_console_abi.md` originally authored by Nolan Cotter in ancestor commits `c5da97fb5..ef9d0759d` (present at `d2d9b2657`, dropped by merge `6dece9231`, and released by `@fiestorra` in https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7130483199). ### Summary of updates for current `main` - **Device & presentation wiring (`#402`, `#359`, `runtime/shims/d3d12_xs_device.{h,cpp}`):** Updated §1 and added `### 1.2 Current runtime routing on main` covering slots `8/48/75`, `9`, `14` (heap proxy + console extension handler), `25/26` (C-ABI + PC struct return), `62`, `67`, `70`, `73` (`CreateCommandListX` with `ID3D12GraphicsCommandListX` IID), `76`, `78–81` (`SetFrameIntervalX`, `ScheduleFrameEventX`, `WaitFrameEventX`, `GetFrameStatisticsX` wired to `XboxPresentation` / `FramePacer`, plus `LEONIDA_XS_*_SLOT` overrides and `kMaxSlots = 192`), `127` (`CreateCommittedResource3`), and `133` (`CreatePlacedResourceX`). - **Command queue (§4):** Documented `main`'s routing (`LEONIDA_XS_PRESENT_X_SLOT` default `30`, explicit-only `LEONIDA_XS_SUSPEND_X_SLOT` / `LEONIDA_XS_RESUME_X_SLOT`, and `E_NOTIMPL` + first-call logging for unrouted beyond-PC slots). - **Command list (§5):** Documented `ListProxy::pin_cursor_at_limit()` (`console_fields` at `+0x18..`, limit `+0x518`), `console_to_pc_list_slot` in `runtime/shims/d3d12_xs_device.h`, and that slot `139` (`Reset` -> PC slot `10`, measured on retail 1.0.2.1) is not forwarded on current `main` (slot `10` is mapped; slot `139` routing is open separately in `#396`). Removed the obsolete `LEONIDA_D3D12_LISTS=pc` reference (guests needing PC vtables call device slot `12`). - **`PresentX` & Unverified sections (§9, §11):** Reconciled with `docs/d3d12_xs_surface.md` §7.1 (public GDK/XCL/ebiten corroboration for `PresentX`, `0x48`-byte plane struct, `0x20`-byte present-params struct, and 64-bit token; keeping unmeasured items accurately scoped). - **Index & conflict avoidance:** Indexed `docs/d3d12_xs_console_abi.md` in `docs/README.md` right after `d3d12_xs_surface.md` (away from `#848`'s `exe_fail_fast.md` insertion), and left `docs/d3d12_vulkan.md` untouched to avoid conflicting with `#1125`. ### Verification AI-assisted: yes (docs-only change; no GPU required; `LEONIDA_GAME_DIR` and `LEONIDA_MOVIE` unset; no game files). Ran all 12 `tests/test_docs_*.py` suites after staging both files: - `test_docs_cli_flags.py`: 4 tests OK - `test_docs_design_rows.py`: 5 tests OK - `test_docs_encoding.py`: 1 test OK - `test_docs_env_vars.py`: 4 tests OK - `test_docs_links.py`: 16 tests OK - `test_docs_list_items.py`: 3 tests OK - `test_docs_pr_template.py`: 2 tests OK - `test_docs_python_deps.py`: 3 tests OK - `test_docs_repeated_lines.py`: 2 tests OK - `test_docs_repo_paths.py`: 3 tests OK - `test_docs_table_ids.py`: 2 tests OK - `test_docs_table_rows.py`: 2 tests OK - `python -I scripts/check_no_game_data.py docs/d3d12_xs_console_abi.md docs/README.md`: exit 0 - `git diff --cached --check`: clean --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:20:23 +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#1187
No description provided.