feat(agc-driver): report GPU capture as unavailable #2851
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2851"
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 alfalfa-star on 2026-10-10T16:36:59Z.
What
Implements the four libSceAgcDriver capture exports that still called
NotImplemented_nid_no_patch:sceAgcDriverRequestCaptureStart,sceAgcDriverRequestCaptureStop,sceAgcDriverTriggerCapturetake no arguments and returnDEBUG_UNAVAILABLE(0x8A6C1000), since no capture tool is attached. OpenAGC'sagcdriver.hand SharpProspero'sSceAgcDriver.csboth declareRequestCaptureStartwithout arguments.sceAgcDriverIsCaptureInProgressalready returns false.sceAgcDriverGetShaderDebuggingStatusreturns 1.Sources: OpenAGC returns the same code for the capture calls; whether a console with no capture attached does the same is unconfirmed. The value 1 is the constant OpenAGC reads from firmware 5.50 (
rJUyMrDdxJgat 0x6740); what it means is unknown. Both are recorded in TechnicalDebt.Tested
Linux (Arch, GCC), Release build, on
main57f96fd2:guest_agc_driver_resources: checks the three capture calls' error code, that no capture is reported in progress afterwards, and the debugging status value. It aborts without this change (exit 134).ctestonmain90c152e8merged with this branch, #2848 and #2853: 813/813 passed (4 skipped for lack of a display).tools/check_conventions.py --base upstream/mainpassed.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)DEBUG_UNAVAILABLEconstant toStatus.cppand touches the same test as #2849, so whichever merges second needs a rebase🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T16:38:40Z.
Progress report (
66d577d→ae327c4)📈 System libraries: 85.56% (+0.12%, +4 implemented functions)
✅ 4 implemented
sceAgcDriverGetShaderDebuggingStatussceAgcDriverRequestCaptureStartsceAgcDriverRequestCaptureStopsceAgcDriverTriggerCaptureImported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-10T17:03:35Z.
The one failing job,
write-watch (macos-15-intel), is the samewrite_watch_threadstimeout as on #2699. The three repeats took 16.8 s, 23.3 s and then hit the 30 s limit. This PR only toucheslibSceAgcDriverandGuestAgcDriverResources.cpp, which that job does not build. In the last 100 Build runs this job failed 9 times, once onmain. Could someone with rights rerun it?Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-10T19:18:04Z.
Same as #2849: which title calls these? For
sceAgcDriverGetShaderDebuggingStatusthe title would also show what the 1 means to it.Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-10T23:08:09Z.
Windows validation of the current head
69be6331merged ontomain91b13413.Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
BUILD_TESTING=ON, full build including thelibstarget, NVIDIA RTX 4070.ctest -j8 -E "^agc_driver_|^video_out_flip": 478/479, includingguest_agc_driver_resources. The one failure was the GPU testagc_driverwith a heap-corruption exit under-j8load; it passes 2/2 when run alone on the same binaries, so I count it as load-related and unrelated to this change.agc_driver_*) were not run; two of them fail on unchangedmainon this host for unrelated reasons.Validation run with Claude Code assistance.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T00:08:57Z.
Review: CHANGES_REQUESTED
Thanks for the Windows run and the clear TechnicalDebt entry. Before this can go in:
sceAgcDriverGetShaderDebuggingStatus, what the 1 means to it) and that is still unanswered. Please add the title ID and the log line where it stops onmain.core/libs/prx/libSceAgcDriver/State/src/Status.cpp:26,30,34,38: the returned values (0x8A6C1000for the capture calls,1for the debugging status) come from one source (OpenAGC) and are unconfirmed on a console, as the PR itself says. Unverified codes should keep throwing until a title or a second source confirms them.Status.cpp:24:sceAgcDriverRequestCaptureStarttakesconst char*here, but SharpProspero declares it without arguments (Interop/Agc/SceAgcDriver.cs:206). Please say which one the signature follows and why.The red
write-watch (macos-15-intel)job is the knownwrite_watch_threadsflake, not this change. Happy to look again once a title and a confirmed value are in.Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-11T09:45:18Z.
No title I can run reaches the capture exports on current
main(90c152e8):color views of several array slices are unsupported(#2102). My local test branch gets past that and other stops; there it played 385 s with scripted input, through New Game and a save, without calling the capture exports.not implementedline before it.I'm converting this to a draft until a title stops at it. Then I'll post the title ID and the log line and mark it ready.
Changed:
sceAgcDriverRequestCaptureStartnow takes no arguments. OpenAGC'sagcdriver.hand SharpProspero'sSceAgcDriver.csboth declare it that way; theconst char*came frommain's earlier stub. The test calls it without arguments.main's conventions check now requires.On the values: I found no second source. sharpemu, REmu and shadPS4 only list the names, and prosper has no golden for them. They stay as in the PR until a title reaching them shows how it treats the result.
Tested: Linux, GCC, Release, RX 9070 XT (RADV): full
ctest813/813 (4video_out_flip_*skipped) onmain90c152e8merged with this branch, #2848 and #2853;tools/check_conventions.pypasses.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T09:45:45Z.
Review: CHANGES_REQUESTED
Thanks for the signature fix and the TechnicalDebt entry; both look right, and
guest_agc_driver_resourcesfails without the change and passes with it. Two points are still open:sceAgcDriverRequestCaptureStart/Stop/TriggerCaptureandsceAgcDriverGetShaderDebuggingStatus, and what the 1 means to it) is unanswered. Please add the title ID and the call site or log line where it stops onmain; Astro's Playroom does not import any of them, so we cannot check it from our side.core/libs/prx/libSceAgcDriver/State/src/Status.cpp:24,28,32,36:0x8A6C1000and the constant1come from a single source (OpenAGC) and are unconfirmed on a console. Wheremainthrew, returning a plausible unverified value is not exact-or-throw. Either a second source or a title's observed behaviour, or keep these throwing.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T23:58:08Z.
Same as #2849: closing until a title reaches these; the title will also settle the return values.
You're welcome to reopen this if you think it was closed by mistake or the situation changes.
Pull request closed