Skip to content

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

Closed
brycebrower2008 wants to merge 1 commit into
boykopovar:mainfrom
brycebrower2008:feat/agc-declare-ps5-bindings
Closed

brycebrower2008 wants to merge 1 commit into
boykopovar:mainfrom
brycebrower2008:feat/agc-declare-ps5-bindings

Conversation

@brycebrower2008

Copy link
Copy Markdown

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

The PS5 modules export these functions and SharpProspero's PS5 bindings
call them with known signatures, but no library defined them, so a title
importing any of them failed to bind. They are added as throwing stubs:

- libSceAgc: 7
- libSceAgcDriver: 37

Structure arguments are passed as untyped pointers. TechnicalDebt lists
the functions and the source of their signatures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DpG7ipD1K8Dzbwq8U9jyvX
@github-actions github-actions Bot added the intake paused Closed while PR intake is limited to authors with at least 10 PRs merged into main label Oct 9, 2026
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

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

@github-actions github-actions Bot closed this Oct 9, 2026
@boykopovar

Copy link
Copy Markdown
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

intake paused Closed while PR intake is limited to authors with at least 10 PRs merged into main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants