feat(libSceAgcDriver): return the retail errors of the unavailable driver calls #13471
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13471"
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 BunnyFl on 2026-10-30T16:18:32Z.
What
Seven libSceAgcDriver exports in
Export.cppstill throw. In firmware 13.42's libSceAgcDriver.sprx (read from disassembly, not measured on a console), they print a message and return a fixed error, the same waysceAgcDriverSetTargetRingForDiagdoes, whichUnimplemented.cppalready implements:sceAgcDriverAcquireRazorACQ,sceAgcDriverGetPaDebugInterfaceVersion,sceAgcDriverSetHsOffchipParamDirect,sceAgcDriverSubmitMultiCommandBuffersDirect,sceAgcDriverSubmitToRazorACQ,sceAgcDriverSuspendPointSubmitDirect0x8A6D0001, without reading any argumentsceAgcDriverModuleRegistration0x8A6D0003They move from
Export.cpptoUnimplemented.cppand return these codes. As forsceAgcDriverSetTargetRingForDiag, the log messages are not reproduced; its debt entry now covers all eight, and the seven names leave theExport.cppentries that list throwing stubs. The progress report lists the seven as behaviourally empty. The firmware's own bodies are a fixed return, so that is the expected classification, not a placeholder.Tested
Windows 11, WinLibs GCC 15.2, Release. No title was run.
agc_driver_unsupported_diagnosticsnow checks the return codes of the seven. On this branch (basemain9f748f4d8e) it passes 3/3. With the seven made to throw asmain's stubs do, it fails 3/3. No other code or test in the repository calls them.VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1andctest -V, onmainand on this branch, same machine and GPU:agc_driver_unsupported_diagnosticspasses on both, neither log reports the layer missing, and neither has aVUID-error. The test creates no Vulkan device, so the layer had nothing to check.check_conventions.py --base upstream/mainpasses.pr_overlap.py: #11104 changes the same lines ofUnsupportedDiagnostics.cpp; it lists these exports to check they resolve by name and does not implement them. The 52 PRs it could not compare (they conflict withmain) share the debt file, but none of their diffs names these seven.progress.py --compare: +7 implemented functions in libSceAgcDriver, all seven behaviourally empty as explained above.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)UnsupportedDiagnostics.cppand is older, so this PR lands second and I will rebase it once #11104 merges)mainand this branch, but they create no Vulkan device, so they exercise no GPU work (agc_driver_unsupported_diagnostics)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T16:24:49Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
The constant return implementations match the PR's stated behavior, but the test change conflicts with open PR #11104 and the required landing order is not recorded.
What I ran
Reviewed head
d34913e943783e0166c8512b7771a42954403f18against PR base/current main9304896d89f070f65b8f38bd3a8024d5c19f8fe1. The branch merge preview was clean (tree5ef694b110e8da4508a6c842cb449a607f7b3619). A pairwise preview with #11104 head9e5738a59f6a5c209015b6a964aac0786348dcbdproduced a content conflict inUnsupportedDiagnostics.cpp. Environment: Linux x86_64, Python 3.11.2, GCC 12.2.0.Results
core/libs/prx/libSceAgcDriver/tests/UnsupportedDiagnostics.cppUnedited output from direct checks
Negative control
Not run locally because the regression test requires a built target. The PR author reports a Windows test and a negative control; I did not independently reproduce them.
Findings
Blocking
#11104 adds a different block of checks to the same
UnsupportedDiagnostics.cpptest. The pairwise merge preview confirms a content conflict. The contribution rules say authors should agree which overlapping change lands first and record the dependency on the branch that lands second. Please coordinate the order with #11104's author and update the applicable checklist before merge.Non-blocking
The PR describes firmware-disassembly evidence, but I did not independently inspect that disassembly. The implementation does not reproduce the reported log messages; the PR documents that omission.
Sources
Not verified
No local build or C++ test was run. Hosted checks were queued at final refresh. The Windows focused Vulkan test and firmware behavior in the description are author-reported, not independently verified.
To get this to a good state
Agree the test-file landing order with #11104's author and record the dependency on the branch that lands second. I will rerun the same relevant checks on the updated head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T17:03:46Z.
Review: APPROVED
Re-checked — new head, looks good
The updated description records
#11104as the prerequisite, and the debt entry now identifies the firmware-13.42 evidence and its limits.Reviewed head
071f80c6efb814cb39c34109360cb25188ef176eagainst PR base9304896d89f070f65b8f38bd3a8024d5c19f8fe1; the current-main preview againsta026562629da7bcc7af781639a11ab0647a524ddis clean. Diff, conventions, and stack checks passed.#11104remains open at9e5738a59f6a5c209015b6a964aac0786348dcbd; its head is not included here and the branches share the test and debt files. The author has recorded that this PR lands second and will rebase after#11104merges; I have not asked for an early rebase. Approval applies to this exact head, and the rebased head will need a fresh check.The aggregate precheck's ABI and test-quality helpers were unavailable in its isolated snapshot. The author reports the focused Windows tests and validation-layer checks pass; the code and test files are unchanged from the previously reviewed implementation. I did not build or run C++ tests or reproduce firmware results locally. Hosted checks were queued at final refresh.
Source: updated firmware evidence note at this head.