mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:50:51 +01:00
[PR #1010] docs/boot: the CreateDevice params are 0x50 bytes, not 24 words (D3D12-CREATEDEVICE-PARAMS) #1046
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1046
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
b2dda52docs/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,+0x200in the frame, is the savedxmm6(framesub rsp,0x228, struct atrsp+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
D3D12XboxCreateDeviceparams 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
0x1424785B7in0x142478440:+0x00 = 0x00020004,+0x08 = 0x00100000,+0x20/+0x24two bytes of launch state,+0x28 = 1,+0x3C = 0x20;+0x30-+0x4Fstay zero, adapter null, IID{5405C344-D457-444E-B4DD-2366E45AEE39}.The call site is verified as this import: the thunk
0x145F3FD80isjmp qword [0x146793C18], the thirdd3d12_xs.dllIAT slot, whose name isD3D12XboxCreateDevice.Tested
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
mainand merges cleanly; #206, #273 and #379 touchboot.mdbut not this row.docs/design.md. (No translator change.)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.