docs: the retail IID inventory the d3d12_iid_scan answers (D3D12-IID-INVENTORY-RETAIL) #1006

Manually merged
github merged 1 commit from gh-pr/1006/head into gh-pr/1006/base 2026-11-26 09:33:13 +00:00
Owner

@⁠robot00f on GitHub · 2026-11-24 16:44 UTC · original
robot00f:docs/d3d12-iid-inventory-retail → main · +35 −2 · 1 files · 1 commits · merged 2026-11-25 21:27 UTC

Claimed in the coordination issue as: D3D12-IID-INVENTORY-RETAIL (#14)

Fixes: #523

What and why

docs/d3d12_command_objects.md §2.1 ends on an open question: the queue/allocator/list/fence slots' callers are in the executable, the package has none, and the doc says tools/d3d12_iid_scan.py run on it "shows whether it carries these IIDs". This records that measurement for the retail executable so the question is not open any more.

The image carries 13 of the 80 SDK ID3D12 IIDs and carries ID3D12CommandQueue, ID3D12CommandAllocator, ID3D12GraphicsCommandList and ID3D12Fence; ID3D12CommandList and ID3D12Fence1 are absent. The other nine carried IIDs and the three d3d12_xs.dll imports are listed too:

  • ID3D12Device11 ({5405C344-D457-444E-B4DD-2366E45AEE39} in d3d12.h:24502,35748, .rdata 0x1461E0638) is the riid passed to D3D12XboxCreateDevice (0x14247856C -> 0x1424785B7), which is why both d3d12_iid_scan.py and is_device_iid in runtime/shims/d3d12_xs_device.cpp recognise it during docs/retail_boot_chain.md.
  • One console command-list IID is outside d3d12.h and therefore invisible to the scan: {C3827890-4024-474C-98CF-645B51DC4874} (.rdata 0x1461E0668), passed to Xbox device slot 73 (CreateCommandListX) in renderer startup at 0x142478B56 -> 0x142478B71 (docs/retail_boot_chain.md §3.3, #523), whereas the carried IID_ID3D12GraphicsCommandList (0x1461ECFA0) is passed to slot 73 at a separate site (0x1417F6D1D -> 0x1417F6D34).

The text keeps the confidence for slots 8/9/12/36 Open and says why a carried IID is necessary but not sufficient. Docs only: no source change, no game data committed.

Tested

  • python -I tools/d3d12_iid_scan.py <retail 1.0.2.1 executable> -> 13 found, 80 SDK IIDs read from the Windows SDK 10.0.26100 d3d12.h.
  • Capstone xref verification of 0x1461E0638 (ID3D12Device11 at 0x14247856C), 0x1461E0668 ({C3827890-...} at 0x142478B56), and 0x1461ECFA0 (IID_ID3D12GraphicsCommandList at 0x1417F6D1D).
  • python -I tests/test_d3d12_iid_scan.py -> 15 tests, OK.
  • python -I tests/test_docs_links.py, tests/test_docs_table_rows.py, tests/test_docs_repo_paths.py, tests/test_docs_cli_flags.py -> OK.
  • python -I scripts/check_no_game_data.py docs/d3d12_command_objects.md -> exit 0.

GPUs tested: n/a

AI-assisted: yes (Antigravity, Gemini 4 Carbon)

Checklist

  • Based on current main and merges cleanly.
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (No translator change.)
**@⁠robot00f** on GitHub · 2026-11-24 16:44 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1006) `robot00f:docs/d3d12-iid-inventory-retail` → `main` · +35 −2 · 1 files · 1 commits · merged 2026-11-25 21:27 UTC Claimed in the coordination issue as: D3D12-IID-INVENTORY-RETAIL (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) Fixes: #523 ### What and why `docs/d3d12_command_objects.md` §2.1 ends on an open question: the queue/allocator/list/fence slots' callers are in the executable, the package has none, and the doc says `tools/d3d12_iid_scan.py` run on it "shows whether it carries these IIDs". This records that measurement for the retail executable so the question is not open any more. The image carries 13 of the 80 SDK `ID3D12` IIDs and carries `ID3D12CommandQueue`, `ID3D12CommandAllocator`, `ID3D12GraphicsCommandList` and `ID3D12Fence`; `ID3D12CommandList` and `ID3D12Fence1` are absent. The other nine carried IIDs and the three `d3d12_xs.dll` imports are listed too: - `ID3D12Device11` (`{5405C344-D457-444E-B4DD-2366E45AEE39}` in `d3d12.h:24502,35748`, `.rdata` `0x1461E0638`) is the `riid` passed to `D3D12XboxCreateDevice` (`0x14247856C` -> `0x1424785B7`), which is why both `d3d12_iid_scan.py` and `is_device_iid` in `runtime/shims/d3d12_xs_device.cpp` recognise it during `docs/retail_boot_chain.md`. - One console command-list IID is outside `d3d12.h` and therefore invisible to the scan: `{C3827890-4024-474C-98CF-645B51DC4874}` (`.rdata` `0x1461E0668`), passed to Xbox device slot 73 (`CreateCommandListX`) in renderer startup at `0x142478B56` -> `0x142478B71` (`docs/retail_boot_chain.md` §3.3, #523), whereas the carried `IID_ID3D12GraphicsCommandList` (`0x1461ECFA0`) is passed to slot 73 at a separate site (`0x1417F6D1D` -> `0x1417F6D34`). The text keeps the confidence for slots 8/9/12/36 **Open** and says why a carried IID is necessary but not sufficient. Docs only: no source change, no game data committed. ### Tested - `python -I tools/d3d12_iid_scan.py <retail 1.0.2.1 executable>` -> `13 found`, 80 SDK IIDs read from the Windows SDK 10.0.26100 `d3d12.h`. - Capstone xref verification of `0x1461E0638` (`ID3D12Device11` at `0x14247856C`), `0x1461E0668` (`{C3827890-...}` at `0x142478B56`), and `0x1461ECFA0` (`IID_ID3D12GraphicsCommandList` at `0x1417F6D1D`). - `python -I tests/test_d3d12_iid_scan.py` -> 15 tests, OK. - `python -I tests/test_docs_links.py`, `tests/test_docs_table_rows.py`, `tests/test_docs_repo_paths.py`, `tests/test_docs_cli_flags.py` -> OK. - `python -I scripts/check_no_game_data.py docs/d3d12_command_objects.md` -> exit 0. GPUs tested: n/a AI-assisted: yes (Antigravity, Gemini 4 Carbon) ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (No translator change.)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:33:12 +00:00
github manually merged commit 6ea4ac39f5 into gh-pr/1006/base 2026-11-26 09:33:13 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-25 14:26 UTC · original

Reviewed 8bb9c0d (docs-only, §2.1): ran the docs-consistency suite and tests/test_d3d12_iid_scan.py in the sandbox on the PR tree and on main — all pass, and keeping slots 8/9/12/36 Open with "necessary but not sufficient" is the right call. One blocking inconsistency: the new text says the title passes {5405C344-D457-444E-B4DD-2366E45AEE39} to D3D12XboxCreateDevice, but docs/retail_boot_chain.md records that same call succeeding in the retail run through a shim whose is_device_iid accepts only PC ID3D12Device* GUIDs and returns E_NOINTERFACE for anything else (d3d12_xs_device.cpp:365) — both cannot hold for the creation-time riid. Could you add where the GUID was seen (a trace or log quote, as §3.3 does for the list IID) or reword where it is actually passed? Also, the "ID3D12GraphicsCommandList present" row could mislead: the title's list-creation IID is the console c3827890-4024-... the scan cannot see, which your own closing paragraph already covers — a phrase would tie them together. I could not re-run the scan (no game files here) or read the PR description or #523 (no GitHub access). AI-assisted review.

Recommendation: Fix first

**@⁠PierreEbele** on GitHub · 2026-11-25 14:26 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1006#issuecomment-7165278021) Reviewed 8bb9c0d (docs-only, §2.1): ran the docs-consistency suite and `tests/test_d3d12_iid_scan.py` in the sandbox on the PR tree and on main — all pass, and keeping slots 8/9/12/36 Open with "necessary but not sufficient" is the right call. One blocking inconsistency: the new text says the title passes `{5405C344-D457-444E-B4DD-2366E45AEE39}` to `D3D12XboxCreateDevice`, but `docs/retail_boot_chain.md` records that same call succeeding in the retail run through a shim whose `is_device_iid` accepts only PC `ID3D12Device*` GUIDs and returns `E_NOINTERFACE` for anything else (`d3d12_xs_device.cpp:365`) — both cannot hold for the creation-time riid. Could you add where the GUID was seen (a trace or log quote, as §3.3 does for the list IID) or reword where it is actually passed? Also, the "ID3D12GraphicsCommandList present" row could mislead: the title's list-creation IID is the console `c3827890-4024-...` the scan cannot see, which your own closing paragraph already covers — a phrase would tie them together. I could not re-run the scan (no game files here) or read the PR description or #523 (no GitHub access). AI-assisted review. **Recommendation:** Fix first
Author
Owner

@⁠robot00f on GitHub · 2026-11-25 19:07 UTC · original

Rebased onto main (9f9a7c5f) and fixed both points from @⁠PierreEbele (in docs/d3d12_command_objects.md §2.1 and the PR description):

  1. {5405C344-D457-444E-B4DD-2366E45AEE39} at D3D12XboxCreateDevice: Good catch — {5405C344-D457-444E-B4DD-2366E45AEE39} (.rdata 0x1461E0638, loaded into r8 at 0x14247856C for call D3D12XboxCreateDevice at 0x1424785B7) is not outside d3d12.h: it is IID_ID3D12Device11 (d3d12.h:24502,35748), which is why d3d12_iid_scan.py already counts it as ID3D12Device11 in the 13 carried SDK IIDs and is_device_iid in runtime/shims/d3d12_xs_device.cpp accepts it during docs/retail_boot_chain.md. Only the startup command-list IID {C3827890-4024-474C-98CF-645B51DC4874} is outside d3d12.h.
  2. ID3D12GraphicsCommandList vs {C3827890-4024-474C-98CF-645B51DC4874}: Tied the ID3D12GraphicsCommandList table row to the closing paragraph: the startup renderer-init path (0x142478B56 -> 0x142478B71, docs/retail_boot_chain.md §3.3, #523) passes {C3827890-...} (.rdata 0x1461E0668) to Xbox device slot 73 (CreateCommandListX), while the carried IID_ID3D12GraphicsCommandList (0x1461ECFA0) is passed to slot 73 at a separate site (0x1417F6D1D -> 0x1417F6D34).

Re-ran check_no_game_data.py, test_d3d12_iid_scan.py, and the docs test suite (all pass).

AI-assisted: yes (Antigravity, Gemini 4 Carbon)

**@⁠robot00f** on GitHub · 2026-11-25 19:07 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1006#issuecomment-7171854049) Rebased onto `main` (`9f9a7c5f`) and fixed both points from @⁠PierreEbele (in `docs/d3d12_command_objects.md` §2.1 and the PR description): 1. **`{5405C344-D457-444E-B4DD-2366E45AEE39}` at `D3D12XboxCreateDevice`:** Good catch — `{5405C344-D457-444E-B4DD-2366E45AEE39}` (`.rdata` `0x1461E0638`, loaded into `r8` at `0x14247856C` for `call D3D12XboxCreateDevice` at `0x1424785B7`) is **not** outside `d3d12.h`: it is `IID_ID3D12Device11` (`d3d12.h:24502,35748`), which is why `d3d12_iid_scan.py` already counts it as `ID3D12Device11` in the 13 carried SDK IIDs and `is_device_iid` in `runtime/shims/d3d12_xs_device.cpp` accepts it during `docs/retail_boot_chain.md`. Only the startup command-list IID `{C3827890-4024-474C-98CF-645B51DC4874}` is outside `d3d12.h`. 2. **`ID3D12GraphicsCommandList` vs `{C3827890-4024-474C-98CF-645B51DC4874}`:** Tied the `ID3D12GraphicsCommandList` table row to the closing paragraph: the startup renderer-init path (`0x142478B56` -> `0x142478B71`, `docs/retail_boot_chain.md` §3.3, #523) passes `{C3827890-...}` (`.rdata` `0x1461E0668`) to Xbox device slot 73 (`CreateCommandListX`), while the carried `IID_ID3D12GraphicsCommandList` (`0x1461ECFA0`) is passed to slot 73 at a separate site (`0x1417F6D1D` -> `0x1417F6D34`). Re-ran `check_no_game_data.py`, `test_d3d12_iid_scan.py`, and the docs test suite (all pass). AI-assisted: yes (Antigravity, Gemini 4 Carbon)
This discussion has been locked. Commenting is limited to contributors.
No description provided.