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:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 09:15:24 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 09:15:24 -0500
commitf61946cfe1146dff3385074ffa405c89f6ca39c5 (patch)
tree4cd53b2fa60c646a61444d58279e27d49c25da60 /docs/d3d12_command_objects.md
parent8ba7c8d552421f714deb3579b9f4cbf8724bfd23 (diff)
parent2123a02506f16cab63c676dbb029edd0bbe859a2 (diff)
Merge pull request #1795 from AimLogin
Diffstat (limited to 'docs/d3d12_command_objects.md')
-rw-r--r--docs/d3d12_command_objects.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/d3d12_command_objects.md b/docs/d3d12_command_objects.md
index 497431d8f..93f0b39a0 100644
--- a/docs/d3d12_command_objects.md
+++ b/docs/d3d12_command_objects.md
@@ -564,6 +564,26 @@ Queues and fences are wrapped the same way.
564 and a heap proxy given to a list's `SetDescriptorHeaps` reaches the real list unchanged. The command-list 564 and a heap proxy given to a list's `SetDescriptorHeaps` reaches the real list unchanged. The command-list
565 proxy of §3.5a adds the unwrap at both places. 565 proxy of §3.5a adds the unwrap at both places.
566 566
567Command allocators get the same kind of proxy: device slot 9 (`CreateCommandAllocator`) returns one.
568
569- **What is forwarded.** The public chain, 9 slots: the base chain and `Reset` at 8. A slot past it, up to the
570 end of a 64-slot table, is logged and refused, and a read past the table faults in its own guard region.
571 The console allocator's extra methods are not measured.
572- **Where a list takes it.** A list takes an allocator from the title in `CreateCommandList` and `Reset`, so
573 the proxy is safe only where the list side resolves it. Slot 9 therefore wraps an allocator only when it
574 answers `kLeonidaCommandAllocatorTag` (`d3d12_xs_device.h`). That is the Vulkan layer's own allocator, whose
575 `CommandAllocator::from()` resolves the proxy for both list calls.
576- **On the host runtime.** A PC runtime allocator comes back unwrapped, logged once, because the PC runtime's
577 lists would take a proxy for their own allocator. A command-list proxy that unwraps at `Reset` (§3.5a) is
578 what lets the host backend wrap allocators too.
579- **Residency.** An allocator is a pageable, so `MakeResident`/`Evict`/`SetResidencyPriority`/
580 `EnqueueMakeResident` unwrap allocator proxies like heap, queue and fence proxies.
581
582`allocator_proxy_test` checks this on the Vulkan device and on the host runtime, and the mock test checks it
583over allocators with and without the tag. On the Vulkan device it checks forwarding, the refused tail, the guard
584region, identity, and D3D12's allocator rules through the proxy, and runs a list created and `Reset` on the
585proxy whose copies go through the queue and fence proxies and are read back.
586
567Which of this is measured: the slot numbers and signatures are the SDK's (public). That the console 587Which of this is measured: the slot numbers and signatures are the SDK's (public). That the console
568keeps the public queue and fence slots, and device slots 8/32/36/75, is an assumption the package cannot 588keeps the public queue and fence slots, and device slots 8/32/36/75, is an assumption the package cannot
569test, as above. The proxies make a wrong assumption visible in the log; they do not prove it right. 589test, as above. The proxies make a wrong assumption visible in the log; they do not prove it right.