Repository navigation
feat(agc): accept disabled shader instrumentation - #2850
alfalfa-star wants to merge 3 commits into
Conversation
|
Which title calls |
|
Tried to validate the current head |
adriadam10
left a comment
There was a problem hiding this comment.
Thanks for the PR. Two things before this can go in:
- @oneandonlydean asked which title calls
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. - The branch conflicts with
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.
|
Additional platform validation of standalone PR head Windows: passed — Windows 11, WinLibs GCC 15.2.0 UCRT/POSIX/SEH r7; CMake 4.3.1 / Ninja; Release, 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: Command after building: 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. |
sceAgcSetShaderInstrumentation accepts flags 0 and throws for others, as what the flags change is unknown; sceAgcGetShaderInstrumentation returns 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…a choice OpenAGC stores any flags and returns them from the getter. No PS5 measurement shows what non-zero flags do, so throwing for them is this project's choice; TechnicalDebt now says so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
e90ae6f to
b5619b8
Compare
Main's conventions check now requires a silent stub to be listed in the Silent stubs section; the getter returns 0 without reading any state. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
adriadam10
left a comment
There was a problem hiding this comment.
Thanks for the rebase and the TechnicalDebt wording; build and agc_platform_tests pass 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).
|
No title I can run reaches
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
Tested: Linux, GCC, Release, RX 9070 XT (RADV): full AI-assisted: yes (Claude Code) |
…l bridge (#373) * Apply upstream open AGC PRs for the remaining stubbed imports Ports upstream boykopovar/AnyPS5 open PRs into core/libs/prx (libs and their tests only; docs excluded): - boykopovar#2847 DCB/ACB marker span builders - boykopovar#2848 occlusion query size queries - boykopovar#2849 submit validation reported as unavailable - boykopovar#2850 disabled shader instrumentation accepted - boykopovar#2851 GPU capture reported as unavailable, shader debugging status - boykopovar#1060 sceAgcAcquireMemSetEngine Conflicts between the PRs (Unimplemented.cpp stubs and shared test files) were resolved by keeping every change from both sides. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Port libSceAgcDriver leaf imports and remaining libSceAgc rows to the Metal bridge Binds the 35 libSceAgcDriver imports and 17 libSceAgc imports through SceAgcImports without dereferencing guest pointers on the host: - Driver leaf exports (resource registration, capture, submit validation, equeue queries) run the upstream bodies through prx bridge descriptors (upstream-prx/AgcDriver.cpp); the 7-argument registrations read user data from the caller stack. - ACB flip and rendering wait emit the Metal driver packets, as the DCB rows do. - Marker spans, occlusion sizes, shader instrumentation, AcquireMemSetEngine and branch _0300 patchers reuse upstream encoders on host copies. - GetRegisterDefaults2(+Internal) publish the upstream tables in a guest window above the gate table; Create/UpdatePrimState run on host copies of the stage type and special registers. New CTest anyps5_cpu_agc_driver_leaf is in NATIVE_REQUIRED_TESTS. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
|
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. |
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.ctestonmain90c152e merged with this branch, feat(agc): implement the DCB and ACB marker span builders #2847, feat(agc-driver): report submit validation as unavailable #2849 and feat(npmanager): implement sceNpGetUserIdByAccountId #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