feat(agc): declare 44 Agc and AgcDriver exports with PS5 signatures #2384

Closed
brycebrower2008 wants to merge 1 commit from upstream-pr/2384 into main
brycebrower2008 commented 2026-10-09 17:04:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by brycebrower2008 on 2026-10-09T17:04:28Z.


What

Declares 44 exports that the PS5 modules have and no library defined, as throwing stubs. Each signature comes from SharpProspero's PS5 bindings (its LibraryImport declarations), so they are PS5 signatures rather than PS4 ones. Structure arguments are passed as untyped pointers. TechnicalDebt lists the functions and the source.

  • libSceAgc (7): sceAgcAcbAtomicGds, sceAgcCbMemSemaphore, sceAgcDcbAtomicGds, sceAgcGetDataPacketPayloadAddress, sceAgcGetFusedShaderSize, sceAgcSuspendPointAndCheckStatus, sceAgcUpdateInterpolantMapping
  • libSceAgcDriver (37): sceAgcDriverAcquireComputeQueue, sceAgcDriverCreateQueue, sceAgcDriverCwsrResumeAcq, sceAgcDriverCwsrSuspendAcq, sceAgcDriverDebugHardwareStatus, sceAgcDriverDestroyQueue, sceAgcDriverGetGpuRefClks, sceAgcDriverGetHsOffchipParam, sceAgcDriverGetRegShadowInfo, sceAgcDriverGetRegShadowInfoAgr, sceAgcDriverGetReservedDmemForAgc, sceAgcDriverGetSetFlipPacketSizeInDwords, sceAgcDriverGetSetWorkloadCompletePacketSize, sceAgcDriverGetSetWorkloadsActivePacketSize, sceAgcDriverGetTraceInitiator, sceAgcDriverGetWorkloadStreamInfo, sceAgcDriverIDHSSubmit, sceAgcDriverModuleRegistration, sceAgcDriverNotifyDefaultStates, sceAgcDriverPassInfoDownward, sceAgcDriverPatchClearState, sceAgcDriverReleaseComputeQueue, sceAgcDriverSetFlip, sceAgcDriverSetWorkloadComplete, sceAgcDriverSetWorkloadsActive, sceAgcDriverSetupRegisterShadow, sceAgcDriverSuspendPointSubmit, sceAgcDriverSysEnableSubmitDone45Exception, sceAgcDriverSysGetClientNumber, sceAgcDriverSysIsGameClosed, sceAgcDriverSysSubmitFlipHandleProxy, sceAgcDriverTmpInitIdhs, sceAgcDriverUserDataImmediateWrite, sceAgcDriverUserDataWritePacket, sceAgcDriverUserDataWritePopMarker, sceAgcDriverUserDataWritePushMarker, sceAgcDriverUserDataWriteSetMarker

How the functions were chosen: every function SharpProspero binds on the PS5, minus every NID that main or any pull request head (open or closed, 2,085 checked) already defines, and minus #2265, #2266, #2269 and #2270. Placement follows the existing code: a library's Unimplemented.cpp when it has one, otherwise the file with its closest-named siblings. Names that clash with host C library functions (fstat, pwrite, kill, ...) use the _nid_postfix suffix. In files that #2265 to #2270 also touch, the stubs go at the top of the extern "C" block so the pull requests merge in any order.

Tested

Linux (Ubuntu 24.04, GCC 13.3), full build with BUILD_TESTING=ON, with this branch merged together with the other eight pull requests of this set and #2265, #2266, #2269 and #2270 (all 13 merge without conflicts). ninja libs builds and NID-patches every library, including the new ones; patched_libraries, progress_report, strict_nid_filter, nid_patcher_dynamic_strings, nid_patcher_symbol_versions, guest_http, guest_http2 and guest_http_response_header pass. readelf --dyn-syms on the patched .prx files shows every new function exported under its NID. tools/check_conventions.py --base origin/main passes. No title or homebrew run: these are throwing stubs, so they only change which imports bind at startup.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4803490677 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2384). Originally posted by [brycebrower2008](https://github.com/brycebrower2008) on 2026-10-09T17:04:28Z. --- ### What Declares 44 exports that the PS5 modules have and no library defined, as throwing stubs. Each signature comes from [SharpProspero](https://github.com/SvenGDK/SharpProspero/tree/main/src/SharpProspero/Interop)'s PS5 bindings (its `LibraryImport` declarations), so they are PS5 signatures rather than PS4 ones. Structure arguments are passed as untyped pointers. TechnicalDebt lists the functions and the source. - libSceAgc (7): `sceAgcAcbAtomicGds`, `sceAgcCbMemSemaphore`, `sceAgcDcbAtomicGds`, `sceAgcGetDataPacketPayloadAddress`, `sceAgcGetFusedShaderSize`, `sceAgcSuspendPointAndCheckStatus`, `sceAgcUpdateInterpolantMapping` - libSceAgcDriver (37): `sceAgcDriverAcquireComputeQueue`, `sceAgcDriverCreateQueue`, `sceAgcDriverCwsrResumeAcq`, `sceAgcDriverCwsrSuspendAcq`, `sceAgcDriverDebugHardwareStatus`, `sceAgcDriverDestroyQueue`, `sceAgcDriverGetGpuRefClks`, `sceAgcDriverGetHsOffchipParam`, `sceAgcDriverGetRegShadowInfo`, `sceAgcDriverGetRegShadowInfoAgr`, `sceAgcDriverGetReservedDmemForAgc`, `sceAgcDriverGetSetFlipPacketSizeInDwords`, `sceAgcDriverGetSetWorkloadCompletePacketSize`, `sceAgcDriverGetSetWorkloadsActivePacketSize`, `sceAgcDriverGetTraceInitiator`, `sceAgcDriverGetWorkloadStreamInfo`, `sceAgcDriverIDHSSubmit`, `sceAgcDriverModuleRegistration`, `sceAgcDriverNotifyDefaultStates`, `sceAgcDriverPassInfoDownward`, `sceAgcDriverPatchClearState`, `sceAgcDriverReleaseComputeQueue`, `sceAgcDriverSetFlip`, `sceAgcDriverSetWorkloadComplete`, `sceAgcDriverSetWorkloadsActive`, `sceAgcDriverSetupRegisterShadow`, `sceAgcDriverSuspendPointSubmit`, `sceAgcDriverSysEnableSubmitDone45Exception`, `sceAgcDriverSysGetClientNumber`, `sceAgcDriverSysIsGameClosed`, `sceAgcDriverSysSubmitFlipHandleProxy`, `sceAgcDriverTmpInitIdhs`, `sceAgcDriverUserDataImmediateWrite`, `sceAgcDriverUserDataWritePacket`, `sceAgcDriverUserDataWritePopMarker`, `sceAgcDriverUserDataWritePushMarker`, `sceAgcDriverUserDataWriteSetMarker` How the functions were chosen: every function SharpProspero binds on the PS5, minus every NID that `main` or any pull request head (open or closed, 2,085 checked) already defines, and minus #2265, #2266, #2269 and #2270. Placement follows the existing code: a library's `Unimplemented.cpp` when it has one, otherwise the file with its closest-named siblings. Names that clash with host C library functions (`fstat`, `pwrite`, `kill`, ...) use the `_nid_postfix` suffix. In files that #2265 to #2270 also touch, the stubs go at the top of the `extern "C"` block so the pull requests merge in any order. ### Tested Linux (Ubuntu 24.04, GCC 13.3), full build with `BUILD_TESTING=ON`, with this branch merged together with the other eight pull requests of this set and #2265, #2266, #2269 and #2270 (all 13 merge without conflicts). `ninja libs` builds and NID-patches every library, including the new ones; `patched_libraries`, `progress_report`, `strict_nid_filter`, `nid_patcher_dynamic_strings`, `nid_patcher_symbol_versions`, `guest_http`, `guest_http2` and `guest_http_response_header` pass. `readelf --dyn-syms` on the patched `.prx` files shows every new function exported under its NID. `tools/check_conventions.py --base origin/main` passes. No title or homebrew run: these are throwing stubs, so they only change which imports bind at startup. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-09 17:04:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T17:04:37Z.


Спасибо за ваш интерес к проекту! Извините, сейчас накопилось слишком много открытых PR. Пока мы разбираемся с ними, приём PR от новых участников - авторов, чьих коммитов ещё нет в main, - временно приостановлен. Поэтому этот PR автоматически закрыт. Это не оценка качества ваших изменений.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6085540744 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2384#issuecomment-6085540744). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-09T17:04:37Z. --- Спасибо за ваш интерес к проекту! Извините, сейчас накопилось слишком много открытых PR. Пока мы разбираемся с ними, приём PR от новых участников - авторов, чьих коммитов ещё нет в `main`, - временно приостановлен. Поэтому этот PR автоматически закрыт. Это не оценка качества ваших изменений.
boykopovar commented 2026-10-09 17:17:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by boykopovar on 2026-10-09T17:17:54Z.


Thank you for your interest in the project! Sorry, there are currently too many open PRs. While we sort them out, accepting PRs from new contributors—authors whose commits haven't yet made it into main—is temporarily suspended. Therefore, this PR is automatically closed. This is not a quality review of your changes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6085747171 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2384#issuecomment-6085747171). Originally posted by [boykopovar](https://github.com/boykopovar) on 2026-10-09T17:17:54Z. --- Thank you for your interest in the project! Sorry, there are currently too many open PRs. While we sort them out, accepting PRs from new contributors—authors whose commits haven't yet made it into main—is temporarily suspended. Therefore, this PR is automatically closed. This is not a quality review of your changes.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!2384
No description provided.