Repository navigation
Conversation
…ida#6792 served D3D12ConfigureVirtualMemoryX The retail executable's dry-run table, the DLL list under it, the boot runbook and the audio/HAL page all still count 30 unimplemented imports and list `d3d12_xs.dll` among them. ProjectLeonida#6792 merged as 35b4a8e and serves `D3D12ConfigureVirtualMemoryX`, so at main e0816d6 the same dry-run reports 54 shim imports and 29 unimplemented, and the six remaining DLLs are xmem (7), xg_xs (2), XCRDAPI (1), chad (5), xapu (5) and AcpHal (9).
|
Tested 7f55f1e against
For reference, my Windows/MSVC run on Counts and import names only; nothing from the executable is posted. AI-assisted (Claude Code). |
|
Tested
exit 0, nothing on stderr. So the 54 / 432 / 72 / 29 row and "none is counted as returning an Two things I checked against the diff rather than the run:
Independent check; no game data in this comment. AI-assisted. |
throny
left a comment
There was a problem hiding this comment.
Checked 7f55f1e against a dry run on main 86a7807 (Windows 11): numbers differ, because main moved after this branch's base
Commands (MSVC 14.44, RelWithDebInfo, retail 1.0.2.1 executable, static only):
gta6rt --dry-run <exe> --game-dir <package> --overlay <scratch>, once on this PR's era and once on current main.
game_scarlett_master.exe |
Shim | Host | Module | Unimplemented |
|---|---|---|---|---|
this PR's table (base e0816d6) |
54 | 432 | 72 | 29 |
| our earlier dry run before #6919 | 54 | 432 | 72 | 29 |
main 86a7807 (includes #6919, 042c5f378) |
61 | 432 | 72 | 22 |
- At this branch's base every number the diff changes is correct: 54 / 432 / 72 / 29, the four DLL rows (5/52, 6/16, 28/170, 5/55, all 0 unimplemented) and the per-DLL split 7 + 2 + 1 + 5 + 5 + 9 = 29.
D3D12ConfigureVirtualMemoryXbinds to the shim. - On current
mainthat changes. #6919 (xmem: physical pages, default allocators, XMemIsToolsMemAvailable) now serves all sevenxmem.dllimports in the table:XMemAllocDefault,XMemAllocatePhysicalPages,XMemFreeDefault,XMemFreePhysicalPages,XMemIsToolsMemAvailable,XMemMapPhysicalPagesandXMemMapPhysicalPagesScatter. The executable is at 61 shim / 22 unimplemented,unimplemented by return policy: hresult=0 other=22, and the other four images are unchanged. - So on
mainthe right numbers are 22, from five DLLs (xg_xs.dll2,XCRDAPI.dll1,chad.dll5,xapu.dll5,AcpHal.dll9). Thexmem.dllrow and the "Only one of these DLLs has a shim ... 7 of the 29" sentence should go. Inaudio_hal_exe_calls.md, "Seven arexmem.dll" becomes "all 22 are the audio coprocessor, texture layout and DirectStorage imports".boot.mdand the--initparagraph also say 22.docs/runtime_imports.mdonmainstill says 30 in all these places, so the fix is still needed. It just needs rebasing onto #6919 and its numbers updating. tests/test_docs_*.pyandtests/test_text_write_line_endings.pyat the head pass 9 of 12. All 3 failures are also onmain(test_docs_cli_flagsandtest_docs_linksfail ondocs/dev-tools.md;test_text_write_line_endingsfails ontools/leonida_tui.pyandtools/wave_diff.py), with the same messages. None is in a file this PR touches.- The diff is docs only. Note that #6943 (offline
ws2_32.dllshim) also edits the next lines ofdocs/boot.md(lines 5-9) and thews2_32paragraph inruntime_imports.md, so whichever merges second will probably need a small rebase.
Only counts and import names already in docs/runtime_imports.md or the merged xmem PR are quoted here. AI-assisted.
|
Checked against AI-assisted. |
|
Measured at
So the number this paragraph is about is 22 now, not 29: eight of the 30 are served since AI-assisted (Claude Code). |
PROC-407.
What was wrong
docs/runtime_imports.mdstill says the retail executable leaves 30 imports unimplemented and listsd3d12_xs.dll(1:D3D12ConfigureVirtualMemoryX) as one of the seven DLLs that hold them.#6792merged as35b4a8eand serves that call fromruntime/shims/d3d12_xs.cpp. The same stale count is indocs/boot.md("leaves30 imports unimplemented") and in
docs/audio_hal_exe_calls.md("leaves 30 of ... imports unimplemented ... Eight arexmem.dllandd3d12_xs.dll"), which is where the 30 is first read by anyone following the boot runbook.What this changes
docs/runtime_imports.md: the dry-run table's executable row is54shim /29unimplemented and the table isstamped with the commit and environment it was measured on; the "seven Xbox-only DLLs" prose becomes six; the
d3d12_xs.dllrow is removed from the per-DLL table; the "only two of these DLLs have a shim ... 8 of the 30"sentence becomes one DLL holding 7 of the 29, with a note that
d3d12_xs.dllhas a shim and why it left the list;the
--initparagraph's "none of the 30" becomes 29.docs/boot.md: 30 → 29.docs/audio_hal_exe_calls.md: 30 → 29, "Eight arexmem.dllandd3d12_xs.dll" → seven arexmem.dll.The 1cc6e3c Windows/MSVC numbers are not erased: the table's lead sentence records them as history and says which
PR served the import, so a reader who has the older measurement can still recognise it.
How the numbers were measured
maine0816d6, my own 1.0.2.1 copy, Linux, clang-cl 23.1.5 against the Windows SDK 10.0.26100 headers, wine 11.22:The four other images are unchanged from the numbers already in the table (
XboxBvhBuilder.dll5/52/0/0,amd_fidelityfx_loader_xbox.dll6/16/0/0,libHttpClient.GDK.dll28/170/0/0,Bink2Scarlett.dll5/55/0/0), and theonly name that left the unimplemented list between
07f1d7e(30) ande0816d6(29) isd3d12_xs.dll!D3D12ConfigureVirtualMemoryX; the remaining 29 are xmem 7, xg_xs 2, XCRDAPI 1, chad 5, xapu 5,AcpHal 9.
Testing
Docs only.
python -I tests/test_docs_links.pyandpython -I tests/test_docs_cli_flags.pyfail identically beforeand after this branch on this host (verified with the change stashed and restored); they are the failures #7217 /
#7242 / #6590 already cover, not new ones. No test pins these counts, which is why they drifted.
No game data: counts and symbol names only, no bytes, no disassembly, no logs.
AI-assisted (orchestrator plus agents; every number above came from the commands shown). Claim:
#7333