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

Closed
github-bot wants to merge 1 commit from gh-pr/1152/head into gh-pr/1152/base
Owner

@⁠Taffyyy-ops on GitHub · 2026-11-24 19:15 UTC · original
Taffyyy-ops:docs/xs-console-abi → main · +221 −0 · 2 files · 1 commits · closed without merging

Item ID: DOC-XS-CONSOLE-ABI (#14 claim: #14)

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 #14).

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
**@⁠Taffyyy-ops** on GitHub · 2026-11-24 19:15 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1152) `Taffyyy-ops:docs/xs-console-abi` → `main` · +221 −0 · 2 files · 1 commits · closed without merging Item ID: `DOC-XS-CONSOLE-ABI` (#14 claim: https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) ### 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://git.gtahub.st/github/ubiquitarianism--leonida/issues/14). ### 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
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 in #14 comment 7130483199). Reconciles
device, queue, and command-list slot notes with current main
(runtime/shims/d3d12_xs_device.{h,cpp}, #402 frame-pacing slots 78-81 /
PresentX slot 30, #359 list slot 73 IID, console_to_pc_list_slot,
removal of nonexistent LEONIDA_D3D12_LISTS), updates PresentX / Section 11
status per docs/d3d12_xs_surface.md, and indexes the page in docs/README.md.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:40:23 +00:00
github-bot closed this pull request 2026-11-26 09:40:23 +00:00
Author
Owner

@⁠abnalstlll-byte on GitHub · 2026-11-24 19:22 UTC · original · approved these changes

Reviewed and verified. Comprehensive, high-precision technical documentation in \docs/d3d12_xs_console_abi.md\ detailing device, queue, and command-list vtable slots, inline command list record encodings, unified memory placement contracts, and \PresentX\ frame pacing parameters reconciled with current main. 100% clean-room.

**@⁠abnalstlll-byte** on GitHub · 2026-11-24 19:22 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1152#pullrequestreview-6045834081) · **approved these changes** Reviewed and verified. Comprehensive, high-precision technical documentation in \docs/d3d12_xs_console_abi.md\ detailing device, queue, and command-list vtable slots, inline command list record encodings, unified memory placement contracts, and \PresentX\ frame pacing parameters reconciled with current main. 100% clean-room.
Author
Owner

@⁠Deedlyy on GitHub · 2026-11-24 20:12 UTC · original

Recommendation: [MERGE]

Reasoning: Restores docs/d3d12_xs_console_abi.md, which a merge dropped, with attribution, and updates it for current main's slot routing. Documentation only. Nobody has reviewed the content yet, so readers should treat the routing tables as the author's reading of current code. CI (label, change-scope, no-game-data and the Runtime jobs) is still queued awaiting maintainer workflow approval, so nothing has run in CI yet; GitHub reports no merge conflict with main. Merge once the queued checks are green.

Impact level: 2/10

**@⁠Deedlyy** on GitHub · 2026-11-24 20:12 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1152#issuecomment-7143196853) **Recommendation:** [MERGE] **Reasoning:** Restores `docs/d3d12_xs_console_abi.md`, which a merge dropped, with attribution, and updates it for current main's slot routing. Documentation only. Nobody has reviewed the content yet, so readers should treat the routing tables as the author's reading of current code. CI (label, change-scope, no-game-data and the Runtime jobs) is still queued awaiting maintainer workflow approval, so nothing has run in CI yet; GitHub reports no merge conflict with `main`. Merge once the queued checks are green. **Impact level:** 2/10
Author
Owner

@⁠Taffyyy-ops on GitHub · 2026-11-25 10:45 UTC · original

@⁠abnalstlll-byte @⁠Deedlyy Thanks for the review and [MERGE] recommendation! Checking current upstream/main, docs/d3d12_xs_console_abi.md (279 lines) and its docs/README.md index entry have since been restored by 273b3bdf9 (RT-PROTON-STORY-LOAD), so #1152 appears superseded.

**@⁠Taffyyy-ops** on GitHub · 2026-11-25 10:45 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1152#issuecomment-7160130993) @⁠abnalstlll-byte @⁠Deedlyy Thanks for the review and `[MERGE]` recommendation! Checking current `upstream/main`, `docs/d3d12_xs_console_abi.md` (279 lines) and its `docs/README.md` index entry have since been restored by `273b3bdf9` (`RT-PROTON-STORY-LOAD`), so `#1152` appears superseded.
Author
Owner

@⁠Taffyyy-ops on GitHub · 2026-11-25 12:07 UTC · original

Closing as superseded by upstream/main (273b3bdf9 restored docs/d3d12_xs_console_abi.md and its docs/README.md index entry).

**@⁠Taffyyy-ops** on GitHub · 2026-11-25 12:07 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1152#issuecomment-7161947208) Closing as superseded by upstream/main (273b3bdf9 restored docs/d3d12_xs_console_abi.md and its docs/README.md index entry).

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.