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

Closed
leonida/mandy
Taffyyy-ops wants to merge 0 commits from docs/xs-console-abi into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

Taffyyy-ops commented 2026-11-24 19:15:58 +00:00

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
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 approved these changes 2026-11-24 19:22:17 +00:00
abnalstlll-byte left a comment

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.

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

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

**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

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

@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

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

Closing as superseded by upstream/main (273b3bdf9 restored docs/d3d12_xs_console_abi.md and its docs/README.md index entry).
Sign in to join this conversation.
No description provided.