Repository navigation
feat(d3d12): report console descriptor heap address on Xbox slot 14 - #9576
Thomas73737 wants to merge 1 commit into
Conversation
Handle the console-extended CreateDescriptorHeap layout observed in ItsNotRexed#313 by reading address/size only on the Xbox slot 14 proxy path after a readable-range check, and report that console VA as the heap CPU/GPU start via an explicit Leonida helper. Normal 16-byte PC CreateDescriptorHeap calls remain unchanged. Title-memory aliasing / section 3.3 backing is still unresolved.
|
Overlap to settle before review: #7021 clears the same assert (Stop 13: The two readings may well both be true at once: the title passes the address in the extended description words (sneylol's measurement, which this PR cites) and also gets it from its XMem hook. But the PRs handle slot 14 differently:
With both merged it's unclear which path owns slot 14, and whether #7021's handle translation still sees heaps created here. Measured: A suggestion: rebase onto #7021 and keep only what it lacks, e.g. reading AI-assisted (Claude Code). Code read and merge check only; nothing run. |
|
Tested What ran
Compile and link blockers
Runtime and safety bugs found in review
|
Claimed in the coordination issue as: D3D-313-slot14-console-descriptor-heap-abi (#9522 (comment))
Depends on:
What and why
Retail boot finding in #313 comment 7107265058 reports Xbox device slot 14
CreateDescriptorHeappassing a PCD3D12_DESCRIPTOR_HEAP_DESCfollowed byaddressat+0x10andsizeat+0x18, and the title assertsGetCPUDescriptorHandleForHeapStart() == addressfor a shader-visible CBV/SRV/UAV heap.This PR adds a narrow ABI shim for that observed case:
runtime/shims/d3d12_xs_device.cpp: slot 14 probes the extended words only when the PC desc looks valid and the 16-byte tail is readable (VirtualQuery); it only takes the console-extended path whenaddress != 0, then creates the heap through an explicit Leonida helper. Normal 16-byte PCCreateDescriptorHeapcalls remain unchanged.runtime/shims/d3d12_com.h,runtime/shims/d3d12_vulkan_device.cpp: addrt::d3d12::create_console_descriptor_heap(...);DescriptorHeapcan report the requested console VA as CPU/GPU start for explicit console-addressed heaps and logs once that §3.3/title-memory aliasing backing is not implemented.runtime/test/d3d12_console_descriptor_heap_test.cpp,runtime/CMakeLists.txt: synthetic test covering the helper and Xbox proxy slot 14 contract; no title-memory aliasing/§3.3 backing coverage.Not included / not claimed: full §3.3 single-address-space/title-memory aliasing, backing descriptor heap memory with imported title memory, or boot/story/playable completeness.
Tested
d3d12_console_descriptor_heaptest (SKIP_RETURN_CODE 77) covering explicit console-heap helper and XS proxy slot 14GetCPU/GPUDescriptorHandleForHeapStart() == address.git diff --checkclean.AI-assisted: yes
Checklist
docs/design.md, with how it was confirmed.