docs(d3d12_xs_surface): slot 108 is an allocation-info query, not a GUID query (D3D12-SLOT108-QUERY) #1117
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1117"
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-24T18:47:58Z.
Claimed in the coordination issue as: D3D12-SLOT108-QUERY (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7140237065)
Depends on: #1038 (this patch lives inside the §5.2 table and slot-108 bullet that PR adds; it is stacked on that commit and will show it until #1038 lands).
What and why
§5.2 records slot 108's two device sites (
0x140ABFDA9,0x140ABFE07) and cross-referencesdocs/d3d12_vulkan.md§3.1'sGetResourceAllocationInfo2route. This patch adds the full callee measurement of0x140ABFAE0-0x140ABFE6C(reached through the thunk at0x140ABFAD0):[rsp+0x20]) is a 56-byteD3D12_RESOURCE_DESC; the callee readsDimension(+0),Alignment(+8),Width(+0x10),Height(+0x18),DepthOrArraySize(+0x1C),Format(+0x20),Layout(+0x2C) andFlags(+0x30), and writes back the 4-texel-aligned extent for block-compressed formats (0x140ABFB2B-0x140ABFB40).Layout0 gets the console word0x105written intoLayout(0x140ABFD4B).0x80008bits it setsAlignment = 0x1000, calls slot 108, and if the returned alignment is not0x1000clearsAlignmentto 0 and calls again (0x140ABFDBF-0x140ABFE07) — the 4 KiBD3D12_SMALL_RESOURCE_PLACEMENT_ALIGNMENTretry (docs/d3d12_vulkan.md§4.2).{SizeInBytes, Alignment}(rcxis the hidden return buffer,thisis inrdx), the 6th argument ([rsp+0x28]) is a 24-byteD3D12_RESOURCE_ALLOCATION_INFO1scratch buffer, and the codeint3s unless the high dword ofSizeInBytesis 0 (0x140ABFE15).That matches
ID3D12Device4::GetResourceAllocationInfo1's 56-byte desc shape (docs/d3d12_vulkan.md§3.1 expands the 56-byte desc, normalises0x105and Xbox flags, and routes to PC slot 68ID3D12Device8::GetResourceAllocationInfo2). Measured: shape, offsets,0x1000/0x105, retry, assert. Open: exact console wire method name (GetResourceAllocationInfo1vsGetResourceAllocationInfoX/2).Tested
python -I scripts/check_no_game_data.py docs/d3d12_xs_surface.md-> exit 0;tests/test_d3d12_xs_surface.py,tests/test_docs_table_rows.py,tests/test_docs_links.py-> OK.GPUs tested: n/a
AI-assisted: yes (Antigravity, Gemini 4 Carbon)
Checklist
mainand merges cleanly; stacked on #1038, declared.docs/design.md. (No translator change.)Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T18:56:32Z.
Review: APPROVED
Reviewed and verified. Precise documentation in
docs/d3d12_xs_surface.md §5.2identifying Xbox device slot 108 asGetResourceAllocationInfo1allocation query rather than a GUID query, detailing the 56-byte D3D12_RESOURCE_DESC layout, extent alignment, and 4 KiB retry semantics. Verified clean-room compliant.Imported from ubiquitarianism/leonida. Originally posted by robot00f on 2026-11-24T19:07:50Z.
Thanks for the review. One ordering note: this branch is stacked on #1038, because the slot-108 text lives inside the §5.2 table that PR adds, so until #1038 lands this diff also shows its 110 lines. Once #1038 is in, this one is a single-file, single-hunk change; if preferred I can rebase it onto main the moment that happens.
Imported from ubiquitarianism/leonida. Originally posted by Deedlyy on 2026-11-24T20:16:13Z.
Recommendation: [WAIT]
Reasoning: Docs: re-identifies device slot 108 as an allocation-info query rather than a GUID query, with measured call-site evidence. The branch is stacked on #1038 (the section 5.2 table), so the diff currently includes #1038's lines. Merge after #1038 lands and this is rebased so only the slot-108 change remains. CI (label, change-scope, no-game-data and the Runtime jobs) is still queued awaiting maintainer workflow approval, so nothing has run in CI yet; GitHub reports no merge conflict with
main.Impact level: 2/10
Imported from ubiquitarianism/leonida. Originally posted by robot00f on 2026-11-25T19:07:28Z.
Restacked onto updated #1038 (
b6d6b702, rebased onmain9f9a7c5f), cross-referencingdocs/d3d12_vulkan.md§3.1'sGetResourceAllocationInfo2route alongside the0x140ABFAE0-0x140ABFE6Ccallee measurement and updating the small-resource alignment reference todocs/d3d12_vulkan.md§4.2. Re-rancheck_no_game_data.pyand the docs test suite (all pass).AI-assisted: yes (Antigravity, Gemini 4 Carbon)