upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/pe_loader.cpp
diff options
context:
space:
mode:
authorAimLogin <4jt8mn8wjn@privaterelay.appleid.com>2026-11-22 15:11:53 +0100
committerAimLogin <4jt8mn8wjn@privaterelay.appleid.com>2026-11-22 15:11:53 +0100
commit2123a02506f16cab63c676dbb029edd0bbe859a2 (patch)
tree66e5632dcbd98f513f561938ac09331574d7d2ea /runtime/src/pe_loader.cpp
parent89b047cd8fab50675a43d76722a6a8a881f55dc2 (diff)
Runtime: Xbox-ABI proxy for the command allocator (device slot 9)
Device slot 9 (CreateCommandAllocator) now returns an allocator proxy, the fourth command object after the queue and fence (BUILD-231) and the list (D3D-136): the public chain (9 slots, Reset at 8) is forwarded, a slot past it up to the end of a 64-slot table is logged and refused with E_NOTIMPL, and a read past the table faults in its own guard region. The console allocator's extra methods are not measured and not guessed. A list takes the title's allocator in CreateCommandList and Reset, so a proxy is only safe where the list side resolves it. Slot 9 therefore wraps an allocator only when it answers kLeonidaCommandAllocatorTag (the Vulkan layer's CommandAllocator, whose from() resolves the proxy for both calls); a PC runtime allocator is handed out unchanged, logged once, until a command-list proxy unwraps it at Reset. Allocator proxies are unwrapped in the residency calls like heap, queue and fence proxies. Device slot 12 is not touched. Tests: allocator_proxy_test (WARP, a hardware adapter, the Vulkan device: forwarding, refused tail, guard region, identity, D3D12's allocator rules, a list created and Reset on the proxy with GPU copies through the queue and fence proxies read back), mock cases for allocators with and without the tag and their failure paths, and device_proxy_test's slot-9 expectations. No game files. AI-assisted (Claude Code). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions