feat(libSceGnmDriver): add regular retail queries #18216
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/18216"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by DonRyuzaki on 2026-11-10T21:36:50Z.
What
inFAMOUS Second Son's regular GNM import report #17581 includes sceGnmGetOffChipTessellationBufferSize (FFVZcCu3zWU) and sceGnmDriverTraceInProgress (R6z1xM3pW-w). They exist in libSceGnmDriverForNeoMode.prx, but the title imports libSceGnmDriver.prx, which lacks them. This exports both zero-argument queries from the regular provider with their original guest NIDs.
The off-chip query returns 0x800000 (8 MiB), and retail trace status returns false. Both values match the pinned shadPS4 implementation and AnyPS5's existing Neo provider. No console measurement is available; the remaining uncertainty is recorded in docs/dev/debt/libSceGnmDriver.md. This is two import fixes, not a claim that the title loads or renders.
I compared actual open patches in #16882, #17711, #17942, #6977, #17396 and our #18209; none adds these exact regular exports. #16882 shares the regular GNM source file but changes different queries.
Tested
41b9e25ddc. WSL2 Ubuntu 24.04, GCC 13.3, CMake Release, BUILD_TESTING=ON, two below-normal compiler jobs.No inFAMOUS dump, PS5 console, Windows runtime, GPU test or full CTest suite was used. The title import and Neo contract come from the linked report and pinned implementation; the independent evidence here is the failing baseline, full library build, focused tests and direct regular-PRX calls.
The prior exact tested head was
31de917; the feature patch has since been rebased without changes.Rebased-head validation (November 10)
Current head
1d9667e19e86c6c047b21cdb0941d5929d54ccd9is based on upstream4306c608e2a552d5c96f11679332a222a4683ef9, including both worker-spin fixes. Full Linuxlibsandguest_gnm_driver_testsrebuilt successfully on the exact source with two below-normal compiler jobs.guest_gnm_driverandpublic_headerseach passed three consecutive runs (6/6, no skips). All four changed files matched this rebased head byte-for-byte; the patched regular PRX SHA-256 wasbeb9224b1ff3a55385b2e977ac738642469750c26cdc58b3d8f3532253e6bef2. Dynamic NID calls were successful on the prior head and were not repeated on the rebase. The hosted Windows job passed on this head; hosted Linux and specialized PR jobs were skipped.Checklist
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-12T21:05:01Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
Head
1d9667e19e86c6c047b21cdb0941d5929d54ccd9. Read the diff for the four changed files, then checked the head with the repository reader:No build or test was run here.
Results
files.json_nid_disambig1namingFindings
Blocking
None.
Non-blocking
core/libs/tests/GuestGnmDriver.cpp:46and:47sit insideTestWriters, but the two checks test query functions, not writers. Moving them to a test for the regular queries would keep the test names accurate.Sources
a808e76. I did not open that link.Not verified
1d9667e. The description reports them for the rebased head. I did not run them._nid_disambig1names resolve to the guest NIDsFFVZcCu3zWUandR6z1xM3pW-w. Neither NID appears in the repository at head.0x800000size and thefalsetrace status are unmeasured, as the description and the debt file say.Export.cppat head lines 495–520, and the diff hunks forApi.hpp,GuestGnmDriver.cppanddocs/dev/debt/libSceGnmDriver.md. The three files other thanExport.cppwere not read in full at head.To get this to a good state
Nothing is required.