upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/vk_queue_query_sync_test.cpp
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-23 12:53:46 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-24 07:16:25 -0500
commitd13044b778034b7ac7066211865f2c06ba8e6048 (patch)
treef1e7fb86cb00d5527400c2d09a498df3531384b9 /runtime/test/vk_queue_query_sync_test.cpp
parent21625bca8c675c62f9dbffc318ce6a59d57faf31 (diff)
d3d12_device_calls: count the ID3D12Device slots the executable calls, from the file alone (RT-566)
tools/d3d12_device_calls.py follows D3D12XboxCreateDevice's (or D3D12CreateDevice's) out-pointer to the globals and stack slots that hold the device, and counts per vtable slot the `mov v,[device]` then `call [v+disp]` / `call reg` / dispatch-with-rax sites, with the register that holds the device (rcx, or rdx for the console's return-buffer form) and an argument-count estimate. What it can't follow (vtable loads with no matched call, the device handed to other functions or stored to non-stack memory, creator out-pointers it can't follow) is counted, not guessed. Slots 0-43 carry the PC method names; past 43 only the slots the repository has measured are named. The text report holds slot numbers and counts only; --out is required. Tested on a hand-built PE (tests/test_d3d12_device_calls.py); docs/retail_boot_chain.md §5 has the method and its limits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/vk_queue_query_sync_test.cpp')
0 files changed, 0 insertions, 0 deletions