diff options
Diffstat (limited to 'docs/d3d12_command_objects.md')
| -rw-r--r-- | docs/d3d12_command_objects.md | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/docs/d3d12_command_objects.md b/docs/d3d12_command_objects.md index 27e8986f4..a064eb5bd 100644 --- a/docs/d3d12_command_objects.md +++ b/docs/d3d12_command_objects.md | |||
| @@ -423,17 +423,14 @@ command object. | |||
| 423 | | Builder's internal field layout (`+0x18`, `+0x30`, `+0x140`, `+0x344`, `+0x350`, `+0x544`) | No header or symbol; the helper's writes prove the contract is wider than the public vtable, but not what the fields mean. | | 423 | | Builder's internal field layout (`+0x18`, `+0x30`, `+0x140`, `+0x344`, `+0x350`, `+0x544`) | No header or symbol; the helper's writes prove the contract is wider than the public vtable, but not what the fields mean. | |
| 424 | | DMA list use/value | The IID is prior art; type 6 is derived; no shipped module uses it. | | 424 | | DMA list use/value | The IID is prior art; type 6 is derived; no shipped module uses it. | |
| 425 | 425 | ||
| 426 | ### 5.4 A concrete current gap: GCL8 | 426 | ### 5.4 GCL8 (resolved in PR #164) |
| 427 | 427 | ||
| 428 | The shipped builder's rehydrate exports name `ID3D12GraphicsCommandList8`, and | 428 | The shipped builder's rehydrate exports name `ID3D12GraphicsCommandList8`, and |
| 429 | `OMSetFrontAndBackStencilRef` is public GCL8 at slot 81. The repository's command-list class is | 429 | `OMSetFrontAndBackStencilRef` is public GCL8 at slot 81. **PR #164 adds the public GCL8 interface** |
| 430 | `ID3D12GraphicsCommandList7` (`runtime/shims/d3d12_com.cpp:57-61`), so it cannot answer | 430 | to `runtime/shims/d3d12_com.cpp`: it records the front/back values, resets them in `Reset`, answers |
| 431 | `IID_ID3D12GraphicsCommandList8` and has no slot 81. `d3d12_vulkan.md` §4's table says the | 431 | `IID_ID3D12GraphicsCommandList8`, and registers the `d3d12_gcl8` CTest (9/9). The values are recorded |
| 432 | command list "supports … front/back stencil ref", but no such implementation exists in | 432 | but not applied because this layer still has no pipeline/draw path. It does **not** close the |
| 433 | `runtime/` (a source grep finds no `OMSetFrontAndBackStencilRef` or front/back stencil command). | 433 | builder's `+0x490` gap, but a GCL8 pointer is now served instead of refused. |
| 434 | Adding the public GCL8 interface is a small, justified runtime change: one method, one standard | ||
| 435 | IID, no Xbox extension. It would not close the builder's `+0x490` gap, but it would let a GCL8 | ||
| 436 | pointer be served instead of refused. | ||
| 437 | 434 | ||
| 438 | ## 6. Return conventions | 435 | ## 6. Return conventions |
| 439 | 436 | ||
| @@ -463,8 +460,8 @@ than invent slots. | |||
| 463 | builder validates its inputs before reaching the dispatch, use a descriptor shaped like the | 460 | builder validates its inputs before reaching the dispatch, use a descriptor shaped like the |
| 464 | one its own `GetRaytracingAccelerationStructurePrebuildInfo` accepts (prior art measured a | 461 | one its own `GetRaytracingAccelerationStructurePrebuildInfo` accepts (prior art measured a |
| 465 | 3,000-vertex triangle geometry; the prebuild answer is 204,800 bytes / 128,704 scratch). | 462 | 3,000-vertex triangle geometry; the prebuild answer is 204,800 bytes / 128,704 scratch). |
| 466 | 2. **Add GCL8 to the runtime** (public, one method, slot 81) so the rehydrate entry points can | 463 | 2. **GCL8 is now implemented** in PR #164 (public slot 81, recorded/reset, CTest 9/9); the |
| 467 | be handed a real object. This is a code change for a separate PR, not this document. | 464 | remaining builder gap is the `+0x490` method. |
| 468 | 3. **When the executable appears, trace the four creation calls first.** Per-slot counters on | 465 | 3. **When the executable appears, trace the four creation calls first.** Per-slot counters on |
| 469 | device slots 8/9/12/36, then queue slots 10/14/15, fence slots 8/9/10, and every slot beyond | 466 | device slots 8/9/12/36, then queue slots 10/14/15, fence slots 8/9/10, and every slot beyond |
| 470 | the public chain. The first `PresentX` call and the queue vtable tail are the only way to | 467 | the public chain. The first `PresentX` call and the queue vtable tail are the only way to |