upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/d3d12_command_objects.md
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-25 16:38:21 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-25 16:41:36 -0500
commit712714bef25bbe057117e09fa159ae26ac75f0f3 (patch)
tree40cd101f7bcc0f8e0f785eb57dcfea9060ee10fa /docs/d3d12_command_objects.md
parent0bf7ef80667e0d7e62e4b22c78c7a713600f5edc (diff)
parent24d8af66af151f024b0b520fb397d899924f5486 (diff)
Merge main into perf/big-compute-budget (#1889)
Brings #1889 up to date with main after #1742 (the pipeline compile unlock), resolving the five conflicts as described in the guide on the PR: https://github.com/ubiquitarianism/leonida/pull/1889#issuecomment-7175252290 - vulkan_replay.h: PipelineCompiles::build takes both the large-compile budget and main's `prior` compiles; build_pipelines passes the budget, and main's check_compiled_pipelines / finish_compiled_pipelines stay. - vulkan_backend.h: execute_now takes the large-compile demand and passes the budget to the pass-0 compile, and pass 1 passes the budget too. set_large_compiles locks pipeline_mutex_, since #1742 moved the pipeline state under that lock. - replay_pipeline_compiles_test.cpp: both test blocks kept, and the prior_compiles_reuse call passes an empty budget. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/d3d12_command_objects.md')
-rw-r--r--docs/d3d12_command_objects.md37
1 files changed, 35 insertions, 2 deletions
diff --git a/docs/d3d12_command_objects.md b/docs/d3d12_command_objects.md
index 36a02e874..eea693c70 100644
--- a/docs/d3d12_command_objects.md
+++ b/docs/d3d12_command_objects.md
@@ -136,8 +136,41 @@ following each `0x40`/`0x48`/`0x60`/`0x120` call back to its receiver.
136 136
137So the four slots' callers are in the game executable, which the package does not contain (the 137So the four slots' callers are in the game executable, which the package does not contain (the
138same blocker as RT-5). Confidence for slots 8, 9, 12 and 36 stays **Open**: the table in §2.1 is 138same blocker as RT-5). Confidence for slots 8, 9, 12 and 36 stays **Open**: the table in §2.1 is
139still the SDK baseline. Once the executable is available, `tools/d3d12_iid_scan.py` run on it 139still the SDK baseline.
140shows whether it carries these IIDs, and its call sites through them give the slots. 140
141**Measured on the retail executable** (`python -I tools/d3d12_iid_scan.py`, 80 SDK IIDs read from
142the Windows SDK 10.0.26100 `d3d12.h`): the image carries 13 of them, and it carries the whole
143queue/allocator/list/fence set except the two base/second-generation names:
144
145| IID | In the executable |
146|---|---|
147| `ID3D12CommandQueue` | present |
148| `ID3D12CommandAllocator` | present |
149| `ID3D12GraphicsCommandList` | present (one slot-73 site; startup lists use the console IID below) |
150| `ID3D12Fence` | present |
151| `ID3D12CommandList` (base) | absent |
152| `ID3D12Fence1` | absent |
153
154The other carried IIDs are `ID3D12CommandSignature`, `ID3D12DescriptorHeap`, `ID3D12Device11`,
155`ID3D12PipelineState`, `ID3D12QueryHeap`, `ID3D12Resource`, `ID3D12RootSignature`,
156`ID3D12StateObject` and `ID3D12StateObjectProperties`; the image imports only
157`D3D12ConfigureVirtualMemoryX`, `D3D12SerializeVersionedRootSignature` and
158`D3D12XboxCreateDevice` from `d3d12_xs.dll`. `ID3D12Device11`
159(`{5405C344-D457-444E-B4DD-2366E45AEE39}`, `d3d12.h:24502,35748`, `.rdata` `0x1461E0638`) is the
160`riid` the executable passes to `D3D12XboxCreateDevice` (`0x14247856C` → `0x1424785B7`), which is
161why both `d3d12_iid_scan.py` and `is_device_iid` in `runtime/shims/d3d12_xs_device.cpp` recognise
162it during [retail_boot_chain.md](retail_boot_chain.md).
163
164A carried IID is necessary but not sufficient: it says the binary can ask for the interface, not
165where it does. The slots stay **Open** until a call site is followed.
166
167One console command-list IID is outside `d3d12.h`, so the scan cannot see it, and a proxy has to
168answer it rather than forward it to the PC device: `{C3827890-4024-474C-98CF-645B51DC4874}`
169(`.rdata` `0x1461E0668`), passed to Xbox device slot 73 (`CreateCommandListX`) in renderer startup
170at `0x142478B56` → `0x142478B71` ([retail_boot_chain.md](retail_boot_chain.md) §3.3,
171[#523](https://github.com/ubiquitarianism/leonida/issues/523)); the carried
172`IID_ID3D12GraphicsCommandList` (`0x1461ECFA0`) is passed to slot 73 at a separate site
173(`0x1417F6D1D` → `0x1417F6D34`).
141 174
142### 2.2 Queue, allocator and fence 175### 2.2 Queue, allocator and fence
143 176