feat(libSceGnmDriver): export the 19 remaining NeoMode-only imports #18558
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/18558"
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 Ethan-Hainline on 2026-11-11T21:42:06Z.
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