docs: align the other pages with the measured CreateDevice block size and slot 62/76 (D3D12-OTHER-PAGES-CONSISTENCY) #1056

Merged
robot00f merged 1 commit from upstream-pr/1056 into main 2026-11-29 21:12:31 +00:00
robot00f commented 2026-11-24 17:25:36 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by robot00f on 2026-11-24T17:25:36Z.


Claimed in the coordination issue as: D3D12-OTHER-PAGES-CONSISTENCY (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7139160368)

Depends on: #1010 (the block size), #1007 (slot 62/76). Neither file here is touched by those, so all three merge independently.

What and why

Two other pages carry the same two facts in their old form, and leaving them makes the docs contradict each other once #1007 and #1010 are in:

  • d3d12_xs_surface.md calls the D3D12XboxCreateDevice block "24-word" in the §7.1 row and in the §9 row #1. Measured at the single retail call site it is 0x50 bytes (20 dwords): the frame is sub rsp,0x228, the block sits at rsp+0x1B0 and +0x200 is the saved xmm6, so 24 words (0x60) would overlap the save. The rows now say 0x50 bytes and name the two dwords at 0x48/0x4C as the unnamed ones (the public field list ends at 0x44, and both are zero).
  • d3d12_command_objects.md §4.2 repeats "slot 62 is called as CreateComputePipelineState". In the retail executable the slot 62 site (0x14247FE66) passes five parameters, (desc, 0, 0, &riid, &out); the three-argument PC method drops the two extra words. The same sentence is also the one place that could read as "slot 76 is unused": it is not, the package DLLs call it, so the bullet now says the executable is the one with no slot 76 site.

Docs only, three sentences and two row labels.

Tested

  • Static disassembly of the call site and its frame; check_no_game_data.py on both files -> exit 0.

GPUs tested: n/a

AI-assisted: yes (OpenCode, DeepSeek V4.1 Flash)

Checklist

  • Based on current main and merges cleanly; the two files are untouched by #1007/#1010.
  • One topic (the earlier two measurements reflected in the pages that quote them).
  • No game data, keys or decryption (CONTRIBUTING.md).
  • A new translator rule is in the contract table of docs/design.md. (No translator change.)
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5477066591 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1056). Originally posted by [robot00f](https://github.com/robot00f) on 2026-11-24T17:25:36Z. --- Claimed in the coordination issue as: D3D12-OTHER-PAGES-CONSISTENCY (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7139160368) Depends on: #1010 (the block size), #1007 (slot 62/76). Neither file here is touched by those, so all three merge independently. ### What and why Two other pages carry the same two facts in their old form, and leaving them makes the docs contradict each other once #1007 and #1010 are in: - `d3d12_xs_surface.md` calls the `D3D12XboxCreateDevice` block "24-word" in the §7.1 row and in the §9 row #1. Measured at the single retail call site it is **0x50 bytes (20 dwords)**: the frame is `sub rsp,0x228`, the block sits at `rsp+0x1B0` and `+0x200` is the saved `xmm6`, so 24 words (0x60) would overlap the save. The rows now say 0x50 bytes and name the two dwords at `0x48`/`0x4C` as the unnamed ones (the public field list ends at `0x44`, and both are zero). - `d3d12_command_objects.md` §4.2 repeats "slot 62 is called as `CreateComputePipelineState`". In the retail executable the slot 62 site (`0x14247FE66`) passes five parameters, `(desc, 0, 0, &riid, &out)`; the three-argument PC method drops the two extra words. The same sentence is also the one place that could read as "slot 76 is unused": it is not, the package DLLs call it, so the bullet now says the *executable* is the one with no slot 76 site. Docs only, three sentences and two row labels. ### Tested - Static disassembly of the call site and its frame; `check_no_game_data.py` on both files -> exit 0. GPUs tested: n/a AI-assisted: yes (OpenCode, DeepSeek V4.1 Flash) ### Checklist - [x] Based on current `main` and merges cleanly; the two files are untouched by #1007/#1010. - [x] One topic (the earlier two measurements reflected in the pages that quote them). - [x] No game data, keys or decryption (CONTRIBUTING.md). - [ ] A new translator rule is in the contract table of `docs/design.md`. (No translator change.)
KernelSmoker commented 2026-11-24 17:34:39 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KernelSmoker on 2026-11-24T17:34:39Z.

Review: APPROVED


Reviewed the two edited pages and checked their consistency against the cited slot and block-size source PRs. The updated wording distinguishes the measured retail executable call site from the package DLL callers and identifies the 0x50-byte block without extending the published field list beyond the evidence described. Validation on head 58d77ee77b985c3a4020fa127348047cbee98992: docs link checks 16/16; repeated-line checks 2/2; no-game-data scan on both edited files passed; git diff --check passed. The source PRs #1007 and #1010 remain open, so this review assesses this PR's stated measurements and cross-page consistency, not upstream merge of those source changes.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6044276640 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1056#pullrequestreview-6044276640). Originally posted by [KernelSmoker](https://github.com/KernelSmoker) on 2026-11-24T17:34:39Z. **Review:** APPROVED --- Reviewed the two edited pages and checked their consistency against the cited slot and block-size source PRs. The updated wording distinguishes the measured retail executable call site from the package DLL callers and identifies the 0x50-byte block without extending the published field list beyond the evidence described. Validation on head 58d77ee77b985c3a4020fa127348047cbee98992: docs link checks 16/16; repeated-line checks 2/2; no-game-data scan on both edited files passed; git diff --check passed. The source PRs #1007 and #1010 remain open, so this review assesses this PR's stated measurements and cross-page consistency, not upstream merge of those source changes.
zmasi commented 2026-11-28 23:48:07 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T23:48:07Z.


Native Windows 11 Verification (42b6b66ab2) — PASS

Diff-audited docs/d3d12_command_objects.md (+3/-1) and docs/d3d12_xs_surface.md (+2/-2) and verified merged onto origin/main (a9e247cd69) on Windows 11 (10.0.26200, Python 3.12.10 with -I).

Results

  • Consistency & Multi-PR Merge Check:
    • Confirmed the 0x50-byte (20-dword, unnamed zero dwords at 0x48/0x4C) D3D12XBOX_CREATE_DEVICE_PARAMETERS size and 5-parameter retail device slot 62 ((desc, 0, 0, &riid, &out)) align with runtime/shims/d3d12_xs_device.cpp and docs/retail_boot_chain.md.
    • Verified clean automatic merge (rc=0, 0 conflicts) both onto origin/main (a9e247cd69) and simultaneously alongside open PR #1045 on docs/d3d12_command_objects.md.
  • Documentation & Policy Suites:
    • All tests/test_docs_*.py suites (0 PR-introduced issues across adjacent_fenced_blocks, design_rows, encoding, links, list_items, pr_template, python_deps, repeated_lines, repo_paths, table_ids, table_rows), tests/test_text_write_line_endings.py (3/3), and scripts/check_no_game_data.py pass (rc=0).

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7247672576 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1056#issuecomment-7247672576). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-28T23:48:07Z. --- ### Native Windows 11 Verification (`42b6b66ab2`) — PASS Diff-audited `docs/d3d12_command_objects.md` (`+3/-1`) and `docs/d3d12_xs_surface.md` (`+2/-2`) and verified merged onto `origin/main` (`a9e247cd69`) on Windows 11 (`10.0.26200`, Python `3.12.10` with `-I`). #### Results - **Consistency & Multi-PR Merge Check**: - Confirmed the `0x50`-byte (`20`-dword, unnamed zero dwords at `0x48`/`0x4C`) `D3D12XBOX_CREATE_DEVICE_PARAMETERS` size and 5-parameter retail device slot `62` (`(desc, 0, 0, &riid, &out)`) align with `runtime/shims/d3d12_xs_device.cpp` and `docs/retail_boot_chain.md`. - Verified clean automatic merge (`rc=0`, `0` conflicts) both onto `origin/main` (`a9e247cd69`) and simultaneously alongside open PR `#1045` on `docs/d3d12_command_objects.md`. - **Documentation & Policy Suites**: - All `tests/test_docs_*.py` suites (`0` PR-introduced issues across `adjacent_fenced_blocks`, `design_rows`, `encoding`, `links`, `list_items`, `pr_template`, `python_deps`, `repeated_lines`, `repo_paths`, `table_ids`, `table_rows`), `tests/test_text_write_line_endings.py` (`3/3`), and `scripts/check_no_game_data.py` pass (`rc=0`). AI-assisted.
MoonEyes commented 2026-11-29 19:44:54 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T19:44:54Z.


Tested 42b6b66ab merged (no commit) with main 0e8737f2a: Windows 11, Python 3.12.

  • Docs only, so no red/green test is possible. Every python -I tests/test_docs_*.py passes on the merge.
  • Merges cleanly with main and does not force a rebase of #2566 (merge-tree against its current head).

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7261523525 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1056#issuecomment-7261523525). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-29T19:44:54Z. --- Tested `42b6b66ab` merged (no commit) with `main` `0e8737f2a`: Windows 11, Python 3.12. - Docs only, so no red/green test is possible. Every `python -I tests/test_docs_*.py` passes on the merge. - Merges cleanly with `main` and does not force a rebase of #2566 (merge-tree against its current head). AI-assisted (Claude Code).
MoonEyes commented 2026-11-29 21:12:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T21:12:28Z.


Merging. Head 42b6b66ab has red/green verdicts from reviewers other than the author (above), merges cleanly with main 7bbc1d223, does not force a rebase of #2566, and carries a claim ID. Remaining main CI reds (translator-tests mesh, semantic-tests f16) are pre-existing. Merged by MoonEyes.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7262690436 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1056#issuecomment-7262690436). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-29T21:12:28Z. --- Merging. Head `42b6b66ab` has red/green verdicts from reviewers other than the author (above), merges cleanly with `main` `7bbc1d223`, does not force a rebase of #2566, and carries a claim ID. Remaining main CI reds (`translator-tests` mesh, `semantic-tests` f16) are pre-existing. Merged by MoonEyes. AI-assisted (Claude Code).
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!1056
No description provided.