perf(agc): join the imports of a buffer bound from the start of adjacent ranges #9652
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9652"
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 JJenkx on 2026-10-22T06:14:46Z.
What
joinedRunjoins the imports of a run of adjacent registered ranges under one of two conditions: every range in the run is larger than the 8 MiB import window, or the binding covers the run exactly (ca95f74097). In Echoes of the End (PPSA25636), a 24 MiB buffer meets neither. It is bound from the start of two or three adjacent ranges, at least one of them no larger than the window, and ends inside the last one. For example,0x32a5700000+0x1800000over the run0x32a5700000+0x1970000.No import covers that buffer, so
copyRegioncopies it on the CPU at every use and diffs it at write-back: 16,680 copies in one 480 s run (APS5_TRACE_BIGBUF).With this change, a binding that starts at the first crossed range also joins the ranges it crosses. The test
begin == run.basecovers the exact case too, becausecrossedRunstops at the range that holds the binding's last byte. ca95f74097's other two properties are kept:The last crossed range is imported whole, as the all-large branch already does for runs of large ranges.
Tested
importJoinTestsgains a case: a buffer bound from the first of three pieces into the last is imported once, over the three pieces. Linux, RX 6650 XT, RADV, one build directory:agc_driver_graphicsfails with "a buffer bound from the first of three pieces into the last was not imported over the pieces it crosses";17f5335562) and on the change, underANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layerwithctest -V:agc_driver_graphics,agc_sparse_*,agc_heap_mirror_*,agc_host_import_unmap,agc_host_import_retirementandagc_host_import_sparsepass on both (14 tests;agc_host_import_retirewas not built in this job). The loader adds the layer for the tests that create a real instance. The VUIDs are identical on both: one pre-existingVUID-vkCmdCopyBuffer-srcBuffer-00118inagc_sparse_run_import_copied.Echoes of the End (PPSA25636), Linux 7.2.9, RX 6650 XT, RADV (Mesa 26.2.4). The title needs open PRs to reach its scene (#8089, #4449, #8091, #8908). Both arms are the same integration tree, which also carries #9551, with and without this change.
APS5_PROFILE_DRAW=1 APS5_TRACE_BIGBUF=1:crossed run 0x32a8d10000+0x1970000 of 2 ranges, joined 2 ranges), and 4 MiB is read by CPU copies in the whole run;APS5_TRACE_FRAMES=560:100, same seed of shader caches and save state, one build directory, 480 s per arm, 0 amdgpu kernel events in either.4ff898faef):frames 560:100 from present 560: 100 presents, frame p50 958.0 / p90 1456.9 / p99 3292.4 / max 3292.4 ms, GPU busy 434.1 ms per presenta526b9bb47):frames 560:100 from present 560: 100 presents, frame p50 1034.0 / p90 1190.2 / p99 1658.5 / max 1658.5 ms, GPU busy 429.1 ms per presenttools/performance_compare.py: mean frame -1.4 %, p50 +7.9 %, p90 -18.3 %, p99 -49.6 %, GPU busy -1.1 %.Independent results from other reviewers:
main559f35d685with this PR's three commits cherry-picked, against the same tree without them. Same install, same input script, warm shader cache.copyRegion→GuestMemory::Read, mostly copies of about 1.8 MiB of0x30a0000000.559f35d685a9, 163.14 ms on2efa0e483cc1(19.85% lower). This is one unprofiled tester pair, not a local reproduction. The baseline reportsdirty: true; the tester attributes that to the test-only #8310 file, which we have not independently verified. No trace archives or digests were captured for this pair, so it does not replace the missing required performance-trace evidence.importJoinTestscase fails without the change and passes with it.Current head gate (2026-10-23)
Rebased on
main9d4fb4fb70(headd07ceb9494). The rebase is clean and the diff unchanged (3 files, +5/-2). Exact-head focused gate, same command as below, submodules synced per arm:9d4fb4fb709d4fb4fb70+c7df61bb74agc_driver_graphicsfails with "a buffer bound from the first of three pieces into the last was not imported over the pieces it crosses"d07ceb9494No test is skipped other than the two existing Windows guest-arena cases. Logs:
The trace archives, summaries and
trace_digest.pyreports for the performance pair are release assets on https://github.com/JJenkx/AnyPS5/releases/tag/pr9652-evidence; the earlier evidence branch is no longer needed. The performance pair itself is unchanged: an integration tree, measured before these rebases, with the limits stated below.Follow-up validation and retained evidence (2026-10-22, superseded by the current head gate above)
The rebased focused gate tested clean main
1a745ae38eagainst submitted head65dec56705f797f44fdc0e01446a3a7e75c3e6b5: 15/15 tests passed in each arm, with no skips and no VUIDs. Independently reading the retained logs confirms fourVK_LAYER_KHRONOS_validationinstance-layer insertions per arm. The test-only negative control failed onlyagc_driver_graphics, with the expected three-piece import assertion (14/15 passed). This identifies the tested main revision; main has continued advancing since that snapshot.The same command was used for all three arms on Linux 7.2.9, RX 6650 XT, RADV Mesa 26.2.4:
This supersedes the earlier focused gate on main
3ca07d086d5f44fbe3c00370e7f03953ab46ca1b/ headda7eeb2201062c864cf0762d071d229ee43ae993; those logs remain in the release as historical evidence.The retained release assets include both Echoes trace archives, both summary files, both
trace_digest.pyreports andperformance_compare.pyoutput. Both Echoes summaries reporttrace_dropped: true; detailed phase attribution is incomplete. These remain integration-relative observations with the prerequisites listed above, and do not establish a clean-current-main title speedup. The rebase adds focused correctness evidence; qualifying clean-main title-performance evidence remains outstanding.Summary lines
The
aps5-summary.jsonllines of the present-matched pair (APS5_TRACE_FRAMES=560:100). The traces and thetools/trace_digest.pyoutput are on https://github.com/JJenkx/AnyPS5/releases/tag/pr9652-evidence.Baseline (without this change):
With this change:
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 (no unimplemented path added).mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-22T06:15:01Z.
This pull request is labeled
perf, so it needs the summary line of a capture onmainand one with the change, from the same title, scene and machine, as the Performance report form asks. Please paste bothaps5-summary.jsonllines, attach the two traces and add the output oftools/trace_digest.py.Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-22T06:16:07Z.
The
aps5-summary.jsonllines of the present-matched pair (APS5_TRACE_FRAMES=560:100). The traces and thetools/trace_digest.pyoutput are on https://github.com/JJenkx/AnyPS5/tree/evidence/join-run-start.Baseline (without this change):
With this change:
Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-22T08:26:11Z.
Review: COMMENTED
Apple GPU / MoltenVK run, as a second vendor next to the RX 6650 XT. On MoltenVK the new
importJoinTestscase fails without the change and passes with it.Machine: Apple M2 Max, macOS 27.2, x86_64 under Rosetta 2. Release,
BUILD_TESTING=ON.Drivers: MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0), and MoltenVK main + SPIRV-Cross #2704.
Base/method: PR #8658
feat/macos-port@ee0a438415(currentmainplus the macOS port), notmain, which does not build on macOS. This head merged into it (git merge-tree, no conflicts), diff withoutdocs/. Full rebuild before each run.tests/BdaResources.cpp,GuestBufferMemory.cppat the base):agc_driver_graphicsfails on both drivers witha buffer bound from the first of three pieces into the last was not imported over the pieces it crosses.agc_driver_graphicspasses 2 of 2 on both drivers.^agcsuite with the PR:-j1 --timeout 30, 856 tests. The failures are the same as the base on both drivers (17 with MoltenVK 1.4.2, 16 with main + #2704). No timeouts.GPUs tested: Apple M2 Max (MoltenVK 1.4.2; MoltenVK main + SPIRV-Cross #2704)
Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-22T08:27:08Z.
Preparing a Windows 007 cross-test of 09fb61a4, preserving your commit on the same current-main integration as our baseline:
https://github.com/Scramblrrrr/AnyPS5/tree/codex/first-light-oct22-import-join
Head 62cf2d1a04 = b36dea0ab (main
d6eafa54d+ #9591 + #6918), current-main #7961 merge7e2ba73e4, then this PR. Clean source merge and conventions pass; UNBUILT and UNTESTED so far. The game is still running an unchanged b36 cache-capacity comparison, so no compilation or native tests concurrently.The baseline logs show substantial repeated CPU buffer copies outside imports, concentrated in one sparse heap. That is a reason to test your change, not proof it is this particular joined-run case. Next I will run the focused Windows/NVIDIA controls with a real Khronos layer, including a production-only negative control for your added assertion, before a title comparison. No 007 benefit claimed yet; title code/captures stay local. AI-assisted: Codex.
Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-22T08:37:51Z.
Windows native cross-test completed for 09fb61a4 on integration 62cf2d1a04 (base58dd0d5e5 = b36dea0ab + main7e2ba73e4; #6918 stays on both arms):
^(agc_driver_graphics|agc_sparse_.*|agc_heap_mirror_.*|agc_host_import_unmap|agc_host_import_retirement|agc_host_import_sparse)$.a buffer bound from the first of three pieces into the last was not imported over the pieces it crosses. Restored the exact candidate source:12PASS +same skip,7.47s. Fixture EXE SHA256 values unchanged throughout; no VUIDs/missing-layer errors in either control.The broader179-case gate is running now. This is a native functional cross-test, not a 007 FPS/copy-count result. The prior b36 game session hit its unchanged28GiB private-memory guard during a large pipeline compile, about192s after Resume; no verified cinematic/gameplay. AI-assisted: Codex.
Imported from boykopovar/AnyPS5. Originally posted by fogydes on 2026-10-22T08:37:56Z.
Reviewed; the one-line predicate relaxation is sound.
joinedRunpreviously required the binding to span the run exactly (begin == run.base && end == run.base + run.bytes); requiring onlybegin == run.baseis the coherent next step becausecrossedRunstops on the range holding the binding's last byte (so the run covers it whole and is imported whole either way), a bind starting inside the first range still falls through to the copy path, and the retirement/refusal bookkeeping keys on recomputed runs (entry extents,run.base) rather than snapshot values, so a mid-frame rebind under the relaxed rule stays consistent. ThecontinuesRunadjacency/same-permission gate is unchanged, so incompatible neighbor ranges still won't merge. Test covers the positive case and both negative ones (mid-range bind stays copied, post-join growth doesn't re-import).Two things to settle before merge:
The debt entry now documents the old rule. The "Host imports" entry in
docs/dev/debt/libSceAgcDriver.mdstates the join condition in prose: "A buffer bound across adjacent ranges that are each larger than the window, or bound exactly over adjacent ranges of any size (from the first one's start to the last one's end), joins them into one import when it is bound". That phrase — "from the first one's start to the last one's end" — is exactly the condition this PR removes; after it lands, a binding that starts at the run's first byte and ends inside the last range also joins, and the entry is wrong. This is the same parallel-documentation debt rule as the code itself (the entry is where future contributors look for the behavior), so the PR should update that clause in the same stroke.Nit: the perf evidence (the aps5-summary.jsonl lines plus the traces behind them) lives on a fork branch (
JJenkx/AnyPS5,evidence/join-run-start) rather than in the PR or an issue. The two summary lines are present and correct, but a reviewer re-runningtools/trace_digest.pyhas to fetch the fork to get anything beyond the summary numbers — worth linking the fork at least.Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-22T08:54:15Z.
007 title cross-test update: the combined9652+9565 integration c91598099b3d aborted during startup after about29s, before reaching the menu. It throws std::invalid_argument,
VOP2 opcode is not implemented, exit0xC0000409; last private memory was about8GiB, so this was not the RAM guard.Not attributing it to this PR yet. Isolating the two changes now: c4162b2156b8 has the same production sources as c915 except joinedRun retains the old exact-end predicate. The only other diff is your three-line regression addition in BdaResources.cpp. Both heads are public; the isolated branch is codex/first-light-oct22-command-memory. Rebuilding/validating that control before the next title run.
The previously posted native results remain valid; they did not catch this title failure. No unsupported opcode bypass and no title shader/code uploaded. I will report which isolated arm reproduces it. AI-assisted: Codex.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T09:16:26Z.
Review: CHANGES_REQUESTED
The single predicate change is internally coherent:
crossedRunlimits the joined range to the registered pieces containing the binding, the positive test covers that case, and existing negatives protect mid-range binds and later growth. Exact-head diff-check and conventions pass. The PR supplies strong paired Vulkan evidence on RX 6650 XT, Windows/NVIDIA and MoltenVK, including a production-only negative control; I could not run GPU tests in this environment, and hosted GPU jobs are skipped.Please resolve these repository requirements before merge:
docs/dev/debt/libSceAgcDriver.mdstill says the binding must cover exactly from the run start through its end, and later says growth is re-imported only when the buffer is bound exactly over all pieces. Both statements are now false. Please update the documentation alongside the implementation.17f5335562, while currentmainis 61 commits ahead. GitHub can merge the branches cleanly, butGuestBufferMemory.cppchanged on main. Rebase and rerun the required focused validation-layer tests on current main and the rebased change, then compare VUIDs. The current performance A/B is from an integration tree containing other open PRs (which you disclose), not the repository's current main. If the title cannot reach the measured scene on main, document that limitation and get maintainer agreement on the integration-base comparison.Unblocks: PPSA25636 (performance)but gives no Game bring-up discussion. I could not find one for PPSA25636 in the repository's discussions. Add the discussion link if this title is blocked on the change, or clarify the checklist if this is only a performance measurement.Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-22T09:55:10Z.
@MarcZX10 @fogydes thanks for the reviews. Status per point:
aac27c32ff. The host import entry now says that a buffer bound from the first range's start, ending anywhere in the last range it crosses, joins the ranges it crosses. It also says a grown heap re-imports its joined run only when such a binding crosses into a piece the joined import does not cover.main(7e2ba73e4c) and force-pushed.main,mainplus only the test commit (negative control), and the change, underANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer.main; it needs #8089, #4449, #8091 and #8908. That is why both arms are one integration tree, with and without this change. Maintainers, is that acceptable for this PR? If not, I'll drop the speed claim and keep the CPU-copy removal as the measured result, which shows directly in the counters.trace_digest.pyoutputs and the comparison are on https://github.com/JJenkx/AnyPS5/tree/evidence/join-run-start, a branch I'll keep. If a maintainer prefers them attached here, or in a Performance report issue, I can open one, though it can only link to the same files.Unblocks: none. There is no Game bring-up discussion for PPSA25636; it is a performance measurement.@Scramblrrrr thanks for isolating the 007 abort.
VOP2 opcode is not implementedis thrown by the shader recompiler, and this PR only changes which host import a buffer binding uses. I would be surprised if it were the cause, but I'll wait for your isolated arm.Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-22T10:11:20Z.
Paired focused tests on current
mainafter the rebase, as asked.Setup:
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer ctest -V -R '^(agc_driver_graphics|agc_sparse_.*|agc_heap_mirror_.*|agc_host_import.*)$'agc_host_import_retire, which the earlier run did not build.main7e2ba73e4cmain+ test commit only7e2ba73e4c+dfb60fb1dbagc_driver_graphicsfails: "a buffer bound from the first of three pieces into the last was not imported over the pieces it crosses"aac27c32ffVK_LAYER_KHRONOS_validationadded in every arm (8 lines each) for the tests that create a real instance.vkCmdCopyBuffer-srcBuffer-00118from the earlier run is no longer reported on currentmain.Logs (paths redacted): https://github.com/JJenkx/AnyPS5/tree/evidence/join-run-start/vvl
Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-22T11:14:05Z.
Follow-up from a short local copied-region diagnostic on 3f516d81d964 (current main4777 integration plus aac27c32ff, native87pass+1expectedskip with identical baseline VUIDs; production-only negative/restoration also passes the intended control). The prior VOP2 exception did not repeat through ~98s of this startup; I stopped intentionally for diagnostics, so this is not a complete-boot result or proof that the old failure is resolved.
The dominant heap's region-buffer upload sample is finite and non-sparse: 12.5MiB, starting606720bytes into a2MiB allocation, writable=1/hostBacked=0/sparse=0. 7450 of7953 sampled uploads in that heap had this shape (diagnostic region-buffer uploads, not independently proven CPU reads for every row). It does not start at run.base, so the prefix-only predicate still declines it; #9551's sparse-only path also does not apply.
I am investigating a dependent extension for interior starts whose descriptor span is at least the configured import window (8MiB in the runtime), preserving the existing tiny-crossing refusal. That would join only the contiguous registered owners intersected by the view and retain the existing ownership/budget checks. Test first: fresh small adjacent owners, interior large view, exact descriptor offset, reuse, removal invalidation and tiny-crossing control; then actual Vulkan controls and a title comparison. Let me know if you are already covering that case or know a reason it must stay copied. No speed claim; raw requests/captures stay local. AI-assisted: Codex.
Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-22T11:15:17Z.
@Scramblrrrr thanks for isolating it, and good to hear the VOP2 exception did not repeat with this head.
I'm not covering interior starts. Please take that extension; I'm happy to test it on Echoes afterwards.
The one thing I'd watch is the reason
ca95f74097kept interior starts apart: two joined imports that share a range retire each other.importJoinTestsalready pins the case where a later bind grows a join ("two joins sharing a range retired each other"). With interior starts allowed, two large views over overlapping but different sets of owners, both bound in the same frame, could alternate between the two joins. A test with two such views bound alternately would show whether the retire/re-import cycle settles. Your window threshold and the tiny-crossing control keep the common case safe. For this PR's run-start rule the risk is smaller, because every join from a given base covers the ranges up to the binding's end, and a longer binding from the same base grows the same import.Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-22T11:30:59Z.
Thanks, taking that extension. Source integration is public now at 8942cb7c407a, on current main4777 + our bring-up stack + your aac27c32ff:
https://github.com/Scramblrrrr/AnyPS5/tree/codex/interior-host-import-views
The production change adds end-begin >= window alongside begin==run.base; tiny crossings remain refused. Your overlapping-owner concern is now covered: large views over owner sets0..2 and2..4 alternate repeatedly, keeping the same grown0..4 import, and two views bind that established import in one build. Native Vulkan repeats actual byte readbacks for alternating views and checks the stable buffer handle after growth. The separately acquired-registry three-owner case also checks offset/reuse/removal; unused acquired ranges are not counted as the requested view's copies.
Windows focused base/change gate:87pass+1expectedLinuxskip (36.74/35.97s), actual Khronos1.4.363 layer, identical two existing02275 errors and no new VUID. The two final new fixtures fail their intended assertions with only baseline production restored, then pass after exact candidate restoration, with fixture executable hashes unchanged and zero VUID in those controls. Source conventions:0errors, existing long host-import debt row warns.
Full matched runtime packaging and guarded007 test next. No speed/title correctness claim yet. The branch is an integration WIP, not a clean upstream PR base; a standalone submission would explicitly depend on yours. AI-assisted: Codex.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T12:42:51Z.
Review: DISMISSED
Thanks for adding the paired current-main-at-the-time validation run (15/15 on the base and change, with the negative control failing only the intended regression), plus the Windows/NVIDIA and MoltenVK cross-checks. The debt description now matches the relaxed start-at-run-base rule, and
Unblocks: noneis clear.One repository requirement has become stale again: the PR base is
7e2ba73e, while upstreammainis now8b3a6ba8(13 commits ahead). I checked the intervening history; it does not touchGuestBufferMemory.cpp,BdaResources.cppor the AGC debt entry. Please still rebase on currentmainand rerun the paired focused validation-layer gate there, so the checked merge result is current.The performance summaries are in this PR, but the two trace archives and digests remain on the separate
JJenkx/AnyPS5:evidence/join-run-startbranch.CONTRIBUTING.mdasks perf PRs to attach the traces and digest; please attach them here or provide a stable linked report artifact. I could not run the AGC/Vulkan suite locally, and the hosted product jobs are skipped, so the GPU evidence above is author/independent-tester reported.Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-22T13:01:30Z.
@MarcZX10 thanks.
main3ca07d086d. The new head isda7eeb2201, with the same three commits, a clean rebase, and both changed files compiling. The paired focused validation-layer gate on this base is queued on the shared GPU, and I'll post its results and logs here.aps5-summary.jsonllines, the two trace archives, bothtools/trace_digest.pyoutputs, thetools/performance_compare.pytable and the redacted ctest logs as fixed release assets. I work from the CLI, which cannot attach files to a PR comment, so a release is the closest stable equivalent.tools/check_conventions.py --base origin/mainreports one warning and no errors. The host import debt entry is 2,979 characters, over the 1,000-character guideline. It was already that long; this PR rewrites only its join rule, so it is flagged.Imported from boykopovar/AnyPS5. Originally posted by LeoFeitosa on 2026-10-22T13:03:18Z.
A second title with the same pattern: RoboCop: Rogue City - Unfinished Business (PPSA28329), Windows 10.0.26200, RTX 5070 Ti (NVIDIA 617.42).
Setup:
main559f35d685with this PR's three commits cherry-picked (ec0ed6b43c41, dfb60fb1db45, aac27c32ff4d; no conflicts), against the same tree without them. Same install, same input script, warm shader cache.Why I looked: stack samples of the queue 0 thread during gameplay showed about 15 % of it in
GuestBufferMemory::copyRegion→GuestMemory::Read(memcpy).APS5_PROFILE_DRAWshowed the CPU copies were "outside imports", mostly in one range (0x30a0000000, about 1.8 MiB per copy).APS5_TRACE_HOST_IMPORTlogged no refusal for them.CPU copies outside imports (
APS5_PROFILE_DRAW=1, cumulative at the end of the run, one run each):0x30a0000000Frame time (median of the per-10 s frame p50 over the gameplay intervals, base and PR alternated):
That is 18–21 % less frame time in all three pairs. GPU busy per present is about the same in both (103–107 ms). A separate long run with this PR held 172.6 ms over 21 gameplay intervals.
Image: at the same point of the input script, the 3D title screen looks the same with and without this PR. The menu artifacts this title shows also appear on the base, so they don't come from this PR.
In 1 of 5 runs with this PR, the title stayed on the intro logos and did not take the input script. It was presenting normally at 60 presents per 10 s, with no fault. I have seen the same stall on builds without this PR, so I don't attribute it here.
Logs are available if useful.
Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-22T13:15:16Z.
@LeoFeitosa thank you, that's a valuable second title on a different vendor and OS. It also matters that it is a case where the change helps at default settings: on Echoes the buffer is only hot under a larger storage cache, while RoboCop shows 18–21 % less frame time across three alternated pairs and CPU copies outside imports falling from 109,192 to 8. I'll reference your results in the description.
Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-22T13:53:02Z.
Paired focused validation-layer gate on the rebased head, on current
main3ca07d086d.Setup: same machine,
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer ctest -V -R '^(agc_driver_graphics|agc_sparse_.*|agc_heap_mirror_.*|agc_host_import.*)$'(15 tests).main3ca07d086dmain+ test commit only3ca07d086d+85557919dbagc_driver_graphicsfails: "a buffer bound from the first of three pieces into the last was not imported over the pieces it crosses"da7eeb2201The loader adds
VK_LAYER_KHRONOS_validationin every arm (8 lines each). The logs (paths redacted) are thevvl-3ca07d086d-*assets of https://github.com/JJenkx/AnyPS5/releases/tag/pr9652-evidence.Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-22T15:22:54Z.
@LeoFeitosa could you share the logs you offered for the RoboCop comparison, preferably the
aps5-summary.jsonllines, matching trace archives/digests, exact candidate commit and the gameplay intervals used for one of the unprofiled alternating pairs? A stable linked archive is fine.Your clean-main-based test is particularly useful because our Echoes performance capture uses a disclosed integration tree. Retaining the exact RoboCop artifacts would let reviewers inspect the separate main-versus-change measurement against CONTRIBUTING's performance-report requirements. We will keep your results attributed as independent tester measurements; we have not reproduced the RoboCop run locally. No need to repeat the runs if those existing files are available.
Imported from boykopovar/AnyPS5. Originally posted by LeoFeitosa on 2026-10-22T15:28:27Z.
@JJenkx here are the files of pair 2, an unprofiled pair (base 203.5 ms, this PR 163.1 ms): https://gist.github.com/LeoFeitosa/bb17132e2f9442986c4d0fd4a87926c7
base-aps5-summary.jsonl,base-anyps5.log:main559f35d685. The summary says"dirty": true. The only local change is #8310, applied by my sync script: a test file (ImageArrayWindowPastLayerLimit.cpp), which is not built into the prx package.pr-aps5-summary.jsonl,pr-anyps5.log:559f35d685+ this PR's three commits cherry-picked asd26afad4a,d31842588,2efa0e483(= ec0ed6b43c41, dfb60fb1db45, aac27c32ff4d). The summary records2efa0e483cc1,"dirty": false.Gameplay intervals used: lines 3–8 of each summary. Those are the intervals with ≥ 5 presents and more than 20 ms GPU busy per present. The figure is the median of their frame p50:
Line 3 is the first gameplay interval after the load in both runs.
What I don't have: no trace archives or digests. These runs had
APS5_TRACE_SUMMARY_EVERY=10only, with noAPS5_TRACE_FRAMES, so the summary lines are all there is. The other two pairs and the profiled pair have the same kind of files, if you want them too.