feat(libSceGnmDriver): export the workload, trace and tessellation si… #18235
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/18235"
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 erickerxhalli on 2026-11-10T22:54:18Z.
What
Adds five exports to
libSceGnmDriverthat onlylibSceGnmDriverForNeoModeprovided, so a title importing them fromlibSceGnmDriverstopped at load. They are 5 of the 47 imports listed in #17581 (inFAMOUS Second Son, CUSA00223, bring-up #8214); the issue stays open for the rest.Source: shadPS4
f46a693c802f2d60573e07927b5fdaa753136567,src/core/libraries/gnmdriver/gnmdriver.cpplines 168, 215, 906, 918 and 1000. None of the five reads the Neo mode there, and it keeps no stream or workload state; neither does this change. Nothing here is measured on a console, whichdocs/dev/debt/libSceGnmDriver.mdrecords (Workload streams under Functional, andsceGnmDriverTraceInProgressadded to the existing Silent stubs entry).The functions carry the
_nid_disambig1suffix, as #17711 and #17942 do for the names the Neo provider already declares.Overlap, checked against the merge refs of the open pull requests: none adds these names or NIDs to
libSceGnmDriver(#17393, #16238 and #16463 mention them for the Neo provider only). #16882, #17711 and #17942 change the same files; a three-way merge with each is clean.Tested
Ubuntu 24.04, GCC 13.3.0, Release, no title:
ctest --test-dir build -R '^guest_gnm_driver$'passes with the newTestWorkloads.Twelve mutations of the five functions each fail the test: create accepting a null name, create storing 2, the begin boundary at 15 and at 17, begin storing 32 bits, begin checking the stream before the output, the end shift at 48, the end boundary at 15 and at 17, end accepting 0, another tessellation size, trace returning true.
python3 tools/check_conventions.py --base upstream/mainandpython3 core/libs/tests/test_public_headers.py --audit-onlypass.Full build with
libs, thenctest --test-dir build --timeout 120 --parallel 4: of 4774 tests, 20 fail and 1128 are skipped. The 20 are socket tests (guest_net_*,guest_sce_net_keepalive,guest_socket_*,guest_tcp) on a container without IPv6, where creating anAF_INET6socket fails; they were not run onmainfor comparison. The skips are the tests that need a Vulkan device, which the container lacks, sognm_driver_submit_waitdid not run.Windows (
windows-latest, WinLibs GCC 15.2.0), thewindowsjob ofbuild.ymlwith this branch merged intomainat07ae6afcee, run on the fork: the full build,libs,ctest(4885 tests registered) andcheck_skips.pypass. https://github.com/erickerxhalli/AnyPS5-fork/actions/runs/42767204852Not tested on a title: CUSA00223 still stops on the other imports of #17581.
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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-10T23:02:53Z.
Review: COMMENTED
Reviewed — no blocking findings
The five implementations are present and match the referenced PS4 behavior; I found a non-blocking name/NID mismatch in the PR description, and the required Windows check is still pending.
What I ran
Head
94add35100dad5ed57c1ddec0a4ce022ada9063c; base8356b8bbea97649ff0d1185df0a631a814975fa1. The PR is open and mergeable. The no-build stack check produced a clean merge preview against that base; I did not build the preview.Environment: Linux 6.1.0-54-amd64, Python 3.11.2, GCC 12.2.0.
I read all four changed files, their full diff, the PR discussion, and the linked issue. I ran the exact-head no-build precheck and checked the export-name/NID calculation:
I did not run a local build or CTest. I read the GitHub checks as a status snapshot.
Results
guest_gnm_driver.Full precheck table and relevant output
git diff --checkcompleted with exit 0.Conventions output:
Name-derived NIDs after stripping
_nid_disambig1:The test-quality warning was
possible-unregistered-cpp-test;core/libs/prx/libSceGnmDriver/CMakeLists.txtregistersGuestGnmDriver.cppasguest_gnm_driver.Negative control
Findings
Blocking
None found in the four changed files.
Non-blocking
The PR description’s table assigns the three workload NIDs to the wrong names. The code’s name-derived exports are
CreateWorkloadStream→5udAm+6boVg,BeginWorkload→ihxrbsoSKWc, andEndWorkload→Fa3x75OOLRA; the table currently rotates those three values. Please correct the table. The implementation itself uses the corresponding name-derived exports, so this documentation mismatch does not prevent the listed imports from resolving.Sources
Not verified
guest_gnm_drivertest passed three times on this head; I did not reproduce it.main, so I cannot confirm that they predate this change.To get this to a good state
Correct the three name/NID pairs in the PR description. I will recheck the exact head and required hosted checks before considering a later approval; if the code head changes, I will rerun the same no-build precheck and review the new diff.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T03:01:22Z.
Review: APPROVED
Reviewed — looks good
Nothing in the inspected changes shows a verified defect; the implementation follows the documented shadPS4 behavior, and the PR reports focused tests and build checks.
What I ran
Reviewed head
90662f4f47ffc778cb32eabd010ebcf784d38fbb. Read the prepared description, commit list, manifest, diff, and all four changed files. No commands or tests were run; reported test results are author-provided. The reader wasrepo_read.py.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Console behavior is unmeasured, and the title was not tested. The reported Linux and Windows checks were not independently run. No files were excluded from the manifest; all four changed files were read.
To get this to a good state
Nothing is required.