Repository navigation
feat(libSceGnmDriver): add regular retail queries - #18216
Conversation
Progress report (1d13b55 → 1d9667e)📈 System libraries: 36.43% (+0.01%, +2 implemented functions) ✅ 2 implemented
⚪ 2 behaviourally empty (constant return or throw)
Changed libraries (implemented exports)
|
|
Windows check of head Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release. The hosted Windows check does not run these tests on pull requests.
AI-assisted: yes. |
31de917 to
1d9667e
Compare
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Exports with a name or library/NID already present in
|
|
Windows check of head Setup: Windows 11 x64, WinLibs GCC 15.2.0 (r7), Ninja, Release,
AI-assisted: yes. |
MarcZX10
left a comment
There was a problem hiding this comment.
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:
repo_read.py search TraceInProgress
repo_read.py search OffChipTessellation
repo_read.py search _nid_disambig
repo_read.py search FFVZcCu3zWU
repo_read.py search R6z1xM3pW-w
repo_read.py cat core/libs/prx/libSceGnmDriver/Export.cpp 495 520
No build or test was run here.
Results
| Check | Result | Note |
|---|---|---|
| Diff read, four files | passed | Matches files.json |
| New names at head | passed | Present in Export.cpp, Api.hpp and the test |
_nid_disambig1 naming |
passed | Same pattern as libSceAjm exports |
| Build and CTest | not run | Author-reported only |
| Guest NIDs in repository | not run | Not present at head |
Findings
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
- The shadPS4 comparison comes from the author's description, which links
a808e76. I did not open that link.
Not verified
- Build and CTest results on
1d9667e. The description reports them for the rebased head. I did not run them. - Whether the
_nid_disambig1names resolve to the guest NIDsFFVZcCu3zWUandR6z1xM3pW-w. Neither NID appears in the repository at head. - The claim that no open patch in #16882, #17711, #17942, #6977, #17396 or #18209 adds these exports.
- Console behaviour. The
0x800000size and thefalsetrace status are unmeasured, as the description and the debt file say. - Files read:
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.
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
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