Repository navigation
feat(libSceGnmDriver): export the retail resource registration calls CUSA12982 imports - #28088
Conversation
…CUSA12982 imports Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Change: Feature Merge Risk:
|
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this change; the reviewed implementations match the stated silent-stub behavior and the evidence supports merging.
What I ran
Reviewed head 208f9c6fc651d38fc1c9d23cc3f9167f2b404f92. I read the prepared description, commits, manifest, and diff, plus all four changed files and the corresponding NeoMode stubs. I did not run commands or tests; repo_read.py was used to inspect the prepared bundle and pinned source.
Results
| Check | Result | Note |
|---|---|---|
| Changed code review | passed | Four changed files read |
| Tests | not run | No test execution in this review |
Findings
Blocking
None.
Non-blocking
None.
Not verified
The author-reported Windows build, guest tests, and CUSA12982 run were not independently reproduced. Console behavior and the full repository test suite were not verified. No files were excluded from the review bundle.
To get this to a good state
Nothing is required.
|
Linux check of the exact head
AI-assisted: yes |
|
Exports with a name or library/NID already present in
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
Progress report (4f6d47e → 208f9c6)📈 System libraries: 47.85% (+0.03%, +17 implemented functions) ✅ 17 implemented
⚪ 17 behaviourally empty (constant return or throw)
Changed libraries (implemented exports)
|
|
Tested
Not covered: GPU. This pull request changes GPU code, and the GitHub-hosted runners above have no GPU, so the Vulkan and GPU tests fail there on main and on this pull request alike. This result says nothing about the changed GPU paths; they still need a run on a real GPU. AI-assisted: yes (Claude Code); the runs are automated, this summary was written from their reports. |
ligmaSec
left a comment
There was a problem hiding this comment.
I built both production registration implementations on Linux. All 17 retail wrappers returned 0x8EEE00FF, matching the corresponding NeoMode calls. sceGnmRegisterOwner also preserved the supplied output sentinel.
I then ran the actual ELF NID patcher on the 17 retail exports and compared the resulting symbol table with the NIDs computed from the unsuffixed names. All 17 matched with no duplicates. This verifies the replacement exports and host return values. Retail hardware and the complete CUSA12982 import load were outside this run.
AI-assisted: yes.
Plyxen
left a comment
There was a problem hiding this comment.
I read the diff at 208f9c6fc6. Windows 11, GCC 15.2, merged into main at cf556db18c3 together with other open PRs (so not an isolated build).
guest_gnm_driver: pass.- Control (same tree and tests, the changed files of those PRs put back to
main's): the test doesn't link without the new exports.
Not checked: CUSA titles, and Linux.
AI-assisted: yes (Claude Code)
What
CUSA12982 failed to link: it imports 31 functions from
libSceGnmDriverthat onlylibSceGnmDriverForNeoModeexported. Open PRs already add 14 of them tolibSceGnmDriver: #27342 the two compute waits,sceGnmGetPhysicalCounterFromVirtualizedandsceGnmLogicalTcaUnitToPhysical, and #27937 the ten validation calls. This PR adds the other 17, the resource and owner registration calls, as_nid_disambig1copies like the functions the two modules already share:sceGnmRegisterOwnerand the 16 other registration calls return0x8EEE00FFwithout reading their arguments, the value NeoMode returns for them and that shadPS4 returns as not available in retail firmware; recorded under Silent stubsCUSA12982 needs this, #27342, #27937 and #28089.
Tested
Windows 10, WinLibs GCC 15.2.0 r7:
guest_gnm_driverpasses with the new registration checks. With these 17, the other 14 and thelibSceVideoRecordingimports in one build, CUSA12982 links, starts, loads its pak files and later stops on an unrelated app0.zar directory read.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Summary by CodeRabbit