feat(libSceGnmDriverForNeoMode): return the retail answers of 48 debug, resource, SDMA, counter and validation calls #9201
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9201"
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 YossiYad on 2026-10-21T15:10:42Z.
What
48 of the 118 libSceGnmDriverForNeoMode exports threw. They now return what shadPS4's gnmdriver.cpp returns for the calls it marks as not available in retail firmware:
0x8EEE00FF(ORBIS_GNM_ERROR_FAILURE) from the two debug resets, the 19 resource and owner registration calls, the 8 SDMA calls and the 3 SQ counter calls0x80000000from the fivesceGnmDriverInternalRetrieveGnmInterface*callssceGnmGetDbgGcHandlesceGnmDriverTraceInProgressandsceGnmValidateOnSubmitEnabled0x80D13FFF(ORBIS_GNM_ERROR_VALIDATION_NOT_ENABLED) from the other 8 validation callsNone of them reads its arguments, so they keep the no-parameter declarations. The retail calls shadPS4 answers with a plain
ORBIS_OK(coredump, PA debug, TCA units and similar) still throw: that value is a placeholder there, not a retail answer.Not measured on a console. The debt file says so, and the pending count drops from 118 to 70. The second pending entry (45 exports from the same commit, a subset of the 118) is folded into the first.
Tested
Linux (Fedora 44, GCC, Ninja,
-DBUILD_TESTING=ON), based onmaincecb540a63:guest_gnm_neo_retail(core/libs/tests/GuestGnmNeoRetail.cpp) calls all 48 and checks each value. It aborts onmain. It fails whenFailureis 0, when the validation code is off by one, whensceGnmGetDbgGcHandlereturns 0 and when one interface query returns 0.ctest: 1794 of 1802 pass. The 8 failures fail the same way onmainon this machine and do not link this library:application_heap_scripting,application_heap_lazy,agc_driver_guest_memory_lifetime,agc_driver_image_array_window_past_layer_limit,agc_driver_tessellationand the threenet_dontwait_blocking_*cases.tools/progress.py --compare: libraries +0.44%, 48 functions implemented, none lost.tools/check_conventions.py --base upstream/mainpasses.tools/pr_overlap.pyonly findscore/libs/CMakeLists.txtshared with other PRs; no open PR touches libSceGnmDriverForNeoMode.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 github-actions[bot] on 2026-10-21T15:11:32Z.
Progress report (
cecb540→a4e9e7c)📈 System libraries: 42.54% (+0.44%, +48 implemented functions)
✅ 48 implemented
sceGnmDebugModuleResetsceGnmDebugResetsceGnmDriverInternalRetrieveGnmInterfacesceGnmDriverInternalRetrieveGnmInterfaceForGpuDebuggersceGnmDriverInternalRetrieveGnmInterfaceForReplaysceGnmDriverInternalRetrieveGnmInterfaceForResourceRegistrationsceGnmDriverInternalRetrieveGnmInterfaceForValidationsceGnmDriverTraceInProgresssceGnmFindResourcessceGnmFindResourcesPublicsceGnmGetDbgGcHandlesceGnmGetOwnerNamesceGnmGetPhysicalCounterFromVirtualizedsceGnmGetResourceBaseAddressAndSizeInBytessceGnmGetResourceNamesceGnmGetResourceRegistrationBufferssceGnmGetResourceShaderGuidsceGnmGetResourceTypesceGnmGetResourceUserDatasceGnmQueryResourceRegistrationUserMemoryRequirementssceGnmRegisterGdsResourcesceGnmRegisterOwnersceGnmRegisterOwnerForSystemsceGnmRegisterResourcesceGnmSdmaClosesceGnmSdmaConstFillsceGnmSdmaCopyLinearsceGnmSdmaCopyTiledsceGnmSdmaCopyWindowsceGnmSdmaFlushsceGnmSdmaGetMinCmdSizesceGnmSdmaOpensceGnmSetResourceRegistrationUserMemorysceGnmSetResourceUserDatasceGnmSetSpiEnableSqCounterssceGnmSetSpiEnableSqCountersForUnitInstancesceGnmUnregisterAllResourcesForOwnersceGnmUnregisterOwnerAndResourcessceGnmUnregisterResourcesceGnmValidateDisableDiagnosticssceGnmValidateDisableDiagnostics2sceGnmValidateDispatchCommandBufferssceGnmValidateDrawCommandBufferssceGnmValidateGetDiagnosticInfosceGnmValidateGetDiagnosticssceGnmValidateOnSubmitEnabledsceGnmValidateResetStatesceGnmValidationRegisterMemoryCheckCallback⚪ 48 behaviourally empty (constant return or throw)
sceGnmDebugModuleResetsceGnmDebugResetsceGnmDriverInternalRetrieveGnmInterfacesceGnmDriverInternalRetrieveGnmInterfaceForGpuDebuggersceGnmDriverInternalRetrieveGnmInterfaceForReplaysceGnmDriverInternalRetrieveGnmInterfaceForResourceRegistrationsceGnmDriverInternalRetrieveGnmInterfaceForValidationsceGnmDriverTraceInProgresssceGnmFindResourcessceGnmFindResourcesPublicsceGnmGetDbgGcHandlesceGnmGetOwnerNamesceGnmGetPhysicalCounterFromVirtualizedsceGnmGetResourceBaseAddressAndSizeInBytessceGnmGetResourceNamesceGnmGetResourceRegistrationBufferssceGnmGetResourceShaderGuidsceGnmGetResourceTypesceGnmGetResourceUserDatasceGnmQueryResourceRegistrationUserMemoryRequirementssceGnmRegisterGdsResourcesceGnmRegisterOwnersceGnmRegisterOwnerForSystemsceGnmRegisterResourcesceGnmSdmaClosesceGnmSdmaConstFillsceGnmSdmaCopyLinearsceGnmSdmaCopyTiledsceGnmSdmaCopyWindowsceGnmSdmaFlushsceGnmSdmaGetMinCmdSizesceGnmSdmaOpensceGnmSetResourceRegistrationUserMemorysceGnmSetResourceUserDatasceGnmSetSpiEnableSqCounterssceGnmSetSpiEnableSqCountersForUnitInstancesceGnmUnregisterAllResourcesForOwnersceGnmUnregisterOwnerAndResourcessceGnmUnregisterResourcesceGnmValidateDisableDiagnosticssceGnmValidateDisableDiagnostics2sceGnmValidateDispatchCommandBufferssceGnmValidateDrawCommandBufferssceGnmValidateGetDiagnosticInfosceGnmValidateGetDiagnosticssceGnmValidateOnSubmitEnabledsceGnmValidateResetStatesceGnmValidationRegisterMemoryCheckCallbackImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T15:42:32Z.
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.
core/libs/CMakeLists.txtcore/libs/CMakeLists.txtcore/libs/CMakeLists.txtcore/libs/CMakeLists.txtcore/libs/CMakeLists.txtcore/libs/CMakeLists.txtcore/libs/CMakeLists.txtcore/libs/CMakeLists.txtImported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-21T19:18:24Z.
Independent Windows run of this PR (data only).
Environment: Windows 10 Pro 10.0.19045, Ryzen 7 5800X3D, WinLibs GCC 15.2.0 r7 (MinGW-w64 UCRT), Release, BUILD_TESTING=ON. Merge-tree of the PR head against
mainis clean. I built onlyguest_gnm_neo_retail_tests;ctest -N -R guest_gnm_neo_retaillists exactly one test.PR head tested:
a4e9e7ce20e9d5f292e0436407d57f04cb5842d5.Results (3 runs each):
guest_gnm_neo_retailpasses 3/3.core/libs/prx/libSceGnmDriverForNeoMode/Export.cppwith the version from the PR's merge base (cecb540a63), then rebuilt. The test fails 3/3 (exit 0xc0000409). I restored the PR's files afterwards.Not run: other platforms, the other tests in the same family, the full repository CTest, and any title or console run.
AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by YossiYad on 2026-10-21T19:43:26Z.
Thanks @xXPBSXx for the Windows run, and for the baseline with
Export.cppreverted that shows the test fails without the change.Imported from boykopovar/AnyPS5. Originally posted by YossiYad on 2026-10-22T05:34:47Z.
@oneandonlydean @adriadam10 ready from my side: CI is green, it merges cleanly, and xXPBSXx's Windows run shows the test passing here and failing with
main's library code.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-22T05:48:50Z.
@YossiYad thanks, it's in my review queue now. I'll come back here with the result.