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

Open
opened 2026-11-26 20:19:54 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1010
Author: @robot00f
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: docs/d3d12-createdevice-params


📝 Commits (1)

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

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 docs/boot.md (+1 -1)

📄 Description

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

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1010 **Author:** [@robot00f](https://github.com/robot00f) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs/d3d12-createdevice-params` --- ### 📝 Commits (1) - [`b2dda52`](https://github.com/ubiquitarianism/leonida/commit/b2dda52105367c2d1b761db74df163eac1207a2f) docs/boot: the CreateDevice params are 0x50 bytes, not 24 words (D3D12-CREATEDEVICE-PARAMS) ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/boot.md` (+1 -1) </details> ### 📄 Description 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.) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#1046
No description provided.