[PR #2070] docs(d3d12_command_objects): measure retail creator call sites for slots 8, 9, 12 and 36 (D3D12-COMMAND-OBJECT-CREATOR-SLOTS) #2076

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

📋 Pull Request Information

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

Base: main ← Head: docs/d3d12-creator-slots-retail


📝 Commits (2)

  • 6ea4ac3 docs: record the retail IID inventory the iid scan answers (D3D12-IID-INVENTORY-RETAIL)
  • 3fd332d docs(d3d12_command_objects): measure retail creator call sites for slots 8, 9, 12 and 36 (D3D12-COMMAND-OBJECT-CREATOR-SLOTS)

📊 Changes

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

View changed files

📝 docs/d3d12_command_objects.md (+48 -3)

📄 Description

Claim: D3D12-COMMAND-OBJECT-CREATOR-SLOTS (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7172190888)

Depends on: #1006 (stacked on 6ea4ac39 so the §2.1 IID table and creator-site table sit together cleanly; once #1006 lands, this diff is a single §2.1 hunk).

What and why

docs/d3d12_command_objects.md §2.1 leaves CreateCommandQueue (slot 8), CreateCommandAllocator (slot 9), CreateCommandList (slot 12) and CreateFence (slot 36) at Open ("until a call site is followed"). Following every RIP-relative lea to the carried .rdata IIDs and every load of the device globals (0x148759D00 and 0x1475DF000–0x1475DF048) across .text (0x140001000–0x145F40966) resolves all four:

  • ID3D12CommandQueue (0x1461E0648) — slots 8 (+0x40) and 48 (+0x180): 2 device sites at public slot 8 (0x141E6C2EF, 0x14247878A, 16-byte D3D12_COMMAND_QUEUE_DESC) and 4 sites at console slot 48 (0x142478813, 0x142478853, 0x142478893, 0x1424788D3 in renderer init, matching docs/retail_boot_chain.md §3.2).
  • ID3D12CommandAllocator (0x1461E0658) — slot 9 (+0x48): all 5 allocator creation sites (0x14161D0A0, 0x1417F6BCF, 0x141F75D3A, 0x142478B2D, 0x142478C3B) call public slot 9 with (device, type, &IID_ID3D12CommandAllocator, &out). (The two nearby +0x48 calls at 0x141C74559 and 0x141F75FCB are heap slot 9 on a descriptor heap created at slot 14.)
  • Command lists (0x1461ECFA0, 0x1461E0668) — slot 12 (+0x60) has 0 device sites; all 3 use console slot 73 (+0x248): PC slot 12 is never called on the device in .text. Every list creation calls console slot 73 (CreateCommandListX(device, &16-byte desc, allocator, 0, riid, &out)) — twice in renderer init with {C3827890-4024-474C-98CF-645B51DC4874} (0x142478B71, 0x142478C70) and once in helper 0x1417F6CF0 with IID_ID3D12GraphicsCommandList (0x1417F6D34) — and immediately closes the returned list at list slot 9 (+0x48).
  • ID3D12Fence (0x1461E0618) — slot 36 (+0x120): 1 device site (0x141D0B2FA) calling public slot 36 as (device, 0, 1, &IID_ID3D12Fence, &out).

Tested

  • Static Capstone disassembly over .text (0x140001000–0x145F40966, nothing executed).
  • python -I scripts/check_no_game_data.py docs/d3d12_command_objects.md -> exit 0.
  • python -I tests/test_d3d12_iid_scan.py, tests/test_docs_links.py, tests/test_docs_table_rows.py, tests/test_docs_repo_paths.py, tests/test_docs_cli_flags.py, tests/test_i18n_index.py -> OK.

GPUs tested: n/a

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

Checklist

  • Based on current main (stacked on #1006, declared) and merges cleanly.
  • 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/2070 **Author:** [@robot00f](https://github.com/robot00f) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs/d3d12-creator-slots-retail` --- ### 📝 Commits (2) - [`6ea4ac3`](https://github.com/ubiquitarianism/leonida/commit/6ea4ac39f5183f152f43b80f290a06bad7d7296d) docs: record the retail IID inventory the iid scan answers (D3D12-IID-INVENTORY-RETAIL) - [`3fd332d`](https://github.com/ubiquitarianism/leonida/commit/3fd332dc8f5dccc8fb4ab133b6277c7855653936) docs(d3d12_command_objects): measure retail creator call sites for slots 8, 9, 12 and 36 (D3D12-COMMAND-OBJECT-CREATOR-SLOTS) ### 📊 Changes **1 file changed** (+48 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/d3d12_command_objects.md` (+48 -3) </details> ### 📄 Description Claim: `D3D12-COMMAND-OBJECT-CREATOR-SLOTS` (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7172190888) Depends on: #1006 (stacked on `6ea4ac39` so the §2.1 IID table and creator-site table sit together cleanly; once #1006 lands, this diff is a single §2.1 hunk). ### What and why `docs/d3d12_command_objects.md` §2.1 leaves `CreateCommandQueue` (slot 8), `CreateCommandAllocator` (slot 9), `CreateCommandList` (slot 12) and `CreateFence` (slot 36) at **Open** ("until a call site is followed"). Following every RIP-relative `lea` to the carried `.rdata` IIDs and every load of the device globals (`0x148759D00` and `0x1475DF000`–`0x1475DF048`) across `.text` (`0x140001000`–`0x145F40966`) resolves all four: - **`ID3D12CommandQueue` (`0x1461E0648`) — slots 8 (`+0x40`) and 48 (`+0x180`):** 2 device sites at public slot 8 (`0x141E6C2EF`, `0x14247878A`, 16-byte `D3D12_COMMAND_QUEUE_DESC`) and 4 sites at console slot 48 (`0x142478813`, `0x142478853`, `0x142478893`, `0x1424788D3` in renderer init, matching `docs/retail_boot_chain.md` §3.2). - **`ID3D12CommandAllocator` (`0x1461E0658`) — slot 9 (`+0x48`):** all 5 allocator creation sites (`0x14161D0A0`, `0x1417F6BCF`, `0x141F75D3A`, `0x142478B2D`, `0x142478C3B`) call public slot 9 with `(device, type, &IID_ID3D12CommandAllocator, &out)`. (The two nearby `+0x48` calls at `0x141C74559` and `0x141F75FCB` are heap slot 9 on a descriptor heap created at slot 14.) - **Command lists (`0x1461ECFA0`, `0x1461E0668`) — slot 12 (`+0x60`) has 0 device sites; all 3 use console slot 73 (`+0x248`):** PC slot 12 is never called on the device in `.text`. Every list creation calls console slot 73 (`CreateCommandListX(device, &16-byte desc, allocator, 0, riid, &out)`) — twice in renderer init with `{C3827890-4024-474C-98CF-645B51DC4874}` (`0x142478B71`, `0x142478C70`) and once in helper `0x1417F6CF0` with `IID_ID3D12GraphicsCommandList` (`0x1417F6D34`) — and immediately closes the returned list at list slot 9 (`+0x48`). - **`ID3D12Fence` (`0x1461E0618`) — slot 36 (`+0x120`):** 1 device site (`0x141D0B2FA`) calling public slot 36 as `(device, 0, 1, &IID_ID3D12Fence, &out)`. ### Tested - Static Capstone disassembly over `.text` (`0x140001000`–`0x145F40966`, nothing executed). - `python -I scripts/check_no_game_data.py docs/d3d12_command_objects.md` -> exit 0. - `python -I tests/test_d3d12_iid_scan.py`, `tests/test_docs_links.py`, `tests/test_docs_table_rows.py`, `tests/test_docs_repo_paths.py`, `tests/test_docs_cli_flags.py`, `tests/test_i18n_index.py` -> OK. GPUs tested: n/a AI-assisted: yes (Antigravity, Gemini 4 Carbon) ### Checklist - [x] Based on current `main` (stacked on #1006, declared) and merges cleanly. - [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#2076
No description provided.