docs/boot: the CreateDevice params are 0x50 bytes, not 24 words (D3D12-CREATEDEVICE-PARAMS) #1010
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1010"
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?
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,+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.)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 ontoorigin/main(a9e247cd69) on Windows 11 (10.0.26200, Python3.12.10with-I).Results
tests/test_docs_*.pysuites (0PR-introduced issues acrossadjacent_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), andscripts/check_no_game_data.pypass (rc=0).runtime/shims/d3d12_xs.cpp:175:0x50-byte (20-dword) retail struct layout matches#1056, howeverdocs/boot.md:147also changes "the shim prints the 24 words as an[rt]line" to "the shim prints the twenty dwords as an[rt]line" whileruntime/shims/d3d12_xs.cpp:166-175onorigin/mainstill prints[rt] d3d12_xs: D3D12XboxCreateDevice params[24] =...(24dwords). Suggest either noting indocs/boot.mdthat the shim currently logsparams[24](of which the first 20 dwords are the0x50-byte struct) or updatingd3d12_xs.cppin lockstep.AI-assisted.
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.