diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-25 19:04:24 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-25 19:04:24 -0500 |
| commit | 8d832fd10913064e1c8aec74191e3ba8f70211c8 (patch) | |
| tree | e365199d7d86ebf592a5a0dc2f07cda4b74b58a7 /docs/d3d12_command_objects.md | |
| parent | 5da3b6be3cefc1499452ba8c8370a50092674d61 (diff) | |
| parent | c50ed94b35b37b697ab9c5fd176f3738480b4db5 (diff) | |
Merge main into rt-title-every-budget (#2122)
#2098 split the every-pass loop of refresh_title_textures by mode: with
LEONIDA_TEXTURE_REFRESH_ASYNC every persistent mapping is polled each
pass and only stale unmapped textures are visited, without it all mapped
or stale ones are. The async branch is kept as main has it.
LEONIDA_TITLE_EVERY_BUDGET_US applies to the synchronous pass, the one
before a submission on the submitting thread; under async the pass runs
on the refresh worker and the limit does not apply (README says so).
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.md | 37 |
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 | ||
| 137 | So the four slots' callers are in the game executable, which the package does not contain (the | 137 | So the four slots' callers are in the game executable, which the package does not contain (the |
| 138 | same blocker as RT-5). Confidence for slots 8, 9, 12 and 36 stays **Open**: the table in §2.1 is | 138 | same blocker as RT-5). Confidence for slots 8, 9, 12 and 36 stays **Open**: the table in §2.1 is |
| 139 | still the SDK baseline. Once the executable is available, `tools/d3d12_iid_scan.py` run on it | 139 | still the SDK baseline. |
| 140 | shows 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 | ||
| 142 | the Windows SDK 10.0.26100 `d3d12.h`): the image carries 13 of them, and it carries the whole | ||
| 143 | queue/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 | |||
| 154 | The 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 | ||
| 161 | why both `d3d12_iid_scan.py` and `is_device_iid` in `runtime/shims/d3d12_xs_device.cpp` recognise | ||
| 162 | it during [retail_boot_chain.md](retail_boot_chain.md). | ||
| 163 | |||
| 164 | A carried IID is necessary but not sufficient: it says the binary can ask for the interface, not | ||
| 165 | where it does. The slots stay **Open** until a call site is followed. | ||
| 166 | |||
| 167 | One console command-list IID is outside `d3d12.h`, so the scan cannot see it, and a proxy has to | ||
| 168 | answer 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 | ||
| 170 | at `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 | ||