Repository navigation
perf(agc): reuse read-only address-based draw builds over their cached address space - #13858
Conversation
…d space Extracted from 1be4230 ("perf(agc): GPU descriptor heap on VK_EXT_descriptor_heap (APS5_GPU_HEAP)", boykopovar#9508): only its space reuse, as boykopovar#9508's head 82f76ff has it, without the descriptor heap. A read-only address-based draw build whose bindings all lie in its cached address space (no lease of its own, no regions outside the space, no sparse mirrors or copied ranges) is reusable. A hit retakes the space while it is still the current one for the device, registry generation and import epoch, refreshes its writable mirrors, and is served when every snapshot of the draw lies inside a live region of the space and still equals guest memory. The moved-buffer proof and the draw bindings take such a build too. After recording, the build hands the space to the recorder, so between draws it holds only a weak reference and pins no guest allocation. The gate stays as in boykopovar#9508: the reuse runs only with APS5_GPU_HEAP set. Adapted to this base, which has no descriptor heap: - NeverReusable asks ShaderStoresThroughAddresses(spirv), after the gate, where boykopovar#9508 reads the program's bdaStores; - GpuHeapEnabled() is copied from boykopovar#9508's BindlessHeap.cpp into ShaderResources.cpp; - GuestBufferMemory.cpp includes Draw.hpp for DrawPipelineEnabled(); - docs/dev/ENVIRONMENT.md lists APS5_GPU_HEAP for ShaderResources.cpp. The heap's own parts of the hit path (HeapCostScope, RefreshHeapStage, outcome.addressBased) are left out. Co-authored-by: Yunus Shaikh <75296019+EagleBearerYS@users.noreply.github.com>
The space reuse of the previous commit ran only with APS5_GPU_HEAP set, so on the default path every address-based draw built its resources, its page table included, again. At Village's menu that is 4,276 draws per 10 s at 1,126 us each on the draw committer (BF-105). SpaceReuseDisabled() no longer depends on the descriptor heap: the reuse is on unless APS5_NO_ADDRESS_DRAW_REUSE=1 is set, documented in docs/dev/ENVIRONMENT.md in place of the APS5_GPU_HEAP row, which nothing reads any more. NeverReusable asks whether a stage stores through addresses only for a stage that binds the BDA table, so other draws do not pay the lookup. On by default, a hit that retook the cached space must give it back on every path, or the cached build pins the space's allocations and a guest free waits APS5_PIN_WAIT_MS for it: - ReleaseSpace returns nothing and keeps the released reference when no space is held, so a second release does not forget the space; - a hit that throws before it is served (CheckBufferAliases) releases the space it retook; - Draw releases a space still held when the draw ends without keepRecordedDraw (prepareDraw returning false, or a throw), into the active recorder; - the transition path, which builds afresh for a hit with moved buffers, releases the template's space first. A recorded draw also makes no recipe from a space-reuse build: DrawWithRecipe proves a template with Revalidate alone, which neither retakes the space nor checks the draw's snapshots in it. agc_driver_address_draw_space_reuse covers the default path: - a read-only BDA draw over an imported allocation, drawn twice with unchanged inputs, is served by the first draw's build; - a CPU write into the constant it reads between the draws is seen by the reused build; - a guest free inside the address space while the reused build is idle returns at once (BF-033's 60 s pin wait), and the next draw builds anew; - no recipe is made from the reused build; - a draw whose read-only vertex buffer moved inside the space renders, and a free after it returns at once. The first four are red on the previous commit, where such a build is never cached; with the reuse on but no recipe rule, the fourth fails on the recipe it gets, and dropping keepRecordedDraw's release makes the third wait the full pin wait. --case <name> runs one case. agc_driver_address_draw_space_reuse_off runs the scene with APS5_NO_ADDRESS_DRAW_REUSE=1 and requires a build per draw; agc_driver_address_draw_space_reuse_transitions runs it with APS5_DRAW_TRANSITIONS=1, the non-lean path.
… fault record A reused address-based draw build has one fault record, its boykopovar#8963 slot, and every use of it checked that record when its batch completed. Two uses in one batch shared it: the first fault was reported by both completions (the record is never cleared after a report), a second use's own fault was lost behind it, and each later use reported the old fault again. A recorded draw of a space-reuse build now begins a use (BeginDrawUse), as boykopovar#8971's a581de8 does for dispatches. The first use in flight takes the build's own record and descriptor sets; a use that starts while it is taken takes a record of its own, a slot from the boykopovar#8963 arena (a BdaResources without a table), and sets that repeat the build's writes with that slot in the fault binding (AllocateRewritten, through the same writer as the moved-buffer and snapshot sets, which now take the use's slot too). The use's completion checks its own record with the build's tables (BdaResources::CheckUse) and clears it, so a fault is reported once, by the use that made it, and the next use of the record starts clean. The record returns to the arena, and the build's own record is released, when the use ends. Builds whose stages store through addresses are still never reusable (NeverReusable), so their single use keeps the build's record. agc_driver_address_draw_space_reuse's fault-per-use case runs pairs of uses of one build in a batch, each through its own pointer: a faulting use before a clean one and after one, two faulting uses, and two clean uses after them. Each fault is reported once at its own address and the clean pair reports none. On the previous commit the first pair reports its fault twice; with every use on the build's own record the second fault of the faulting pair is never reported.
A tester of address-based draw reuse cannot tell how often a draw was served by its cached build, or why it was not: a refused reuse pays for its proof and then for the build. Every address-based draw that could take part in the resource cache (recordable, its stages compiled, the reuse on) now counts exactly one outcome: - reused: a hit served by the cached build; - built: a new build that the cache keeps for later draws; - not read-only: a stage stores through addresses (NeverReusable); - not space-only: the build cannot be kept, as some of its bindings lie outside the cached address space (or noteReusable keeps it out for another reason: copied writes, multisample sources, the loop guard); - snapshot outside the space (copied): a snapshot of the draw lies outside the space, or in a region that is not read live; - partial overlap: a snapshot straddles the end of a region; - snapshot changed: a snapshot no longer equals guest memory, or lies under a unit shadow; - moved GuestBuffers element and patched data word: the moved-buffer proof refused the hit, for a data word under a misalignment patch or for anything else; - space or epoch change: the space could not be retaken (replaced, or its device, registry generation or import epoch moved); - in use: the cached build still holds its space for another draw, which the hit no longer shares (nor removes from the cache); - revalidation: Revalidate refused the hit. SnapshotsServedInPlace returns which of its checks refused, and MovedReadOnlyBuffers says when a patched data word did. APS5_PROFILE_DRAW prints them every 10 s after the [rescache] draws line, as boykopovar#6636's 89ab0ea did for its reuse: "[rescache] address-based draws (10 s): reused N, built N; refused: not read-only N, ...". The counters are cumulative (AddressDrawReuseCounters) and the line shows a window. agc_driver_address_draw_space_reuse's counters case draws through each refusal it can reach and requires each to count under its own reason (two reuses, a space change after an allocation is mapped, a snapshot outside the space and the uncached builds after it, a snapshot across the end of an allocation, a snapshot that differs from memory, a storing pixel shader), and the outcomes of all its draws to add up to the number of draws.
…reuse proof The reuse proof of a space-reuse draw build compares the draw's snapshots with guest memory inside the cached space. A write that earlier work in the batch recorded over a snapshot's range (a fill, a copy, a dispatch storing through a descriptor) may still be pending when the proof runs: memory then still holds the bytes the capture saw, the proof passes, and the draw runs after the write on a build proven against the old bytes. As boykopovar#6636's 6e5b5bd did for its proof, the hit now syncs the recorder through every snapshot range a recorded write overlaps before SnapshotsServedInPlace compares them, so the comparison sees the memory the earlier work leaves and a capture made before the write is refused as a changed snapshot. A range with no pending write costs one overlap test. agc_driver_address_draw_space_reuse gains the case and the moved-ring cases: - pending-snapshot-write: a draw whose snapshots include the pointer its pixel shader loads, reused once, then a FillBuffer recorded over that pointer and the same draw with the old capture in the batch. It is refused for a changed snapshot and builds again; on the previous commit it was reused ("reused 1 and 0 builds"). - ring-same-constants: each draw writes the same constants into the next slot of an eight-slot ring in an imported allocation, passes the slot's address in user data and its bytes as a snapshot; all fifteen draws after the first are reused. - ring-own-constants: as above with other constants per draw; each draw renders its own and all are reused. - ring-old-slot-write: a CPU write to the previous slot after each draw is recorded leaves the reused draw's result alone. - ring-refusals: a moved snapshot outside the space is refused under its reason; a moved read-only vertex buffer inside the space is bound anew and reused (boykopovar#9508's moved-buffer path), and one that a pending fill overlaps is refused as a moved GuestBuffers element. The ring cases pass from the default-path commit on (with APS5_NO_ADDRESS_DRAW_REUSE=1 they fail, 15 builds for 15 draws). No case reaches the patched-data-word refusal: the stage this test builds has no data word under a misalignment patch. docs/dev/debt/libSceAgcDriver.md records the reuse and what is not measured.
|
This pull request is labeled |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — changes requested
The performance report compares the feature toggle on and off at the same commit, so it does not provide the required main versus PR-change captures.
What I ran
Reviewed head 7122193668bb31c5282e80152b240d8e1990720e against the PR's recorded base c3c45d73abd34dca81da6bad87cb6d36ea437a66. I also checked against current main at 45f4f82449a72e31aa9fd3120bd82820211dea41; both the PR and its declared dependency #8963 have clean merge previews there. Environment: Linux, Python 3.11.2; no C/C++ compiler or build was run.
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 13858
python3 tools/pr_stack_check.py 13858 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13858-7122193668bb/stack
git diff --check 45f4f82449a72e31aa9fd3120bd82820211dea41...7122193668bb31c5282e80152b240d8e1990720e
python3 tools/check_conventions.py --base 45f4f82449a72e31aa9fd3120bd82820211dea41 --head 7122193668bb31c5282e80152b240d8e1990720e --title 'perf(agc): reuse read-only address-based draw builds over their cached address space' --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13858-7122193668bb/pr-body.md
python3 tools/performance_compare.py /tmp/anyps5-13858-perf/A-reuse-off-aps5-summary.jsonl /tmp/anyps5-13858-perf/B-reuse-on-aps5-summary.jsonl --require-matching-context
python3 tools/trace_digest.py /tmp/anyps5-13858-perf/A/aps5-trace-697706893b77-10224.json.gz --summary /tmp/anyps5-13858-perf/A/aps5-summary.jsonl
python3 tools/trace_digest.py /tmp/anyps5-13858-perf/B/aps5-trace-697706893b77-28528.json.gz --summary /tmp/anyps5-13858-perf/B/aps5-summary.jsonlResults
| Check | Result |
|---|---|
| Head/base freshness | Precheck confirmed both unchanged at completion. |
| Diff and conventions | Passed. |
| PR merge previews | Against current main 45f4f82449a72e31aa9fd3120bd82820211dea41, both #13858 and dependency #8963 are clean; #13858 includes #8963's current head. |
| Precheck ABI/test-quality helpers | Could not run: those helper scripts are absent from the isolated PR checkout. This is a tooling limitation, not a PR-source failure. |
| Performance context comparison | Failed with exit 2: the summaries differ in APS5_NO_ADDRESS_DRAW_REUSE and window.first_present. Both summaries also name the same commit. |
| Trace digests | Regenerated digest outputs for A and B each match the corresponding attached digest output line-for-line. |
| Hosted CI | Eligibility, conventions, library-portability, intake, labels and report passed. Windows passed at the final refresh; Linux and specialized jobs were skipped. |
Relevant raw output
All conventions checks passed.
performance_compare.py: recorded configuration differs: env.APS5_NO_ADDRESS_DRAW_REUSE, window.first_present
exit=2
A: regenerated digest equals posted digest: True
B: regenerated digest equals posted digest: True
# PR stack check — fresh
Target: https://github.com/boykopovar/AnyPS5/pull/13858
Target branch tip: `45f4f82449a72e31aa9fd3120bd82820211dea41`
All heads unchanged: **True**
Dependency order: #8963 → #13858
## Individual merge previews
- PR #8963: **clean** against current base; head `d958699e8b7cb503f83ab6f3031340e349c0a4e1`; changed paths: none reported
- PR #13858: **clean** against current base; head `7122193668bb31c5282e80152b240d8e1990720e`; changed paths: none reported
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13858-7122193668bb/head-7122193668bb-d4fa1180/tools/pr_abi_audit.py': [Errno 2] No such file or directory
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13858-7122193668bb/head-7122193668bb-d4fa1180/tools/pr_test_quality.py': [Errno 2] No such file or directory
Findings
Blocking
The perf PR's two summary records are an on/off toggle comparison from the same source commit (697706893b77); the PR description also says the measurement tree includes this change. The repository requires a main capture and a change capture from the same machine and scene, and the records must name different commits. The perf numbers missing label remains present. Please add the main and PR-head summary lines, their traces, and trace_digest.py outputs using the same machine, title, scene, resolution, and capture settings. The existing toggle pair can remain as supplemental evidence.
Non-blocking
No additional blocking source issue was established in the inspected diff. Local build/CTest and platform-specific runtime behavior were not independently checked.
Sources
- Performance-evidence requirement in CONTRIBUTING.md, pinned to current main
- Performance report form, pinned to current main
Not verified
No local build, CTest, Linux product job, or console run was performed. The Windows hosted job was still in progress at the final refresh; the skipped Linux and specialized jobs provide no result. Author-reported test runs were not independently repeated.
To get this to a good state
Add the compliant main/PR-head performance evidence described above. I will rerun the relevant report, trace, and freshness checks on the updated head.
|
Windows GPU run of head Windows 11 Enterprise 10.0.22621, Ryzen 9 5950X, Radeon RX 6700 XT with AMD proprietary driver 26.10.1 (Vulkan 1.4.315), WinLibs GCC 15.2.0 UCRT r7, Ninja, Release,
AI-assisted: yes (Claude Code). |
|
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 (1, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (2, 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)Validated but not compared (3, not in the main baseline's validation pass)Validation IDs already present on main (4 IDs in 423 tests)Skipped (42)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. |
|
@EagleBearerYS Reviewed at
A small fault-injection probe using the exact destructor and a throwing |
The reuse of read-only address-based draw builds has been on by default since b4947ff; only APS5_NO_ADDRESS_DRAW_REUSE=1 turns it off. Its debt entry sat under "Opt-in draw paths", so it moves to "Functional", where the other default paths with known gaps are. The entry keeps the sentence that names the opt-out. The entry said the reuse was measured only in a synthetic draw on lavapipe, while the pull request reports a Resident Evil Village (PPSA01556) menu measurement. It now says what that run is: one title's menu at about 1 fps, on a local merge tree rather than main, with an NVIDIA GeForce RTX 3070 Laptop GPU, and renders compared by a static-region pixel diff rather than by frame hashes. The rest of the entry is unchanged.
…nd-off RetakeSpace, ReleaseSpace and SpaceHeld read and write the space and releasedSpace members of a ShaderResources that SharedResourceCache() hands to every draw, and resolveDrawResources asks SpaceHeld before it calls RetakeSpace. Nothing but GuestMemory::GpuMutex keeps two threads from doing that on one cache entry: every caller is Graphics::Draw, and the driver reaches VulkanDevice::Draw only with the mutex held, from Driver::finishDraw after lockForDraw() or from Driver::commitDraw's own lock_guard. The draw recipe path never reaches the hand-off, since no recipe is made from a space-reuse build. The three functions now assert the lock with GuestMemory::AssertGpuLockHeld, as Recorder::KeepThroughHold does, so a caller without it aborts under APS5_ASSERT_GPU_LOCK=1. SpaceHeld moves out of line for that.
…DDRESS_DRAW_REUSE The reuse of a read-only address-based draw build is on by default and is proven by containment, a snapshot compare and counters, but nothing checked a served hit against what a fresh build would bind. With APS5_VERIFY_ADDRESS_DRAW_REUSE=1, every hit that is about to be served builds the draw's resources anew from its stages, target and snapshots, as a miss would, and checks: - the fresh build is a space reuse build too (space-only and read-only, so it copies no snapshot); - its BDA page table bytes (header and ranges) equal the hit's; - every snapshot lies in readable ranges of the hit's table, and its bytes equal guest memory, compared here rather than through the hit's own SnapshotsServedInPlace; - the sampled textures, storage images and set layout keys are the same objects and keys. A difference throws "APS5_VERIFY_ADDRESS_DRAW_REUSE: a served address-based draw hit disagrees with a fresh build or guest memory in its ...", as APS5_VERIFY_DRAW_DATA_HITS stops. The fresh build is never recorded and releases its space when it goes. Buffer descriptors and push constants are not compared: a moved read-only buffer is bound anew at record time, and push constants always come from the draw's stages. AddressDrawReuseVerifications() counts the verified hits, so the reuse tests subtract the fresh builds' tables from their build counts. The new agc_driver_address_draw_space_reuse_verify registration runs the default cases with the switch on and requires every served hit to be verified. The switch is listed in ENVIRONMENT.md and in the debt entry.
|
Two more titles on this head: correct, but not a target in either GTA V (PPSA04263 01.010.002, North Yankton bank, 3840x2160, warm caches; #11580 is needed on
Diablo II: Resurrected (main menu, No failures or rendering problems in any run. AI-assisted; the runs are from my machine(s). |
…'s cleanup The HeldSpace cleanup in Graphics::Draw released a space the draw still held and handed it to Recorder::Keep, which may open a batch (a make_unique, vkAllocateCommandBuffers) and grow its kept list. An allocation failure there escaped the implicitly noexcept destructor and terminated the process, also when the cleanup ran after an early return or during another exception's unwinding. The open batch can change between the retake and the recording: completeSnapshotWrites syncs through pending writes over the snapshots, the retake's mirror refresh may sync, and preparation syncs for the indirect arguments. So the keep is reserved where the batch is known: - A recorded draw reserves it, through the ordinary checked Recorder::Keep, once it has the command buffer it records into: after StartDrawPass on the lean path and after Recorder::Commands on the other recorded path. The reservation is a holder that batch keeps, and keepRecordedDraw moves the released space into it. - Every other way out of Draw (an early return, an exception during preparation or recording) reserves it in ordinary code too: Draw catches, reserves in the batch open then, and rethrows, so an allocation failure there propagates normally. That batch holds any command preparation recorded, and completes after every earlier one. The cleanup only moves the space into the holder, with noexcept moves. When no holder could be reserved, it leaves the space with the build and records the recorder's open serial, a plain integer, without allocating. A later hit gives such a space back once the recorder has completed that serial, and until then refuses the entry as in use. The backing memory so stays alive as long as any batch the draw recorded into, in every case.
…changes on prm/13858-review
…le targets A cached build keeps the BDA page table it was built with, and the multisample-target exclusion in that table is the one of the guard generation at build time. A new resident multisample target bumps only that generation: it touches neither the imports epoch, the allocation generation nor the cached address space. So a space-reuse hit kept binding a table that still mapped the target's guest memory, and a BDA read into it got the guest bytes, whose samples live on the host, where a fresh build's table excludes the range and the read faults. BdaResources now keeps the generation its table was filtered at, as ExcludeMultisampleTargetRanges wrote it back. A space-reuse hit whose generation moved runs ExcludeMultisampleTargetRanges again over the build's space ranges, the same call a fresh build makes, and compares the result with its table: equal keeps the hit and stores the new generation, a difference refuses it as a space or epoch change. The generation moves on every target create, recreate and retire, so a blanket refusal would drop every space hit of a title that retires and recreates a target each frame, even with the target outside the space. The tests place a 4x resident target inside the draw's address space, in its constant allocation but away from the word the draw reads (the hit is refused as a space change, a build follows and still reads the constant), and outside the space (the hit is kept), skipping without write tracking or 4x color targets as CachedImageMultisampleGuard does. The --verify mode also prints how many served hits it verified.
|
@oneandonlydean thank you for the review. Five commits on top of 7122193 answer it. The head is a142526; the runs are in the description's Tested section.
Could you take another look? |
…le targets A cached build keeps the BDA page table it was built with, filtered by the multisample-target guard generation of that moment. A new resident multisample target bumps only that generation, so a space-reuse hit kept binding a table that still mapped the target's guest memory. The build now keeps the generation its table was filtered at; a hit whose generation moved reruns ExcludeMultisampleTargetRanges over the build's space ranges and keeps the hit only when the result matches its table. Ported from boykopovar#13858 (a142526). Co-authored-by: Yunus Shaikh <75296019+EagleBearerYS@users.noreply.github.com>
A draw whose space keep could not be reserved holds its address space in the cached build through the recorder's open serial. When that build left the resource cache before the batch completed, the space went with it. The hold now records the recorder's id with the serial, and a build destroyed while holding moves its space into a node it allocated when the space was attached, on a list released once that recorder completes the serial (or no longer exists), by the next cached lookup, the pin waiter, or device teardown.
Test hooks fail the next space keep reservations and stop a draw after its resources resolve. The address-draw reuse test's --held cases cover an unrecorded early return, a throw during preparation and a recorded draw, each with the keep failing: the held space is refused while its batch is open and retaken after it completes, and a fresh build that replaces the holding build leaves the space retained until that batch completes. They run as agc_driver_address_draw_space_reuse_held, with APS5_RELEASE_ON_UNLOCK=1: kept objects of a finished batch then die on the thread that finished it, so the replaced build is destroyed when the cache drops it instead of later on the release thread.
|
@oneandonlydean thanks for the second look. Both points are fixed on the branch. 1. The fallback's lifetime. The entry can leave the cache in that window:
2. Tests (5479721). Two hooks make the keep reservation fail (
The registration sets There's no red for these cases on the old code. Nothing in them uses the space on the GPU, so the old code passes the outcome checks too, and the retention count needs the new code. They pin down the behaviour you asked to see. The lock is the GPU lock, On GitHub's runners, these tests with the BDA, host-import and write-tracking tests pass 10 runs in a row (run):
|
✅ 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 (3, 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 529 tests)Skipped (49)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 (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 529 tests)Skipped (58)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. |
✅ 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)Validated but not compared (1, not in the main baseline's validation pass)Validation IDs already present on main (4 IDs in 520 tests)Skipped (48)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. |
Draw.cpp conflicts where boykopovar#13021 notes a depth surface write after the draw's resources are resolved. Both are kept, with the injected stop after resolve first, so an injected failure notes no depth write.
✅ NVIDIA 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 (3, not counted against this PR)Validated but not compared (1, not in the main baseline's validation pass)Validation IDs already present on main (8 IDs in 531 tests)Skipped (50)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 (2, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (7, not counted against this PR)Validated but not compared (1, not in the main baseline's validation pass)Validation IDs already present on main (8 IDs in 531 tests)Skipped (61)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. |
…tern FillBuffer now skips a fill whose range already holds the same pattern (boykopovar#10668), so a repeated zero fill recorded nothing and never submitted the batch holding the space. A new pattern per call keeps every completing fill recorded.
✅ NVIDIA 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 (3, not counted against this PR)Validated but not compared (1, not in the main baseline's validation pass)Validation IDs already present on main (13 IDs in 548 tests)Skipped (50)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. |
ShaderResources.cpp conflicts at the end of PrepareDrawBindings, where #13858 moves the descriptor-set writes into writeDrawSets and this branch keeps the bindings when no snapshot is selected but a texture was rebound. The merge takes #13858's split and keeps this branch's condition on the early return.
What
Builds on @Raghav314's space reuse from #9508. With his agreement (comment), the first commit takes
spaceReuse,RetakeSpace,SnapshotsServedInPlaceand their hit path out of his 1be4230. It keeps his authorship, with my co-authorship line as in his commit. Stacked on #8963.A recorded draw whose stages only read through the BDA table, and whose bindings all lie in its cached address space, now reuses its build instead of building its resources again for every draw. Today every address-based draw builds anew. In Resident Evil Village (PPSA01556)'s menu that's about 4,300 draws per 10 s on the draw committer.
usesBdalift).APS5_NO_ADDRESS_DRAW_REUSE=1builds every draw anew. Its row inENVIRONMENT.mdreplaces theAPS5_GPU_HEAPgate the pieces had in feat(agc): GPU descriptor heap on VK_EXT_descriptor_heap (APS5_GPU_HEAP) #9508.APS5_GPU_HEAPgate.APS5_PIN_WAIT_MS:ReleaseSpaceno longer resets the released space;APS5_PROFILE_DRAW,[rescache] address-based draws (10 s): reused N, built M; refused: …counts every address-based draw under exactly one outcome.main(0835ec8). The only conflict wasENVIRONMENT.md, where both rows are kept.main(d958699,main6a691f6).noteReusable's condition, against perf(agc): expand an HTILE on the GPU behind a pending mask clear kernel #8105's pending HTILE clear rule. Both are kept: a build carrying a pending HTILE clear is never reusable, and that includes a space reuse (spaceReusablerequires!htileClear.has_value()).### Functional, since the reuse is on by default. It now describes the one title the reuse was measured in, Resident Evil Village (PPSA01556)'s menu, as that run was made.RetakeSpace,ReleaseSpaceandSpaceHeldread and write the space of a build thatSharedResourceCache()shares between draws.Graphics::Draw(resolveDrawResources,keepRecordedDraw, the transition path's rebuild, and theHeldSpacecleanup).GuestMemory::GpuMutex(). The driver reachesGraphics::Drawonly throughVulkanDevice::Draw, and every caller of that holds the mutex:Driver::finishDrawthroughlockForDraw(), before the indirect and direct inline draws, andDriver::commitDrawthrough itslock_guard, for pipelined draws. TheHeldSpacecleanup runs insideDraw, so it's under the lock too.spaceReuseis set for draw builds only.GuestMemory::AssertGpuLockHeld, so a caller without the mutex aborts underAPS5_ASSERT_GPU_LOCK=1.APS5_VERIFY_ADDRESS_DRAW_REUSE. Every served hit's resources are built anew, and the draw throws on the first difference.HeldSpacecleanup no longer allocates or throws.Recorder::Keep, once it holds the command buffer it records into. The release then moves into that holder.Draw()makes the same checked reservation in a catch-and-rethrow.ExcludeMultisampleTargetRanges, the function a fresh build calls, over the build's space ranges. It keeps the hit if the result matches the table, and refuses it as a space or epoch change if not.HeldSpacecleanup's fallback (item 11) left the space's one owner in the cache entry. The entry can leave the shared resource cache while the space is held:Remove,RemoveImage, eviction, or a fresh build of the same key replacing it. The space then went with it.RetakeSpace, the cached hit and a fresh build) first allocates the build's retention node.~GuestBufferMemorymoves a held space into that node and pushes it onto a lock-free list, without allocating.APS5_PIN_WAIT_MS.spaceat once. Every read and write of it (RetakeSpace,ReleaseSpace,SpaceHeld,HoldSpaceThrough,ReleaseCompletedSpaceand the retention's release) runs under the GPU lock,GuestMemory::GpuMutex(), and asserts it (item 9). The one exception is~GuestBufferMemory. It runs when the entry's last reference goes, so no other thread can reach its space, and the release thread may run it without the lock, which is why its hand-over is a lock-free push.SetSpaceKeepFailuresForTest) and stop a draw after its resources resolve (SetDrawStopAfterResolveForTest).agc_driver_address_draw_space_reuse_heldruns two cases, each for an unrecorded early return, an exception during preparation and a recorded draw, with the keep failing.held-space-retaken: thebad_allocreaches the caller. Once the held serial completes, the same build retakes its space and is served without a build.held-space-in-use: before the held serial completes, the next draw is refused as in use and builds. When that fresh build replaces the holding build in the cache, the space stays retained until the batch completes, and is released after it.APS5_RELEASE_ON_UNLOCK=1is set on the registration, for the test's determinism only; it masks no fix. Without it, the replaced build is still retained the same way, but it is released later on the release thread, so the test's retention count would race with it.Overlap:
feat(agc): GPU descriptor heap on VK_EXT_descriptor_heap (APS5_GPU_HEAP) #9508 (@Raghav314) carries the same pieces in his own commit, and now also commit 2's hit-path fixes, as his 1817bbe, 270d43a and 758d23c. No landing order is needed, as he wrote: whichever lands second drops the shared pieces when it refreshes.
Our own feat(agc): look up table images at run time through a device image table on the GPU heap (APS5_GPU_PATH) #7642, and @Celegans12's feat(agc): serve lane-keyed, pointer and runtime image-table columns #10193, carry 1be4230 too, through feat(agc): GPU descriptor heap on VK_EXT_descriptor_heap (APS5_GPU_HEAP) #9508, and the same holds for them.
perf(agc): relocate cached draws across moved user-data V#s and fetch subroutines #13610 (@ntamas94) relocates cached draws across moved user-data V#s, upstream of this build. It merges cleanly with this change, and the two compose.
perf(agc): reuse cached draw stages when only buffer base addresses moved #5609 (@TheAggie) relocates cached draw stages whose descriptor words differ only in buffer base addresses, in the draw cache. This change reuses the resource build of draws that read only through the BDA table, so the two apply to different draws and compose. They share
CMakeLists.txtandGraphics/src/Draw.cpp, and perf(agc): reuse cached draw stages when only buffer base addresses moved #5609's conflicts withmainare the same with this branch merged (15 files either way).perf(agc): prove cached image tables from a write index behind APS5_TABLE_INDEX #12745 and fix(agc): write back BDA stores into writable heap mirrors #12840 (ours) each have one small resolution against this change:
rebound) goes into thewriteDrawSetsthat commit 3 moved the sets into;ShaderResources.hppkeeps itsStorePages()beside this change'sSpaceReuse().Earlier attempts:
Related: perf(agc): the queue-0 draw committer bounds draw-heavy titles on the CPU — is parallel draw recording planned? #7895 (the draw committer bounds draw-heavy titles).
Tested
Tests:
agc_driver_address_draw_space_reuse(tests/execution/AddressDrawSpaceReuse.cpp), with_off(APS5_NO_ADDRESS_DRAW_REUSE=1) and_transitions(APS5_DRAW_TRANSITIONS=1) registrations. The scene is a full-screen draw whose pixel shader loads its constant through a user-data pointer, with its shader code in a registered allocation.unchangedcpu-writeidle-freeno-recipemoved-verticesfault-per-usecounterspending-snapshot-writering-same-constants,ring-own-constantsring-old-slot-writering-refusalsheld-space-retaken(_held)bad_allocreaches the caller, and the held space is retaken and served after its serial completesheld-space-in-use(_held)^agc: 1130 passed, 74 skipped, 0 failed.GitHub ×10 on the head 7122193 (
^agc_driver_address_draw_space_reuse,^agc_driver_bda,^agc_bda, which takes perf(agc): share BDA fault buffers in a per-device arena, with 32-byte slots for report-only programs #8963's tests too) (run):A full
^agcsweep on the head 7122193, once each on GitHub's runners (run):agc_driver_pipeline_journal, which timed out at 120 s.Validation comparison (
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1,ctest -V;mainagainst this change, GitHub's Linux runner, llvmpipe), on 69a10da, the head before perf(agc): share BDA fault buffers in a per-device arena, with 32-byte slots for report-only programs #8963's main merge (run):was not foundappears 0 times in each;VUID-VkDeviceCreateInfo-pNext-pNext, in both, so the change adds none;Windows on an AMD GPU, by @JJenkx (comment): the head 7122193 merged locally onto
mainc3c45d7 (clean). Windows 11 Enterprise 10.0.22621, Ryzen 9 5950X, Radeon RX 6700 XT with AMD's driver 26.10.1 (Vulkan 1.4.315), WinLibs GCC 15.2.0, Release, with the Khronos validation layer 1.4.363 requested for every test.agc_driver_address_draw_space_reuse_tests,agc_driver_bda_device_testsandagc_driver_graphics_tests, the binaries this PR's test files build into, pass 3 of 3 runs each, with none skipped.Resident Evil Village (PPSA01556), Windows, on our Village measurement tree, not
main. That tree is cd88cee, a local measurement tree: an oldermain(merge base 949c9cf) with perf(agc): prove cached image tables from a write index behind APS5_TABLE_INDEX #12745, perf(agc): bypass the draw cache while its hit rate is under 5% #12478, perf(agc): keep an untracked fast proof across collect epochs on Windows while its write-watch hint has not moved #12921, fix(shader): load and store 16-bit data of converted packed images #11580, fix(agc): keep buffer owners when a staged address space dissolves #10304, perf(agc): cache CPU-path indirect draws behind APS5_DRAW_CACHE_INDIRECT #9243, perf(agc): forward an indirect record's patched user word as push data #9248 and perf(agc): queue all records of a CPU-path indirect draw behind APS5_PIPELINE_INDIRECT #1896 merged, plus perf(agc): share BDA fault buffers in a per-device arena, with 32-byte slots for report-only programs #8963 and this PR's five commits (6977068).Machine: NVIDIA GeForce RTX 3070 Laptop GPU, driver 617.42, Windows 11 (10.0.26300). GPU clocks were not held.
Profiled boot (
APS5_PROFILE_DRAW=1, menu +5 to +15 min, medians per 10 s): reused 3,336 (2,183 to 4,387), built 8, refused "not space-only" 152 and "space or epoch change" 768, and 0 snapshot refusals, of about 4,264 address-based draws. It renders like the same tree without this change.Unprofiled pair, A B B A, the same libraries in both arms:
APS5_NO_ADDRESS_DRAW_REUSE=1), and B has it on. So this measures this change over perf(agc): share BDA fault buffers in a per-device arena, with 32-byte slots for report-only programs #8963, with nothing else differing.APS5_LAZY_SHADER_PREPARE=1 APS5_NO_GPL=1 APS5_HOST_IMPORT_MIB=6400 APS5_TABLE_INDEX=1 APS5_PIPELINE_INDIRECT=1 APS5_DRAW_CACHE_INDIRECT=1 APS5_DRAW_CACHE_PUSH_WORD=1and the pad script. Warm shader cache, the same key in all four runs, 0 cache misses.Driver.Packet.draw−13.8 %,Graphics.Draw−15.2 %. Renders match by a static-region pixel diff at menu +5 and +10 min.Traces, captured as the Performance report form describes. One boot per arm with only
APS5_TRACE_SECONDS=960:30added: a 30 s window, 16 min into the menu hold.trace_digest.pyoutputs of both arms are at https://github.com/EagleBearerYS/AnyPS5/releases/tag/traces-bf325b.a142526, the five review commits above, on GitHub's runners:
^agc_driver_address_draw_space_reuse,^agc_driver_bdaand^agc_bda(run),agc_driver_address_draw_space_reuse_verifyincluded:mainagainst this head, the same tests, on GitHub's Linux runner (layer 1.3.275) (run):mainand 12 with this head, and neither log haswas not found;VUID-VkDeviceCreateInfo-pNext-pNext, so the change adds none.^agconce (run):agc_driver_pipeline_journaltimed out at 120 s, the cold-compile timeout this PR's earlier sweep also hit. Alone ×5 (run) it passes 5 of 5: 62.13 s for the first run, and about 5.1 s for each after.The review commits on a cloud Linux machine (lavapipe, LLVM 20.1.2, Mesa 25.2.8), this PR's set ×10 after each commit:
APS5_ASSERT_GPU_LOCK=1.^agcwith that switch, 447 of 1,150 tests abort at asserts that were already there, in harnesses that drive the device without the GPU lock:Recorder::Commands255,TextureDetiler::BeginBatch174,Recorder::Submit6,CommandBatch6, the heap mirror transfer 1 andKeepThroughHold1. None abort at the three new asserts.agc_driver_address_draw_space_reuse_verifyruns the default cases with the switch on and requires every served hit to be verified. At a142526 it verifies 76 of 76.Recorder::Keepthat throwsstd::bad_alloccovers three cases: an unrecorded early return, an exception during preparation, and a failed recording.terminate called after throwing an instance of 'std::bad_alloc'(exit 134).bad_allocreaches the caller in all three.multisample-target-insideplaces a resident 4x target in the draw's registered allocation, 32 KiB from the word the draw reads, between two draws.multisample-target-outsidekeeps the hit with and without the fix.global_load_dwordcrashes llvmpipe instead of reporting a fault. That crash also happens with the reuse off and with no multisample target, so it's outside this change.ctest -R '^(agc|shader)'1,163 passed, 75 skipped, 0 failed.Grand Theft Auto V (PPSA04263) and Diablo II: Resurrected, by @mrfelek (comment), on
main02c8efd with fix(shader): load and store 16-bit data of converted packed images #11580 and this PR's 7122193. Linux, Ryzen 9 5950X, RTX 3080 Ti (NVIDIA 615.71.09), Release; GPU clocks not reported.[rescache] address-based draws (10 s): reused 58, built 0, with every refusal at 0. That's about 2 address-based draws per frame of about 865, every one reused.APS5_NO_ADDRESS_DRAW_REUSE=1) and on, alternating, gave 60, 61, 61 and 61 presents per 20 s. That's level, as expected with this few draws on the path.address-based drawsline, so none of its draws take this path.ba0b958, a merge of
main0836dfd (run). build(agc): register each AGC test executable in its own CMake fragment #12862 movedlibSceAgcDriver's test registrations intotests/cmake/; the conflict inCMakeLists.txtis resolved withtools/agc_test_split.py resolve, which moves this PR's_off,_transitionsand_verifyregistrations into a newtests/cmake/agc_driver_address_draw_space_reuse_tests.cmake(+20). Nothing else conflicted. feat(agc): look up table images at run time through a device image table on the GPU heap (APS5_GPU_PATH) #7642 creates a fragment of the same name for its own variants, so whichever of the two lands second keeps both sets there. Apart from the move, this PR's diff is unchanged. With-DBUILD_TESTING=ON,ctest -Ngives 3079 tests:main's 3075 plus its 4 tests, each listed once. The 12 tests matching^agc_driver_address_draw_space_reuse|^agc_driver_bda|^agc_bdapass 10 runs in a row. Linux: 12 run, 12 pass, 0 skip, 0 fail. Windows: 12 run, 1 pass, 11 skip (no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (199 and 308) and on Windows (226 and 330). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.023b4a2, a merge of
main5f0857e, which brings tibzejoker's perf(agc): keep a resource set's import proof across registry changes that leave the imports in place #7261 (×10, validation).ShaderResources::noteReusable, where perf(agc): keep a resource set's import proof across registry changes that leave the imports in place #7261 resetsimportsReconcilableand this PR resetsspaceReuseon the same line. The merge keeps both resets,main's first. The two flags are independent:importsReconcilableis set again on the direct-regions path, andspaceReuseon the space-reuse return. Nothing else conflicted, and this PR's diff is unchanged.agc_driver_host_import_proofs. Linux: 13 run, 13 pass, 0 skip, 0 fail. Windows: 13 run, 1 pass, 12 skip (no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (206 and 308) and on Windows (233 and 330). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.VK_LAYER_KHRONOS_validationon GitHub's Linux runner),main5f0857e against this merge, for the same tests. The layer was inserted in both arms, 9 times onmainand 13 with this merge. The only VUID in either arm isVUID-VkDeviceCreateInfo-pNext-pNext, so the merge adds none.NVIDIA RTX 2000 Ada Generation at 023b4a2, from TechLevelZero's NVIDIA bot (report): this head merged onto
maine6f5730, driver 595.99.02, Ubuntu 26.04.1, 2,536 of 3,148 tests selected.main, and 4 are unstable onmain.VK_LAYER_KHRONOS_validation, no new validation IDs over 935 GPU tests. This PR'sagc_driver_address_draw_space_reusepassed on the GPU; it isn't inmain's baseline, so its validation wasn't compared.agc_driver_draw_cache_reuseandagc_driver_draw_cache_relocationpassed too.7aeb568, a merge of
main88e804b (run). Two conflicts, each a pair of additions at the same place, and the merge keeps both: this PR'sBdaResources.hppinclude inRecorder.cppbesidemain'sReferenceStorage.hppinclude, and this PR's "Reused address-based draw builds" entry indocs/dev/debt/libSceAgcDriver.mdbesidemain's new pixel-interlock entry. This PR's diff overmainis unchanged. The address-draw reuse, BDA and host-import proof tests (^agc_driver_address_draw_space_reuse,^agc_driver_bda,^agc_bdaand^agc_driver_host_import_proofs) pass 10 runs in a row. Linux: 14 run, 14 pass, 0 skip, 0 fail. Windows: 14 run, 2 pass, 12 skip (the Vulkan tests; no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (210 and 310) and on Windows (237 and 331). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners. TechLevelZero's NVIDIA bot ran this head merged ontomain88e804b on an RTX 2000 Ada (report): 2,554 passed, 4 failed, none new (3 also fail onmain, 1 unstable onmain), 45 skipped, with no new validation IDs (974 tests on the GPU).831bf99, a merge of perf(agc): share BDA fault buffers in a per-device arena, with 32-byte slots for report-only programs #8963's 972242f, oneandonlydean's merge of
maina4eca2a into perf(agc): share BDA fault buffers in a per-device arena, with 32-byte slots for report-only programs #8963. It merged without conflicts: perf(agc): share BDA fault buffers in a per-device arena, with 32-byte slots for report-only programs #8963's merge already holds bothdocs/dev/ENVIRONMENT.mdrows, perf(agc): share BDA fault buffers in a per-device arena, with 32-byte slots for report-only programs #8963'sAPS5_NO_SHARED_FAULT_SLOTSand Gonic0'sAPS5_NO_SHARED_GDSfrom perf(agc): back the GDS with anonymous shared memory on integrated GPUs and keep its DMA_DATA on the GPU #13159, which were added at the same place. This PR's diff over perf(agc): share BDA fault buffers in a per-device arena, with 32-byte slots for report-only programs #8963 is unchanged. On GitHub's runners (run, on dbbaaad, our direct merge ofmaina4eca2a into 7aeb568, which has the same tree), the address-draw reuse, BDA and host-import proof tests (^agc_driver_address_draw_space_reuse,^agc_driver_bda,^agc_bdaand^agc_driver_host_import_proofs) pass 10 runs in a row. Linux: 14 run, 14 pass, 0 skip, 0 fail. Windows: 14 run, 2 pass, 12 skip (the Vulkan tests; no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (235 and 319) and on Windows (262 and 340). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.8d2bb98 names the reuse measurement's title by its ID only in the debt entry (
PPSA01556's menu), as the debt files do, at @oneandonlydean's ask.0b82601, a merge of
main5cb015c (run). The one conflict was indocs/dev/debt/libSceAgcDriver.md, wheremain's perf(recompiler): back compute scratch with a device buffer slot pool #12764 adds three compute scratch pool entries at the place this PR's reuse entry sits. The merge keeps both,main's first. This PR's diff overmainis unchanged. The address-draw reuse, BDA and host-import proof tests (^agc_driver_address_draw_space_reuse,^agc_driver_bda,^agc_bdaand^agc_driver_host_import_proofs) pass 10 runs in a row. Linux: 14 run, 14 pass, 0 skip, 0 fail. Windows: 14 run, 2 pass, 12 skip (the Vulkan tests; no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (279 and 321) and on Windows (306 and 342). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.8139afd and 5479721, the retention and its tests, on the merge 0b82601. The address-draw reuse tests with the new
_heldregistration, and the BDA, host-import and write-tracking tests (^agc_driver_address_draw_space_reuse,^agc_driver_bda,^agc_bda,^agc_host_import,^agc_write_tracking,^agc_driver_host_import_proofs), pass 10 runs in a row on GitHub's runners (run). Linux: 20 run, 19 pass, 1 skip (agc_host_import_sparse, no/dev/udmabuf), 0 fail. Windows: 25 run, 7 pass, 18 skip (no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (279 and 321) and on Windows (306 and 342). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.^agconce (run): Windows 1,295 run, 397 pass, 898 skip (no Vulkan device), 0 fail. Linux 1,258 run, 1,176 pass, 80 skip, 2 fail, both also onmain:agc_driver_image_sample_lod_clamp_shader_lane(main's fix(agc): bind a T# minimum LOD through an S# that holds the LOD at 0 #12980 test, which fails the same withmain's code) andagc_driver_pipeline_journal, which timed out at 120 s on its cold compile, as in this PR's earlier sweeps.8942229 and cfec53d, merges of
main086c068 and 04a9eb4, on oneandonlydean's merge ofmain4f41f4c (a80d36f).Graphics/src/Draw.cpp:recordDraw, JAB-dev's feat(agc): draw partial writes of multisampled 4_4_4_4 targets into a temporary target #11557 adds|| !record.staged.empty()to theStartDrawPasscondition, the line before this PR'sspaceKeepreservation. The merge takesmain's condition and keeps the reservation after it.prepareDraw, JAB-dev's feat(agc): publish a written native multisample D32S8 surface to its guest planes on a guest read #13021 notes the depth surface write right after the draw's resources are resolved, where this PR's injected stop after resolve sits. Both stay, the stop first, so an injected failure notes no depth write.mainis otherwise unchanged.agc_driver_graphicstests, with feat(agc): publish a written native multisample D32S8 surface to its guest planes on a guest read #13021'sagc_driver_native_depth_publication. Linux: 27 run, 26 pass, 1 skip (agc_host_import_sparse), 0 fail. Windows: 32 run, 9 pass, 23 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 300 and 324 tests on Linux and 330 and 342 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners. The set without feat(agc): publish a written native multisample D32S8 surface to its guest planes on a guest read #13021's test, which isn't inmain086c068, passed 10 runs on 8942229 alone (run).main, 3 unstable onmain), 48 skipped. The bot's selection that run didn't include this PR'sagc_driver_address_draw_space_reuse_*tests, so they haven't run on that GPU at this head.main1c8c0ef, driver 595.99.02. 2,788 passed, 7 failed (none new: 3 also fail onmain, 4 unstable onmain), 50 skipped. No new validation IDs over 956 GPU tests. Of this PR's tests,agc_driver_address_draw_space_reuseran and passed. The_held,_off,_transitionsand_verifyregistrations weren't in the bot's selection.main, 2 unstable onmain), 61 skipped. No new validation IDs over 956 GPU tests.agc_driver_address_draw_space_reusepassed (2.95 s), and again the other four weren't selected.c6daa9a and 342b06e, by oneandonlydean: a merge of
mainc2eafe4, without conflicts, andtest(libSceAgcDriver): give each held-batch completion fill a new pattern. meh7an's perf(agc): elide a repeated fill of a range that still holds its pattern #10668 makesFillBufferskip a fill whose range already holds the same pattern, so the held-batch test's repeated zero fill recorded nothing and never submitted the batch holding the space. Each completion fill now has a new pattern.agc_host_import_sparse), 0 fail. Windows: 32 run, 9 pass, 23 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 301 and 325 tests on Linux and 331 and 343 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.Checklist
main; no other open PR implements the same functions (see Overlap: feat(agc): GPU descriptor heap on VK_EXT_descriptor_heap (APS5_GPU_HEAP) #9508's pieces are taken with its author's agreement)NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file: n/a, none added. The reuse's unmeasured cases are in its debt entry.mdfiles or images added to the repository (attach them to this PR)