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

Open
github-bot wants to merge 1 commit from github-bot/gh-1010 into main AGit
Owner

@⁠robot00f on GitHub · 2026-11-24 16:48 UTC · original
robot00f:docs/d3d12-createdevice-params → main · +1 −1 · 1 files · 1 commits · open

Claimed in the coordination issue as: D3D12-CREATEDEVICE-PARAMS (#14)

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.)
**@⁠robot00f** on GitHub · 2026-11-24 16:48 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1010) `robot00f:docs/d3d12-createdevice-params` → `main` · +1 −1 · 1 files · 1 commits · open Claimed in the coordination issue as: D3D12-CREATEDEVICE-PARAMS (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) **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.)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:33:24 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1010/head:github-bot/gh-1010'
git switch 'github-bot/gh-1010'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1010'
git switch 'github-bot/gh-1010'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1010'
git switch 'github-bot/gh-1010'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1010'
git switch 'main'
git merge --squash 'github-bot/gh-1010'
git switch 'main'
git merge --ff-only 'github-bot/gh-1010'
git switch 'main'
git merge 'github-bot/gh-1010'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.