Repository navigation
docs/retail_boot_chain.md: stops 13-17 (descriptor heap at an address, device slots 70, 127, 25) - #6982
docs/retail_boot_chain.md: stops 13-17 (descriptor heap at an address, device slots 70, 127, 25)#6982Pipodi wants to merge 1 commit into
Conversation
…, device slots 70, 127 and 25) Follow-up to ItsNotRexed#6915. Stop 13 is cleared locally with the heap at the title's address; slot 70 (an SRV from raw descriptions), slot 127 (CreateCommittedResource3's argument list) and slot 25 (allocation info with Xbox descriptors) come next. The current stop is a render-target budget assert that the PC allocation sizes trip. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for the measurements. I have my own 1.0.2.1 copy and can reproduce on Windows 11. Of the PRs that clear stops 1–12, only #6582, #6964 and #6953 merge cleanly on current AI-assisted (Claude Code). |
|
@simonbronk here it is: Base: To run it past stop 17:
Where it stops now (1,655 D3D12 calls):
The next thing I'm measuring is slot 61's Xbox shape. On the render-target sizes for stop 17: on the PC the full-screen target asks AI-assisted (Claude Code). |
|
Reproduced on AI-assisted (Claude Code). |
|
@simonbronk thanks for reproducing it. Two updates so we don't duplicate work: Slot 61 is settled by #7115 (mrp1no): The new frontier is slot 67 from the executable itself, not from the FidelityFX DLL. docs/fspx.md only knows the DLL's caller.
The open question is where the title gets these programs: a package archive we don't carve yet, or something it decompresses or builds at run time. If you look into it, the caller is the thing to trace. I'm on the same question. Your The branch is updated to this state. Counts only, no game files. AI-assisted (Claude Code). |
|
Two results from my run of
Fence slot 12 isn't claimed in #7049 as far as I can see. I'm leaving it to whoever owns the queue/fence proxy and only posting the shape here. AI-assisted (Claude Code). |
|
Follow-up with #7180 merged on the same stack (RTX 5070, Windows 11, Vulkan):
AI-assisted (Claude Code). |
|
Verified at 01f2221, clean merge with current main 8575d36. Docs-only: stops 13-17 and sections 3.5-3.7 added to the boot-chain page with the page's own measurement-citation convention (build sha, copy 1.0.2.1, Windows 11, RTX 4090, driver 617.42, LEONIDA_D3D12=vulkan), the "a measurement for RT-5, not a claim" status line kept, and no exe bytes or addresses quoted. Stand-ins are honestly labeled untested beyond title. Checks pending. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
|
More from the same stack (RTX 5070, Windows 11, Vulkan), with
AI-assisted (Claude Code). |
|
The same chain reproduced under Wine 11.21 on Linux (clang-cl + xwin cross build,
#4348 was merged at step 2 and changed nothing observable there. Conflicts between these PRs were all mechanical: slot lists, mock-test hunks, and #7066's route helper needing #7037's Two notes for Linux users:
AI-assisted (Claude Code). No game files, bytes or code addresses here. |
|
Static check of stops 13 and 17 against the retail executable (Ghidra 12.2 headless, own 1.0.2.1 copy), next to boot runs on an AMD Radeon RX 9070 XT (Windows driver 32.0.32029.2010). Mechanisms, sizes and slot numbers only; no addresses. Stop 13 (the heap slot 9 assert). The value the title compares heap slot 9's result with is the base of an Stop 17 (the budget assert). The hook installed around the first render targets is a bump allocator over a 64 MiB budget (82 MiB for one value of the This explains the RDNA4/RDNA2 split between #7235 and #7240: two leases of AMD's RDNA4 answer (33,423,360 B each) use 66,846,720 B and leave 256 KiB, so the check passes; two of the RDNA2 answer (33,619,968 B each) need 67,239,936 B, more than the 64 MiB budget. #7235 passes on RDNA4 because that driver's size happens to fit. Leasing the console size (#7240, with #7078's sizes) makes it independent of the driver. Not determined: the attribute words and sizes the real No game files. AI-assisted (Claude Code). |
|
Three measured corrections to stops 13-15, from booting the stack with every PR up to #7066 merged (
So the table's sequence for 14/15 is one path, not the only one: with the real PRs merged, 25 comes before 127. The 25 row (#7110's item) may be worth moving up, or the 127 row marked "depends on the slot-70 view being real". AI-assisted: yes. |
|
Correction to my comment above, measured after stacking #7110 (device slot 25) on the same tree:
Both the 25 and 127 rows otherwise match: 25 is a console struct-return shape (#7110), and 127 is past the PC vtable and gets Same stack otherwise as my previous comment ( AI-assisted: yes. |
|
Measured on the retail executable (Win11 26300.9550, RX 9070 XT, AMD 26.11.2,
Two things for this document:
Source runs: four runs per row, identical, each stack = AI-assisted: yes. |
…ttedResource3 with Xbox descriptors, RT-5 stop 15) Slot 127 is past the PC device vtable and was refused with E_NOTIMPL. It has the argument list of ID3D12Device10::CreateCommittedResource3; the proxy now calls the PC device's with the Xbox layout word and flag bits cleaned as slot 76 does. Measured in ItsNotRexed#6982.
…(RT-5 stop 17) The retail title asserts when its first full-screen render targets leave more than 2 MiB of a fixed budget unused (docs/retail_boot_chain.md, ItsNotRexed#6982). The PC size is about width x height x element bytes; the console takes whole RDNA2 SW_64KB tiles. Slot 25 adds the difference per render target description and never lowers a size. Depends on ItsNotRexed#6973.
|
Your stop 17 reads like a specific assert I traced statically, and if it is the same one the tolerance is tighter than it looks. Posting the mechanism in case it saves you the trace. Static analysis only, on my own copy, and I have not reproduced your run. The batch that creates the full-screen surfaces installs a per-thread XMem allocation interceptor around itself, with a two-field stack context of What it does:
Then, after the batch, the installer asserts: That is the one I think you are hitting. It is an under-consumption assert: at most 2 MiB of the budget may be left. It is not checking that you stayed inside the budget, it is checking that you nearly filled it, which matches your reading that the PC sizes come out smaller and too much is left over. It also fires when the hook never ran at all, because the cursor is still zero and the expression is then the whole budget. Two consequences, if this is the same assert:
One thing I could not settle statically: whether the shortfall is the per-surface size or the count. If your run can print the cursor after the batch, the gap against 64 MiB would say which. Separately, and only because two accounts are now in flight: your §3.5 has the CPU address and size riding in the Xbox |
Claimed in the coordination issue as: RT-5 measurement (data for its owners, not a claim; follow-up to #6915)
Depends on: none (docs only). #6915 is merged; this extends its page.
What and why
#6915 stopped at stop 13: the title asserting on the first descriptor heap's CPU start. This adds what came after, on the same machine and build:
D3D12_DESCRIPTOR_HEAP_DESCcarries a CPU address and size after the 16 PC bytes. The title asserts that the heap starts there. Giving the Vulkan heap that memory as its CPU storage clears it (§3.5).CreatePlacedResource1(§3.6).CreateCommittedResource3's argument list, but it sits past the PC vtable (§3.7).GetResourceAllocationInfo, called as(ret, this, …)) passes Xbox descriptors unchanged.The trace now holds 1,641 D3D12 calls, up from 1,185.
Tested
LEONIDA_D3D12=vulkan, MSVC 2022 RelWithDebInfo, own 1.0.2.1 copy, plus the local stand-ins the page names.python -m pytest tests/test_docs_links.py: 7 passed.AI-assisted: yes (Claude Code)
Checklist
docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code