Repository navigation
Conversation
…ecodes BCPack (DOC-RUNTIME-README-SHIMS) The compat-modules section still said those four console DLLs have no shim here, and the DirectStorage entry said BCPack, swizzle and physical-page requests are not done. shims/acphal.cpp, chad.cpp, xapu.cpp and dstorage.cpp exist, and docs/directstorage.md describes the BCPack decoder, macro-unshuffle and xmem physical-page resolution. The 867d922 measurement is kept and marked as taken before those shims. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
[KEEP]
|
Andretuta
left a comment
There was a problem hiding this comment.
Thanks for the docs update. I checked every claim against current main (3f81d46). The BCPack, BC2 E_NOTIMPL, swizzle and xmem page-list statements match the code, and the PR merges cleanly. One path is wrong, and one switch is worth a sentence. Line numbers refer to the PR head 99c9874.
Should-fix: runtime/README.md:119 names shim files the runtime no longer links
The new paragraph points to shims/chad.cpp and shims/xapu.cpp. The runtime executable target links shims/xapu_chad.cpp for both DLLs, and that file registers a xapu.dll table and a chad.dll table. runtime/CMakeLists.txt on main says so itself, in the comment above xapu_test: the earlier shims/xapu.cpp and shims/chad.cpp are no longer linked into the runtime, which serves both DLLs from xapu_chad.cpp. Those two files are only built for xapu_test and chad_test.
Suggested wording:
All four modules now have a shim here as well (`shims/acphal.cpp`, `shims/xapu_chad.cpp` for both `xapu.dll`
and `chad.dll`, and `shims/dstorage.cpp` for `xcrdapi.dll`); a DLL in the folder replaces its module's shim, as above.Nit: runtime/README.md:280, mention the switch that turns the new paths off
runtime/shims/dstorage.cpp:996 returns E_NOTIMPL for BCPack, swizzle and physical-page requests when LEONIDA_DSTORAGE_EXTENDED=0. Suggested sentence after the feature description:
These paths are on by default; `LEONIDA_DSTORAGE_EXTENDED=0` makes requests that use BCPack, swizzle or physical
page lists return `E_NOTIMPL`.What was checked
-
Shim registrations on
main:acphal.cpp(AcpHal)xapu_chad.cpp(bothxapu.dllandchad.dll; it is the source the runtime target links)dstorage.cpp(xcrdapi.dll!DStorageGetFactory)
-
src/bcpack.cpphandles BC1/3/4/5/6H/7 and BC2 is refused atdstorage.cpp:997. The macro-unshuffle and thexmempage-list path are indstorage.cpp. -
git merge-treewithmain: clean. Python tests run:test_bcpacktest_amd_swizzle*test_acphal_abitest_docs_env_vars
All pass.
Review done with AI assistance (Claude Code and GPT-6.2 Sol, cross-checked against each other). Every finding above was checked against the code.
… LEONIDA_DSTORAGE_EXTENDED=0 Review follow-up for ProjectLeonida#1517: the runtime target links shims/xapu_chad.cpp for both xapu.dll and chad.dll (shims/xapu.cpp and shims/chad.cpp only build for their ABI tests), and LEONIDA_DSTORAGE_EXTENDED=0 makes BCPack, swizzle and physical-page requests return E_NOTIMPL (shims/dstorage.cpp validate_request).
…processes them EnqueueRequest returns void; validate_request runs on the queue worker (execute_request and prepare_in_background), so BC2 and, with LEONIDA_DSTORAGE_EXTENDED=0, BCPack, swizzle and page-list requests fail there rather than returning the error.
|
Thanks for checking every claim against
|
|
Read through the diff (not built here). One line is out of date since #1144 merged (via #2350): |
…by shims/xapu_chad.cpp Since ubiquitarianism#1144 merged (via ubiquitarianism#2350), xapu_chad.cpp serves only chad.dll and xapu.dll comes from xapu_queue.cpp, which runtime/CMakeLists.txt links into gta6rt and build_runtime.ps1's cl.exe fallback compiles. Wording from nicoco23's review.
Andretuta
left a comment
There was a problem hiding this comment.
Re-checked at c8fabf8 merged cleanly onto current main (d1dff7949).
All earlier review items and the post-#2350 split are addressed accurately:
runtime/README.mdnow listsshims/acphal.cpp,shims/xapu_queue.cppforxapu.dll,shims/xapu_chad.cppforchad.dll, andshims/dstorage.cppforxcrdapi.dll— matching bothruntime/CMakeLists.txtandscripts/build_runtime.ps1.- The DirectStorage paragraph matches
runtime/shims/dstorage.cpp(src/bcpack.cppBC1/3/4/5/6H/7, BC2 failing withE_NOTIMPL, optional macro-unshuffle andxmemphysical page lists on by default, andLEONIDA_DSTORAGE_EXTENDED=0failing those requests withE_NOTIMPLon queue processing).
Verified locally: git merge-tree against d1dff7949 clean, scripts/check_no_game_data.py exit 0, and test_docs_links.py, test_docs_repo_paths.py, test_docs_table_ids.py, test_docs_env_vars.py, test_docs_cli_flags.py, test_docs_encoding.py, and test_text_write_line_endings.py all pass.
AI-assisted review (Antigravity); every claim checked against main.
Claimed in the coordination issue as: DOC-RUNTIME-README-SHIMS (#14 (comment))
What and why
runtime/README.mdhad two stale statements:LEONIDA_COMPAT_DIRsection said theAcpHal,chad,xapuandXCRDAPIconsole DLLs "have no shim here".shims/acphal.cpp,shims/chad.cpp,shims/xapu.cppandshims/dstorage.cpp(which servesxcrdapi.dll) exist now. The paragraph keeps the xbox-emulator crates as an example of drop-in DLLs, names the four shims, says a DLL in the folder replaces its module's shim, and marks the867d922measurement as taken before those shims.docs/directstorage.mdandshims/dstorage.cppdescribe the BCPack decoder insrc/bcpack.cpp(BC1/3/4/5/6H/7; BC2 isE_NOTIMPL), the optional macro-unshuffle and physical page numbers resolved throughxmem. The entry now says that.Docs only; no code changes.
Tested
python -I scripts/check_no_game_data.py runtime/README.md. Checked every statement against the currentmainsources anddocs/directstorage.md.GPUs tested: n/a
AI-assisted: yes (Claude Code, Claude Opus 5.5)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a)