Repository navigation
feat(libSceGnmDriver): export the 19 remaining NeoMode-only imports - #18558
Merged
oneandonlydean merged 1 commit intoNov 13, 2026
Merged
oneandonlydean merged 1 commit into
oneandonlydean merged 1 commit into
Conversation
Progress report (c528d49 → a11cc65)📉 System libraries: 37.57% (-0.02%, +2 implemented, +17 declared functions) ✅ 2 implemented
🆕 17 declared as stubs
Changed libraries (implemented exports)
|
5 tasks done
Contributor
|
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. |
|
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
|
12 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
inFAMOUS Second Son(CUSA00223 01.07) imports 85 functions fromlibSceGnmDriver; 47 of them are exported only bylibSceGnmDriverForNeoMode, which the title does not load (#17581). Eight open PRs (#17711, #18251, #18235, #18212, #17942, #18216, #18217, #18209) add 28 of the 47 tolibSceGnmDriver. This PR adds the remaining 19:sceGnmSetEmbeddedPsShaderandsceGnmSetEmbeddedVsShader— the real embedded-shader producers, reusingGnmNeo::BlackPs,GnmNeo::DepthOnlyPsandGnmNeo::FullscreenVsfromlibSceGnmDriverForNeoMode/include/EmbeddedShaders.hpp.libSceGnmDriverForNeoMode:sceGnmDestroyWorkloadStream,sceGnmDingDongForWorkload,sceGnmDrawIndexMultiInstanced,sceGnmDrawOpaqueAuto,sceGnmGetGpuBlockStatus,sceGnmGetGpuInfoStatus,sceGnmGetLastWaitedAddress,sceGnmGetNumTcaUnits,sceGnmGetProtectionFaultTimeStamp,sceGnmGetShaderProgramBaseAddress,sceGnmGetShaderStatus,sceGnmInsertThreadTraceMarker,sceGnmMapComputeQueueWithPriority,sceGnmRequestFlipAndSubmitDoneForWorkload,sceGnmSetWaveLimitMultipliers,sceGnmSubmitAndFlipCommandBuffersForWorkloadandsceGnmSubmitCommandBuffersForWorkload.Both libraries now export the same NIDs, so the new declarations use the repository's
_nid_disambig1suffix. The NID patcher strips it before hashing:tools/nid_names.compute_nidon each base name matches the NID in #17581's table (for examplesceGnmSetEmbeddedPsShader→X9Omw9dwv5M,sceGnmSetEmbeddedVsShader→+AFvOEXrKJk,sceGnmSubmitCommandBuffersForWorkload→jRcI8VcgTz4).The 17 stubs are recorded in
docs/dev/debt/libSceGnmDriver.md. They resolve the imports so the title can load; calling one still throws until its console behavior is measured.Tested
Windows 11 Pro 10.0.26300, Ryzen 5 7530U, WinLibs GCC 16.2.0 UCRT, Release,
BUILD_TESTING=ON:guest_gnm_driver— 3/3 passed, including new checks for both embedded shaders (packet shape, shader-id refusal and null-buffer refusal).public_headers— passed (the_nid_disambig1declarations keep one declaration per export name).nid_patcher --write-export-liston the builtlibSceGnmDriver.prxlists all 19 new names.python tools/check_conventions.py --base upstream/mainandgit diff --checkpass.Not tested: the title itself (no CUSA00223 dump here), and the 17 stubs have no behavior beyond resolving the imports.
Checklist
main; one topic per PR