docs/boot: the CreateDevice params are 0x50 bytes, not 24 words (D3D12-CREATEDEVICE-PARAMS) #1010

Merged
robot00f merged 1 commit from upstream-pr/1010 into main 2026-11-29 14:41:30 +00:00
robot00f commented 2026-11-24 16:48:03 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by robot00f on 2026-11-24T16:48:03Z.


Claimed in the coordination issue as: D3D12-CREATEDEVICE-PARAMS (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7138209755)

Correction after re-measuring the frame: the struct is 0x50 bytes (20 dwords), not 0x40. The zeroing at the call site is three 32-byte stores covering +0x00-+0x4F, and the next byte, +0x200 in the frame, is the saved xmm6 (frame sub rsp,0x228, struct at rsp+0x1B0). A 24-word (0x60) struct would overlap that save, so "24 words" is still wrong, by four words.

What and why

The stop-1 row of the boot runbook says the D3D12XboxCreateDevice params are 24 words and that the shim prints those 24. A 24-word read runs four words past the struct.

The row now gives the size and the only populated fields, measured at the single retail call site 0x1424785B7 in 0x142478440: +0x00 = 0x00020004, +0x08 = 0x00100000, +0x20/+0x24 two bytes of launch state, +0x28 = 1, +0x3C = 0x20; +0x30-+0x4F stay zero, adapter null, IID {5405C344-D457-444E-B4DD-2366E45AEE39}.

The call site is verified as this import: the thunk 0x145F3FD80 is jmp qword [0x146793C18], the third d3d12_xs.dll IAT slot, whose name is D3D12XboxCreateDevice.

Tested

  • Static disassembly of the call site, the frame prologue and its stack stores (nothing executed).
  • python -I scripts/check_no_game_data.py docs/boot.md -> exit 0.

GPUs tested: n/a

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

Checklist

  • Based on current main and merges cleanly; #206, #273 and #379 touch boot.md but not this row.
  • One topic; follow-up work goes in a new pull request.
  • 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:5476482606 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1010). Originally posted by [robot00f](https://github.com/robot00f) on 2026-11-24T16:48:03Z. --- Claimed in the coordination issue as: D3D12-CREATEDEVICE-PARAMS (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7138209755) **Correction after re-measuring the frame:** the struct is **0x50 bytes (20 dwords)**, not 0x40. The zeroing at the call site is three 32-byte stores covering `+0x00`-`+0x4F`, and the next byte, `+0x200` in the frame, is the saved `xmm6` (frame `sub rsp,0x228`, struct at `rsp+0x1B0`). A 24-word (0x60) struct would overlap that save, so "24 words" is still wrong, by four words. ### What and why The stop-1 row of the boot runbook says the `D3D12XboxCreateDevice` params are 24 words and that the shim prints those 24. A 24-word read runs four words past the struct. The row now gives the size and the only populated fields, measured at the single retail call site `0x1424785B7` in `0x142478440`: `+0x00 = 0x00020004`, `+0x08 = 0x00100000`, `+0x20`/`+0x24` two bytes of launch state, `+0x28 = 1`, `+0x3C = 0x20`; `+0x30`-`+0x4F` stay zero, adapter null, IID `{5405C344-D457-444E-B4DD-2366E45AEE39}`. The call site is verified as this import: the thunk `0x145F3FD80` is `jmp qword [0x146793C18]`, the third `d3d12_xs.dll` IAT slot, whose name is `D3D12XboxCreateDevice`. ### Tested - Static disassembly of the call site, the frame prologue and its stack stores (nothing executed). - `python -I scripts/check_no_game_data.py docs/boot.md` -> exit 0. GPUs tested: n/a AI-assisted: yes (OpenCode, DeepSeek V4.1 Flash) ### Checklist - [x] Based on current `main` and merges cleanly; #206, #273 and #379 touch `boot.md` but not this row. - [x] One topic; follow-up work goes in a new pull request. - [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.)
zmasi commented 2026-11-28 23:48:11 +00:00 (Migrated from github.com)

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


Native Windows 11 Verification (b2dda52105)

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

Results

  • 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).
  • Cross-Check Note Against runtime/shims/d3d12_xs.cpp:175:
    • The measured 0x50-byte (20-dword) retail struct layout matches #1056, however docs/boot.md:147 also changes "the shim prints the 24 words as an [rt] line" to "the shim prints the twenty dwords as an [rt] line" while runtime/shims/d3d12_xs.cpp:166-175 on origin/main still prints [rt] d3d12_xs: D3D12XboxCreateDevice params[24] =... (24 dwords). Suggest either noting in docs/boot.md that the shim currently logs params[24] (of which the first 20 dwords are the 0x50-byte struct) or updating d3d12_xs.cpp in lockstep.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7247673348 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1010#issuecomment-7247673348). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-28T23:48:11Z. --- ### Native Windows 11 Verification (`b2dda52105`) Diff-audited `docs/boot.md` (`+1/-1`) and verified merged onto `origin/main` (`a9e247cd69`) on Windows 11 (`10.0.26200`, Python `3.12.10` with `-I`). #### Results - **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`). - **Cross-Check Note Against `runtime/shims/d3d12_xs.cpp:175`**: - The measured `0x50`-byte (`20`-dword) retail struct layout matches `#1056`, **however** `docs/boot.md:147` also changes *"the shim prints the 24 words as an `[rt]` line"* to *"the shim prints the twenty dwords as an `[rt]` line"* while `runtime/shims/d3d12_xs.cpp:166-175` on `origin/main` still prints `[rt] d3d12_xs: D3D12XboxCreateDevice params[24] =...` (`24` dwords). Suggest either noting in `docs/boot.md` that the shim currently logs `params[24]` (of which the first 20 dwords are the `0x50`-byte struct) or updating `d3d12_xs.cpp` in lockstep. AI-assisted.
MoonEyes commented 2026-11-29 14:41:33 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T14:41:33Z.


Merged at head b2dda52. Docs-only, reviewed on this head by zmasi (PASS); no test applies. AI-assisted: yes.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7257501313 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1010#issuecomment-7257501313). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-29T14:41:33Z. --- Merged at head b2dda52. Docs-only, reviewed on this head by zmasi (PASS); no test applies. AI-assisted: yes.
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!1010
No description provided.