fix(agc): return the console results of the capture, shader instrumentation and occlusion query size calls #8296
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8296"
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 hypermoist on 2026-10-20T09:19:32Z.
What
Replaces seven
NotImplementedstubs with what the firmware does. The behaviour was read from the decryptedlibSceAgc.sprxandlibSceAgcDriver.sprx:sceAgcDriverRequestCaptureStartSAfhzJPcjukmov eax, 0x8a6c1000; ret0x8A6C1000sceAgcDriverRequestCaptureStopFOwvmNlFLjMsceAgcDriverTriggerCaptureXq5WmbwPTnQsceAgcSetShaderInstrumentationRTpj-tIlvZcediin a global, returns 0sceAgcGetShaderInstrumentationSwI6QxqwAC0sceAgcDcbBeginOcclusionQueryGetSizems1xVoZ-Vwctype == 1 ? 0x120 : type == 0 ? 0x10 : 0sceAgcDcbEndOcclusionQueryGetSizeP1CugZ99Uzcmov eax, 0x10; ret0x8A6C1000is the code the driver already returns from its other unavailable debug calls (DEBUG_UNAVAILABLEinlibSceAgcDriver/Unimplemented.cpp).The firmware's
sceAgcGetShaderInstrumentationalso ORs in bit 0 and bit 31 from two developer registry keys (sceRegMgrNonSysGetInt), but only when libSceAgc's module init succeeded in loading system module0x8000001f. With those keys unset, as on a retail console, the result is the stored flags. That is what this returns.PRAGMATA (#8005) and the Horizon Call of the Mountain thread (#6214) list the capture imports among the calls that throw. Neither title was run with this change.
Tested
Linux (CachyOS, GCC, Release):
agc_instrumentation_query_size_testschecks the flag round trip and all threeBeginOcclusionQueryGetSizecases plusEndOcclusionQueryGetSize;agc_end_of_shader_action_size_tests,agc_context_state_size_testsandagc_commandspass.No Vulkan path changes, so there was no validation-layer run.
pr_overlapshows no line conflicts. InlibSceAgc/CMakeLists.txt, #6747's hunks (lines 193–200 and 213–220) and #5021's (68–74) are clear of the new block at line 256; #6044 moves every test block. #1060 edits lines 15–26 oflibSceAgc/Unimplemented.cpp; this removes lines 43–51.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)🤖 Generated with Claude Code
https://claude.ai/code/session_01RbLgECLQ2bpDM7oe2urGZK
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-20T09:20:18Z.
Progress report (
6ef5a1c→b83fe20)📈 System libraries: 42.39% (+0.06%, +7 implemented functions)
✅ 7 implemented
sceAgcDcbBeginOcclusionQueryGetSizesceAgcDcbEndOcclusionQueryGetSizesceAgcGetShaderInstrumentationsceAgcSetShaderInstrumentationsceAgcDriverRequestCaptureStartsceAgcDriverRequestCaptureStopsceAgcDriverTriggerCapture⚪ 4 behaviourally empty (constant return or throw)
sceAgcDcbEndOcclusionQueryGetSizesceAgcDriverRequestCaptureStartsceAgcDriverRequestCaptureStopsceAgcDriverTriggerCaptureImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-20T09:32:00Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceAgc/Unimplemented.cppL43-52Some 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/prx/libSceAgc/Unimplemented.cppcore/libs/prx/libSceAgc/CMakeLists.txtcore/libs/prx/libSceAgc/CMakeLists.txtImported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-10-22T08:42:52Z.
Checked all seven against firmware 13.42's
libSceAgc.sprxandlibSceAgcDriver.sprx: they match, including thatsceAgcGetShaderInstrumentationonly adds its two extra bits from two registry values when those are set.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by hypermoist on 2026-10-22T09:10:19Z.
@BunnyFl thanks for confirming all seven against 13.42, including
sceAgcGetShaderInstrumentationadding its two extra bits only when the registry values are set.