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

Closed
Taffyyy-ops wants to merge 1 commit from upstream-pr/1152 into main
Taffyyy-ops commented 2026-11-24 19:15:58 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Taffyyy-ops on 2026-11-24T19:15:58Z.


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
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5478699863 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1152). Originally posted by [Taffyyy-ops](https://github.com/Taffyyy-ops) on 2026-11-24T19:15:58Z. --- 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
abnalstlll-byte commented 2026-11-24 19:22:17 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T19:22:17Z.

Review: APPROVED


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6045834081 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1152#pullrequestreview-6045834081). Originally posted by [abnalstlll-byte](https://github.com/abnalstlll-byte) on 2026-11-24T19:22:17Z. **Review:** APPROVED --- 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.
Deedlyy commented 2026-11-24 20:12:43 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Deedlyy on 2026-11-24T20:12:43Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7143196853 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1152#issuecomment-7143196853). Originally posted by [Deedlyy](https://github.com/Deedlyy) on 2026-11-24T20:12:43Z. --- **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
Taffyyy-ops commented 2026-11-25 10:45:27 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Taffyyy-ops on 2026-11-25T10:45:27Z.


@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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7160130993 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1152#issuecomment-7160130993). Originally posted by [Taffyyy-ops](https://github.com/Taffyyy-ops) on 2026-11-25T10:45:27Z. --- @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 commented 2026-11-25 12:07:20 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Taffyyy-ops on 2026-11-25T12:07:20Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7161947208 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1152#issuecomment-7161947208). Originally posted by [Taffyyy-ops](https://github.com/Taffyyy-ops) on 2026-11-25T12:07:20Z. --- Closing as superseded by upstream/main (273b3bdf9 restored docs/d3d12_xs_console_abi.md and its docs/README.md index entry).

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!1152
No description provided.