feat(agc): accept disabled shader instrumentation #2850
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2850"
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:56Z.
What
Implements the two libSceAgc shader instrumentation exports that still called
NotImplemented_nid_no_patch:sceAgcSetShaderInstrumentation(flags)accepts 0 and throws for any other value, because what the flags change is unknown.sceAgcGetShaderInstrumentation()returns 0.Source: OpenAGC describes a title's bundled module storing the flags and the getter returning them; it accepts any value. Accepting only 0 is this PR's choice, not a measured behaviour: what non-zero flags change on a console is unknown, so they throw rather than being stored without effect. Recorded in TechnicalDebt under Silent stubs.
Tested
Linux (Arch, GCC), Release build:
agc_platform: newtestShaderInstrumentationchecks the default, that disabling succeeds, and that non-zero flags throw and are not kept.ctestonmain90c152e8merged with this branch, #2847, #2849 and #2852: 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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T16:38:32Z.
Progress report (
097f4e2→095dcee)📈 System libraries: 85.47% (+0.03%, +1 implemented functions)
✅ 1 implemented
sceAgcGetShaderInstrumentationImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-10T19:18:03Z.
Which title calls
sceAgcSetShaderInstrumentationon main? As it stands nothing is implemented beyond accepting 0, so without a title stopping at it I'd close it.Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-10T22:58:04Z.
Tried to validate the current head
e90ae6f1on Windows: it no longer merges withmain(262c0316and later).git merge mainconflicts incore/libs/prx/libSceAgc/Unimplemented.cpp(both sides remove neighbouring stubs), and GitHub reports the branch as conflicting. A rebase is needed before it can be built as the merge commit; happy to rerun after that.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T00:08:59Z.
Review: CHANGES_REQUESTED
Thanks for the PR. Two things before this can go in:
sceAgcSetShaderInstrumentationon main and that is still unanswered. Please name the title (PPSA id) and where it stops, or attach a log. Astro's Playroom doesn't import either export, so we have no evidence of use. Without a caller this only moves the progress metric.mainincore/libs/prx/libSceAgc/Unimplemented.cpp(as @screamm also found). Please rebase and rerun the tests.Also, the cited OpenAGC code stores the flags and returns them from the getter; it doesn't throw on non-zero values. State in the PR and TechnicalDebt that "accept only 0" is your choice and why, since no PS5 measurement backs it.
If no title needs it, we'll close it; feel free to reopen later with a caller.
Imported from boykopovar/AnyPS5. Originally posted by Mouhand-Kaddo on 2026-10-11T07:25:51Z.
Additional platform validation of standalone PR head
e90ae6f15b3bd0a0920a2af73de12764eaf86301(2026-10-11):Windows: passed — Windows 11, WinLibs GCC 15.2.0 UCRT/POSIX/SEH r7; CMake 4.3.1 / Ninja; Release,
BUILD_TESTING=ON.1 checks, 0 failures, 0 CTest skips. Built the selected targets and dependencies; this is focused validation, not a full build or full-suite run.
Checks:
agc_platform_tests.Command after building:
ctest --test-dir <build> --verbose --no-tests=error --timeout 30 -R "^agc_platform_tests$".This scope checks CPU-side behavior; no GPU execution result is claimed.
No title/gameplay validation. These results cover the standalone head, not a merge with current main.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T09:40:38Z.
Review: CHANGES_REQUESTED
Thanks for the rebase and the TechnicalDebt wording; build and
agc_platform_testspass here, and the new test fails without the change.One point is still open: @oneandonlydean's question. Which title (PPSA id) calls
sceAgcSetShaderInstrumentation, and where does it stop? Astro's Playroom doesn't import either export and the only source is OpenAGC, so without a caller this only moves the progress metric. Please name the title or attach a log; otherwise we'll close it (feel free to reopen with a caller).Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-11T09:45:15Z.
No title I can run reaches
sceAgcSetShaderInstrumentationon currentmain(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 callingsceAgcSetShaderInstrumentation.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 (rebased onto
main, which resolves theUnimplemented.cppconflict):main's conventions check now requires for the getter.Tested: Linux, GCC, Release, RX 9070 XT (RADV): full
ctest813/813 (4video_out_flip_*skipped) onmain90c152e8merged with this branch, #2847, #2849 and #2852;tools/check_conventions.pypasses.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T02:40:11Z.
Closing: no title is known to reach this. With the queue at 700+ open PRs, please hold off on new PRs that don't name a title needing the change until it's down. If a title stops on this on current main, reopen with the title ID and the log line.
Pull request closed