Repository navigation
docs/d3d12_vulkan: what the retail import table says about DXGI and the BVH builder - #7598
phish32786 wants to merge 1 commit into
Conversation
|
I independently checked the SHA-256-verified Xbox 1.0.2.1 executable on CachyOS. The PE inventory gives 68 distinct DLLs and 587 imports, all from the normal import directory, with three functions from Could §4.5 and §8.2 row 6 keep the runtime conclusion open? “The executable has no static DXGI import to shim” follows directly from the measurement. “ |
|
Tested 0831876 merged with main 3ae0654 on Linux/Python 3.12.16: fail The merge is clean (docs/d3d12_vulkan.md only), but it breaks a docs test that passes on main.
|
0831876 to
22225d9
Compare
…he BVH builder Question 6: the executable imports no dxgi.dll and no d3d12.dll, and holds no dxgi string, so CreateSwapChain* is unreachable and there is no DXGI import to shim; its adapter comes from D3D12XboxCreateDevice's adapter parameter. §4.5 said the opposite. Question 7: the executable imports the seven XboxBvhBuilder entry points, so acceleration-structure builds go through the builder rather than the device's standard calls, and the layer has to hand out ID3D12Device11 and command-list interfaces 4, 6 and 8.
|
Force-pushed one correction after measuring the device call site (#7333 (comment)): this PR's new §4.5 sentence and question 6 said the title "takes its adapter from Checks re-run on the rebased head ( |
|
AI-assisted check of the table repair on Windows. I ran |
|
Checked Pass
Needs changes
AI-assisted: Codex GPT-6.2 Sol ran the checks, Claude Opus 5.5 reviewed the report. The retail executable (SHA-256 |
What
Two rows of the Unknown / open questions table (§8.2) in
docs/d3d12_vulkan.md, plus the §4.5 sentence that contradicts one of them, resolved from the retail executable's static import table (68 DLLs, 587 imports, normal and delay-load, plus the DLL names it holds as strings).Question 6 — the title never touches DXGI. No
dxgi.dll, nod3d12.dll; the only D3D-related import isd3d12_xs.dllwith three functions, and the string-only load candidates aredbghelp.dll,kernel32.dll,rpcrt4.dllandxgameruntime.dll— nodxgistring either. SoCreateDXGIFactory*andCreateSwapChain*are unreachable and there is no DXGI import to shim: the adapter comes fromD3D12XboxCreateDevice's adapter parameter. §4.5 previously stated the opposite ("the executable imports it from the system (or from the GDK). That import must be shimmed"), and §8.2 asked for exactly this check ("check the executable'sdxgi/d3d12_xsimports"). What remains open is the dynamic half: thePresentX/SuspendX/ResumeXslots and theD3D12XBOX_*layouts. The DXGI bullet list stays documented as the fallback path, now labelled as such.Question 7 — acceleration structures go through
XboxBvhBuilder. The executable statically imports seven of its entry points: the constructor(ID3D12Device11*, bool), the destructor,GetRaytracingAccelerationStructurePrebuildInfo(..., const D3D12XBOX_XDXR_STREAM_DESC*, ...),BuildRaytracingAccelerationStructureBatched2X(ID3D12GraphicsCommandList6*, ...),RehydrateRaytracingAccelerationStructureBatched2X(ID3D12GraphicsCommandList8*, ...),CopyRaytracingAccelerationStructure(ID3D12GraphicsCommandList4*, ...)andSet64BitMortonCodes(bool)— the same seven already listed from the DLL side indocs/d3d12_command_objects.md§3.1. So the device's standardBuildRaytracingAccelerationStructure/Copy.../Emit...PostbuildInfoare not the title's path, and the layer must hand outID3D12Device11plus command-list interfaces 4, 6 and 8. Serving those exports is D3D-178 (#7333 claim by @romainveurrier); this PR is docs only and touches no code.Claim: #7333 (comment)
Independent of my #7371, which edits a different row of the same file (the sibling-module inventory at line 3752); the two do not overlap.
Tested
python -I scripts/check_no_game_data.py docs/d3d12_vulkan.md→ clean.python -I tests/test_docs_repo_paths.py,test_docs_repeated_lines.py,test_docs_table_ids.py→ OK.python -I tests/test_docs_links.py→ the one pre-existing failure onmain(docs/dev-tools.md:../runtime/README.md#a-600-frame-headless-guest-scene, anchor not found); nothing from this change. Found while testing — filing it in the coordination issue rather than fixing it here.AI-assisted (Claude, on the user's machine).