Repository navigation
feat(agc): capture graphics shader requests without address selectors - #14794
oneandonlydean merged 3 commits into
Conversation
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — no blocking findings
The opt-in capture path is connected to draw-stage materialization, preserves the existing address filter, and has focused registered tests; I found no source-level blocker.
What I ran
Reviewed head 4c8c5de4826433db6eac5f121cde2242de570acb against base f2d874c1fdccf781c0fa5d86619bb5dd8894b958; its merge preview against current main is clean. Environment: Linux x86-64, GCC 12.2.0, Python 3.11.2. I reviewed all changed hunks and test registration. I did not build or run the GPU tests; the runs in the PR description are author-reported.
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14794
git diff --check f2d874c1fdccf781c0fa5d86619bb5dd8894b958...4c8c5de4826433db6eac5f121cde2242de570acb
git merge-tree --write-tree refs/review/12478/overlap refs/review/14794/currentResults
| Check | Result | Note |
|---|---|---|
| Diff and conventions | passed | No whitespace or convention findings. |
| Focused test review | passed | Three graphics-dump modes are registered in CTest. |
| Main merge preview | passed | Clean against current main. |
| Hosted CI | not run | Six checks are queued for this head. |
| GPU tests | not run | The author reports 5/5 passing with validation enabled; I did not reproduce them. |
| Combined preview with #12478 | failed | The two open PR heads conflict textually in Draw.cpp; their current main-based previews are clean. |
Raw check output
git diff --check exited successfully and printed nothing. The precheck convention result was:
All conventions checks passed.
The precheck could not launch the workspace-only ABI and test-quality helpers from its isolated checkout (tools/pr_abi_audit.py and tools/pr_test_quality.py are absent from this PR tree). Its diff, convention and main merge-preview checks passed; it reported the helper launch errors separately.
The pairwise merge preview reported:
CONFLICT (content): Merge conflict in core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
The PR’s CTest registrations set ANYPS5_NO_SHADER_CACHE=1; graphics and filtered modes also set APS5_DUMP_GRAPHICS_SHADERS=1. The separate disabled mode does not set that option.
Negative control
Not run locally: the new assertions require a compiled Vulkan test executable. The PR reports that both enabled-capture tests fail on main because requests are absent and pass on this head; I did not reproduce that control.
Findings
Blocking
None found in the reviewed changes.
Non-blocking
- If #12478 merges first, its
!bypassedguard conflicts with this PR’s!dumpGraphicsguard on the sameDraw.cppcondition. The PR description already identifies the overlap; when resolving it, retain both conditions. No update is needed while both PRs remain based on the samemain.
Sources
dumpGraphicsdisables draw-entry reuse at this head- Captured requests pass through the existing
dumpRequestpath - Graphics, filtered and disabled CTest registrations
- The other PR’s
!bypassedguard
Not verified
I did not compile or run the C++/Vulkan tests, verify the reported request archive independently, or run on other GPUs or a console. Hosted checks remain queued.
To get this to a good state
No change is requested for this head. Once the hosted checks finish, I can recheck them; if #12478 lands first, I will verify that the combined guard retains both conditions.
|
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.
Some 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.
|
✅ NVIDIA GPU test: passedPR head
Unstable on main (2, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (4, not counted against this PR)Validation IDs already present on main (5 IDs in 484 tests)Skipped (46)ReproduceAutomated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
✅ AMD GPU test: passedPR head
Unstable on main (4, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (9, not counted against this PR)Validated but not compared (1, not in the main baseline's validation pass)Validation IDs already present on main (5 IDs in 484 tests)Skipped (55)ReproduceAutomated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
|
Windows + NVIDIA result for head Host: Windows 11 26300, Intel i7-12700K, NVIDIA GeForce RTX 2070 SUPER, WinLibs GCC 15.2.0 (x86_64-ucrt-posix-seh, r6), Release, Same machine, both trees, with
No new validation errors. The new AI-assisted: yes (Claude Code), the runs and the numbers above are from this machine. |
|
Addressed the timestamp comparison in 6b7d6d8b195b. Production dump code is unchanged. The guard now records the actual backdated filesystem timestamp and compares the later draw against that, with an additional age check. On the available Windows machine with GCC15.2 UCRT r7, a standalone probe reproduces requested/readback mismatch32/32, while readback values stay stable32/32. Forced identical-content rewrites are still detected32/32. The revised actual draw fixture passes all four Linux/RADV invocations with0skip/0VUID and validation loaded (frozen exact-parent production libraries). Full evidence. @maskym Please rerun AI-assisted: yes (Codex). |
✅ NVIDIA GPU test: passedPR head
Failing on main too (3, not counted against this PR)Validation IDs already present on main (4 IDs in 510 tests)Skipped (45)ReproduceAutomated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
|
Actual corrected Windows fixture qualification at exact public head Built the real All 23,104 materialized repository/provider blobs match the prescribed Git inputs before and after (CRLF normalization recorded); exact optional unmaterialized upstream test/app gitlinks are listed separately. Source, test executable and production-module hashes remain unchanged across execution. The first attempt stopped before compilation/tests at a PowerShell JSON-array classification check; that harness-only failure is preserved separately and excluded. Exact source/provider/target proofs, before/after hashes, raw logs/JUnit and terminal cleanup receipt, SHA-256 This closes the missing actual Windows execution of the corrected fixture on this AMD host. The earlier parent-head Windows/NVIDIA failures and hosted head's skipped dump groups retain their stated pins/scope. No NVIDIA retest, broad AGC suite/new paired-main baseline, title, performance, console or full-suite claim. AI-assisted: yes (Sol6.1medium). @MarcZX10, please re-review this scoped corrected-fixture evidence. Upstream full CI remains separate. |
✅ AMD GPU test: passedPR head
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (8, not counted against this PR)Validated but not compared (1, not in the main baseline's validation pass)Validation IDs already present on main (4 IDs in 528 tests)Skipped (57)ReproduceAutomated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
|
The failed Windows job has a concrete test-runner setup failure: The runner matched a selected guest executable passed to the CMake wrapper and attributed the wrapper to that dependency. Proposed fix: #15375 resolves the actual owner, keeps the wrapper selected when it references a selected guest test, and builds the additional owner target before CTest. A regression using this job's command shape requires retaining the wrapper and building its executable; it fails on unmodified main and passes with the fix. Linux Python suites: 25 guest-runner cases pass, 27 host-only cases pass, 49 selector cases pass with three existing skips. No new Windows runner execution yet; this is not a claim that the hosted job has passed. AI-assisted: yes (Codex). Update: the Windows CI job for #15375 completed 3,032 selected CTest cases: 2,073 passed, 959 skipped and zero failed. |
|
Merged pinned main Linux Release, GCC 16.2.1, bundled SPIRV-Tools: rebuilt The shared main public-header audit remains red for the five missing WebKit declarations; separate #16010 has the verified correction and awaits maintainer merge/rerun. No WebKit change was added to this topic, and no all-CI-green or new Windows/GPU/title qualification is claimed. Historical runtime reports retain their original pins. Downloaded and hash-verified evidence (SHA-256 AI-assisted: yes (Codex). |
✅ NVIDIA GPU test: passedPR head
Unstable on main (3, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (3, not counted against this PR)Passed on retry (1, failed in the parallel run, passed when re-run with a 360 s timeout; not counted against this PR)Validation IDs already present on main (9 IDs in 591 tests)Skipped (54)ReproduceAutomated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
What
Adds opt-in
APS5_DUMP_GRAPHICS_SHADERS=1to save graphics-stage requests during draw capture, using the existingshader_<address>.reqserialization, address filter and once-per-process deduplication. Existing draw-entry reuse and asynchronous finishing are disabled only while this capture option is enabled, matching the targeted diagnostic options. Normal runs keep their existing behavior.While profiling Overcooked AYCE (PPSA01528), the dominant fragment shader took roughly 11 ms per frame, but its guest code address changed between launches. A target address from the previous run therefore captured nothing. This option captures requests without needing a previous launch's addresses;
APS5_DUMP_SHADERScan still narrow them if addresses are already known. It is a developer diagnostic, not a performance optimization.Overlap:
tools/pr_overlap.py --branchchecked 1,960 open PRs. #12478 independently changes the sameuseDrawEntriescondition: preserve both!bypassedand!dumpGraphicswhen combining them. No dependency is required. The tool could not integrate 47 older branches already conflicting with main; shared-file diffs were retained and screened for graphics-dump changes. Existing dump code in the heap/refactor stacks remains the address-targeted/failed-request path; none adds this all-graphics option. These combined stacks are not qualified here.Tested
Main integration (2026-11-05): exact merge head
e88fd6e41f265a30336bc3387de0905968690b83, parents previous public head6b7d6d8b195b40c7f34e634cdc8778d81e13963fand main6d173c1a19788ff69d43b3d0ca62833e312ef939. The branch push was a normal fast-forward, retaining all prior history. Stable topic patch ID and every authored added/deleted line are unchanged. Main supplies the already-merged #15375 wrapper-owner build-selection fix and #15855 sampled-depth allocation call correction; all 26 independent dependency clones match prescribed gitlinks.Linux Release, GCC 16.2.1, bundled SPIRV-Tools: rebuilt
libSceAgcDriverand the realagc_driver_draw_cache_reuse_testsfixture. Both the fixture and its CMake registrations are byte-identical to the previous public head. The generated CMake graph resolvesavplayer_http_patched_modulesto its own wrapper target, not a guest client. The 25 owner-selection and 33 target-resolution fixture tests pass, as do conventions and whitespace checks. No GPU fixture was executed for this main integration.Shared main check still failing: the public-header audit on pinned main and this unchanged header tree reports five missing
WKSecurityOrigindeclarations. Separate repair #16010 restores them and passes its own full audit and targeted GCC/MinGW header checks. It is awaiting maintainer merge/rerun; its WebKit change is not included here. This report does not claim all required CI is green.Source/patch continuity, provider pins, actual builds, CPU/helper logs, generated owner resolution and retained check failure, SHA-256
ac1a304b209e3c15d2564b490ca286f95fa19ddd151a840ae322ad232574ac30; downloaded bytes and all 33 manifest files verified. The archive also pins the existing shared-fix Windows receipts to their own sources. No new final-head Windows, GPU, title, performance or full-suite result is claimed.Historical qualification (original source pins):
Test-precision follow-up
6b7d6d8b195b(production source unchanged from4c8c5de482): the repeated-request guard now compares with the timestamp read back from the filesystem after setting the sentinel, and checks that it is at least 30 seconds old. This preserves rewrite detection on filesystems/APIs that round the requested timestamp.4c8c5de482production SDK passes four invocations (default draw-cache, dump disabled, all graphics, filtered). 0 skipped invocations,0 VUIDs,actual validation insertion in two instances per invocation; executable/library hashes and loader bindings unchanged.4c8c5de482found the two enabled dump tests failing the timestamp comparison. Actual corrected-head Windows qualification now passes the default DrawCacheReuse group plus the three dump groups three times each (12/12, zero skips/VUIDs), with actual Khronos instance/device insertion on Windows 11/RX 6700 XT. This is not a NVIDIA retest, new paired-main baseline, title/speed or full-suite claim.Timestamp probe, patch, exact build/run commands and Linux fixture logs, SHA-256
e6dd4467d0db634031b3e91f45f6807a8d7ad290f3b5fc1cffb4890f2f2421f6.Linux, AMD Radeon RX 6650 XT, RADV Mesa 26.2.6, kernel 7.2.11, Khronos validation 1.4.363.
Same focused CTest selection on main
f2d874c1fdccand main plus this change, withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1, and actualVK_LAYER_KHRONOS_validationinsertion:git diff --checkpass.Download synthetic test evidence, SHA-256
f959e02f9478df76ff7a7ed586a99b5d8b6721d5ba4d25d76aafe552cb0180ae; downloaded again and verified all 11 inner files. No proprietary game requests/assets are published.Native diagnostic: Overcooked AYCE PPSA01528 01.015.000 reached the first kitchen; 265s/310s compositor and X11 screenshots directly reviewed. Scheduled ordinary close, native/observer/harness exit 0 after 333.7s, 540 request files (8.53 MB), original inputs/saves and 799-file SDK bank unchanged, kernel import limit restored and no private game processes remain. The dominant fragment request passes both direct recompilation and prepared resource capture/materialization offline. Requests remain private. This run is not an FPS comparison because capture deliberately disables draw fast paths.
Independent reports on this head:
6b7d6d8b19merged ontomain1d91f29: 2,681 passed · 3 failed (0 new, 3 also fail on main) · 45 skipped (ANYPS5_REQUIRE_VULKAN=1); validation: ✅ no new validation IDs vs main (986 tests run on the GPU).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)