Repository navigation
perf(agc): expand an HTILE on the GPU behind a pending mask clear kernel - #8105
Conversation
|
This pull request is labeled |
|
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.
|
|
The #7233 RTX run exposed an ordering detail that likely affects this buffer-mask path: I am prototyping #7233 so recognition leaves the clear pending and the baseline is armed after resource imports, immediately before GPU writes are recorded. Your |
|
I checked the call flow more closely. A shared path should work without changing your mask-write tracking: when Would you be comfortable sequencing #7233 first and rebasing #8105 on that API, or do you prefer another shared hook? The rebased #7233 prototype is local and not pushed yet; I want to avoid landing incompatible lifecycle changes. |
|
@MarcZX10, I checked this against #8105 and you're right. The buffer kernel goes through the same I'm fine with #7233 going first. The If your rebased version arms the baseline inside |
|
This one has no The traced frames of the closest pair don't show a frame-time difference beyond our run-to-run noise. That pair is the same scene, machine and environment, presents 880-891, before and after only this recognition: frame p50 went from 2,763 to 2,704 ms, but GPU busy went from 1,069 to 1,192 ms per present, and p90/p99 got worse in that window. Two runs of one build here have differed by 18% in p50. Where the saved time did show up is the queue-0 committer: it was 61% busy before and 46% after, in the untraced windows. A Summary lines (our tree, not main)Before (long31-s1e5): After (long33-s1e5h): |
|
Tested on RTX 3080 (NVIDIA 617.42) and AMD Radeon RDNA 2 iGPU ( AI-assisted: yes (Claude Code). |
3bcacf5 to
446a4fc
Compare
adriadam10
left a comment
There was a problem hiding this comment.
htileAfterMaskClear(DepthSurface.cpp:1435-1439) returns "cleared" without checking the ZMask bits of the mask: without stencil it never checksclear->mask & 0x3f0, and with stencil and a stencil value of 0 it returns before checkingmask & 0xf0. The kernel computes(word & mask) | value, so a set mask bit keeps the earlier word's ZMask, which the description says must not happen ("the ZMask bits don't depend on the earlier words").RecordedMaskClearClearsWithoutWait(DepthFastClearSubmit.cpp:284-286) fills words with a non-zero ZMask (0x010 & mask, ...) and still expects a cleared depth, so it pins this behaviour instead of catching it. Please require the ZMask bits ofmaskto be 0 andvalueto give a cleared ZMask in every branch, and add a case where the mask keeps a non-zero ZMask and the read-back path is expected.- The
perflabel needs theaps5-summary.jsonlline ofmainand of the change from the same title, scene and machine, plustools/trace_digest.pyoutput (bot comment above). The description says there is nomainsummary for the Yōtei scene; please capture both. - #7233 and #7371 change the same
NoteHtileDepthClearcall inDispatch.cpp, and the thread with MarcZX10 agreed to sequence #7233 first; list it under Depends on and rebase once it lands.
446a4fc to
dd0cb98
Compare
|
Thanks for the careful read. I went through The 0x3f0 bits aren't ZMask. With stencil in HTILE they hold the stencil state (SMem is 9:8). Without stencil they're part of Min/Max Z, which a cleared tile doesn't use ( You're right that the read-back case wasn't covered, though, so I added On Depends on: the current head doesn't use anything from #7233. It builds and passes on main alone, so I've left the field at none for now. Once #7233 lands, the plan is still to rebase onto its API (setting The branch is also rebased onto current main (dd0cb98). |
dd0cb98 to
72e3eab
Compare
72e3eab to
18e8a76
Compare
|
@MarcZX10, the rebase onto #7233's API is done (18e8a76). The buffer branch in The test I promised sits next to your |
adriadam10
left a comment
There was a problem hiding this comment.
Re-checked 18e8a76 against the earlier review:
- ZMask: you are right, I withdraw that point.
htileAfterMaskClearreturns no clear whenmask & 0xforvalue & 0xfis non-zero (DepthSurface.cpp:1685), and ZMask is bits 3:0, so the0x3f0bits are not ZMask.RecordedMaskKeepingZMaskReadsBacknow pins the read-back case. - #7233 and #7371 are merged and the rebase onto
htileClearCompletionplus the PM4agc_driver_native_depth_buffer_cleartest look right. - Still open: this is a
perfPR. Please paste theaps5-summary.jsonlline ofmainand of the change from the same title, scene and machine, and thetools/trace_digest.pysummaries of both (attach the traces). The Yōtei numbers from your own tree don't replace amaincapture; if the Yōtei scene can't be run onmain, a synthetic depth-clear scene run on both works.
Nothing else to change.
❌ NVIDIA GPU test: failedPR head
Failing testsThis PR changes test files, so each failing test was also built and run on main with only the PR's test changes applied. ✅ there means the failure comes from the PR's other changes; ❌ means the test fails on main too, so this run does not show the PR caused it.
agc_driver_native_depth_buffer_clear: Failed (also failed when re-run alone), assertion and diagnosticsIntermittent validation messages (1, seen once in the parallel run, not reproduced when the test was re-run alone 2 times; not counted against this PR)Failing on main too (5, 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 (1, not in the main baseline's validation pass)Validation IDs already present on main (4 IDs in 436 tests)Skipped (39)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. |
|
The new NVIDIA run from 10:44 reports Your earlier Windows report says the same test exercises the refusal path when the import is not write-watched, so please reconcile the two outcomes: does this Linux failure reflect an expected unsupported-host path, or does it expose a regression in the buffer-clear completion/refusal handling? If expected, please make the test/report distinguish that limitation and provide a meaningful baseline/control; if not, fix it and rerun the focused test. I have not reproduced the GPU failure locally. |
|
Static review plus an independent Linux/AMD run on both trees per the repo AGENTS AGC protocol (CachyOS, kernel 7.2.10, GCC 16.2.1, Ninja 1.13.2, Release, What I checked (static)
Focused paired run (AGENTS AGC protocol, VVL env)
Both logs: 0 Not covered The |
jotitadev
left a comment
There was a problem hiding this comment.
On the NVIDIA failure of agc_driver_native_depth_buffer_clear that @MarcZX10 asked about: it is not specific to that host. The test passes on the PR's own base and fails once the PR is merged with current main. Two merges from 28-30/10 now refuse the buffer kernel's HTILE write.
Setup: Ubuntu 26.04, GCC 15.2, Release, BUILD_TESTING=ON, lavapipe (Mesa 26.0.3; write-watch reports host imports keep write protection: yes). Head 18e8a7618d, main ed1e0ed08f.
| tree | agc_driver_native_depth_buffer_clear |
|---|---|
PR merged onto its merge-base 3a2ca40dab |
passes |
PR merged onto main ed1e0ed08f |
fails 3/3: compute shader ...: AGC graphics: sample-preserving guest publication of native multisample depth is not implemented (same message as the NVIDIA run) |
Cause: a first-parent git bisect (PR merged at each step) lands on #11369 (26c2097, 28/10). It added RequireNoResidentDepthRead_nid_no_patch over every writable buffer range in GuestBufferMemory::UploadFinish. #6498 (341cf8b, 30/10) then added RequireNoMultisampleTarget(..., "a shader buffer access") in ShaderResources::requireGuestBuffers.
The buffer variant of the mask clear binds the HTILE through a writable V#. Both checks see a buffer over the HTILE guard of a resident, host-written native 4x depth and throw, even though NoteHtileDepthClear already accepted that dispatch as the clear transition (clearPending). The global-store kernel does not go through a descriptor buffer, so DriverDispatch is unaffected. With both checks removed (diagnostic only), the focal passes 3/3. Removing only #11369's line still fails, because #6498's check catches it.
A fix that works here (22 lines, attached below): exempt a buffer range at those two call sites only when every resident depth guard it overlaps is the HTILE of a surface whose recognized clear is in flight (clearPending || clearGeneration != 0, no refusal). Anything else still goes through the existing checks, and CompleteHtileDepthClear still checks for racing CPU writes.
diff on top of the merge
diff --git a/core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp b/core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
index b29d2d0e3b..dfe967888a 100644
--- a/core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
+++ b/core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
@@ -40,6 +40,8 @@ std::uint64_t DirectDepthCopyCount();
std::uint64_t MultisampledDepthBytes_nid_no_patch(VkExtent2D extent, std::uint32_t bytesPerTexel, std::uint32_t samples);
void RequireNoResidentDepthRead_nid_no_patch(std::uint64_t address, std::size_t bytes);
void AppendHostWrittenDepthRanges(std::uint64_t address, std::size_t bytes, std::vector<std::pair<std::uint64_t, std::uint64_t>>& ranges);
+// True when every resident native depth guard over the range is the HTILE of a surface whose recognized clear is in flight.
+bool AcceptedHtileClearCovers_nid_no_patch(std::uint64_t address, std::size_t bytes);
bool HasResidentDepthGuards_nid_no_patch();
void RetireUnmappedDepth_nid_no_patch(std::uintptr_t address, std::size_t bytes);
void RequireNoNativeDepthFeedback_nid_no_patch(const Context& context, const DepthTarget& target, std::span<const std::shared_ptr<Texture>> sampled);
diff --git a/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp b/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
index ef143dde32..219c52c891 100644
--- a/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
+++ b/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
@@ -2161,6 +2161,22 @@ void AppendHostWrittenDepthRanges(std::uint64_t address, std::size_t bytes, std:
}
}
+bool AcceptedHtileClearCovers_nid_no_patch(std::uint64_t address, std::size_t bytes) {
+ if (bytes == 0u || !anyDepthGuard().load(std::memory_order_acquire)) return false;
+ std::lock_guard lock(surfacesMutex());
+ std::shared_lock guardLock(depthGuardMutex());
+ bool any = false;
+ for (const auto& range : depthGuards()) {
+ if (!(address < range.address + range.bytes && range.address < address + bytes)) continue;
+ const bool clearing = std::ranges::any_of(surfaces(), [&](const auto& surface) {
+ return surface->active == range.active && surface->samplingActive && surface->sampling.refusal.empty() && (surface->clearPending || surface->clearGeneration != 0u) && surface->sampling.initial[1].address == range.address && surface->sampling.initial[1].bytes == range.bytes;
+ });
+ if (!clearing) return false;
+ any = true;
+ }
+ return any;
+}
+
void NoteDepthSurfaceWrite(const Context& context, const DepthTarget& target) {
if (target.samples == 1u || !anyDepthGuard().load(std::memory_order_acquire)) return;
std::lock_guard lock(surfacesMutex());
diff --git a/core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp b/core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
index 4658630beb..c25abf26cf 100644
--- a/core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
+++ b/core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
@@ -5450,7 +5450,9 @@ void GuestBufferMemory::UploadFinish(bool addressable) {
if (space != nullptr) completeSpaceWrites();
uploaded = true;
for (const auto& region : regions) static_cast<void>(FlushDepthPlanes(region.begin, static_cast<std::size_t>(region.end - region.begin)));
- for (const auto& [begin, end] : writes) RequireNoResidentDepthRead_nid_no_patch(begin, static_cast<std::size_t>(end - begin));
+ for (const auto& [begin, end] : writes) {
+ if (!AcceptedHtileClearCovers_nid_no_patch(begin, static_cast<std::size_t>(end - begin))) RequireNoResidentDepthRead_nid_no_patch(begin, static_cast<std::size_t>(end - begin));
+ }
for (const auto& [begin, end] : writes) StorageTexture::FlushPending(begin, static_cast<std::size_t>(end - begin), nullptr, "written buffer range");
if (context.hostImportAlignment != 0) {
auto& state = Imports();
diff --git a/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp b/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
index e67f52d882..89e384febb 100644
--- a/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
+++ b/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
@@ -5910,7 +5910,7 @@ void ShaderResources::requireGuestBuffers(std::span<const MovedBuffer> moved) co
const auto override = std::find_if(moved.begin(), moved.end(), [&](const MovedBuffer& entry) { return entry.allocation == index; });
const auto address = override != moved.end() ? override->address : item.address;
const auto bytes = override != moved.end() ? override->size : item.size;
- RequireNoMultisampleTarget(address, bytes, "a shader buffer access");
+ if (!AcceptedHtileClearCovers_nid_no_patch(address, bytes)) RequireNoMultisampleTarget(address, bytes, "a shader buffer access");
}
}
With it, on the merge with ed1e0ed08f:
- focal 3/3;
^agcsuite (without display/flip/lds64) 1129/1129 on lavapipe.mainalone is 1128/1128; the extra test is the new one.- #11369's buffer-write cases (
a GPU buffer write over the depth or HTILE released the unwritten surface, D16/D32 x 4/8 samples) and #6498'sagc_driver_sample_multisample_targetstill pass.
The test also prints skipped native HTILE write-coverage assertion on lavapipe, both on the base and with the fix, so that assertion isn't exercised on this host.
The authors may prefer to put the exemption somewhere else (for example, passing htileClearCompletion down to the bind). I'm only showing that the guard interaction is the cause.
GPUs tested: lavapipe (Mesa 26.0.3) only.
Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
18e8a76 to
c8051ed
Compare
|
I reproduced the failure 3/3 on the RTX 3080 Laptop with this PR applied to The update passes the recognized clear's HTILE range through preparation, upload and binding, allowing it only while the matching native owner has The focal now passes 3/3 on NVIDIA; all eight focused tests pass there with three repetitions, and 8/8 pass on Windows lavapipe. The seven common tests pass on |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — changes requested
The new process-wide HTILE-mask registry can mistake an unrelated write for a prior mask clear after a Recorder is recreated and its local write-note counter restarts.
What I ran
Reviewed head c8051ed3bab05296a22f49141a0553cefa10d837 against PR base de824c2919ca65086c6324a1e0388866a7327eea; the no-build merge preview against current main was clean. Environment: Linux x86_64, GCC 12.2.0, Python 3.11.2. I did not build or run C++/GPU tests.
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 8105Results
| Check | Result |
|---|---|
| Diff check and conventions | Passed. |
| Dependency/mergeability preview | Passed; clean against current main. |
| Hosted CI on this head | Windows, conventions, library-portability, and labels were queued at the final check; Linux, relinker, ASAN, register-context, and write-watch were skipped. Eligibility and report passed. |
| Author-reported focused testing | The author reports the guard regression reproduced 3/3 before the fix and passed 3/3 after it on an RTX 3080 Laptop; the eight focused tests passed with three repetitions on NVIDIA and once on Windows lavapipe. Linux, AMD, Intel, and title testing are reported as not run for this update. |
| Precheck helper execution | The isolated checkout lacked the ABI and test-quality helper scripts; this is a precheck harness issue, not a PR failure. |
Selected unedited precheck output
All conventions checks passed.
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-8105-c8051ed3bab0/head-c8051ed3bab0-acd88d27/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-8105-c8051ed3bab0/head-c8051ed3bab0-acd88d27/tools/pr_test_quality.py': [Errno 2] No such file or directory
Conclusion: checks failed
Negative control
| Assertion | Mutation/change | Result |
|---|---|---|
| A stale mask record cannot authorize a later recorder's unrelated write | Recreate the recorder, reuse the guest HTILE address and local write-note value, then call the readback path | Not run; the current tests do not cover recorder identity reuse. |
Findings
Blocking
HtileMaskWrite stores only the clear range/pattern and Recorder::PendingWritesOver's numeric note. htileAfterMaskClear accepts a record when its note equals Recorder::NewestWriteNote and the ranges cover. The write-note counter is per Recorder and starts at zero for each instance. The registry is process-static, capped at 64 entries, and otherwise entries survive until the 64-entry cap evicts them; ClearDepthSurfaces does not clear this registry. Thus a later recorder can produce the same note for an unrelated write to a reused guest address, causing the stale mask record to be accepted and the HTILE data to be expanded as if the old mask clear were still authoritative. This can produce incorrect depth/stencil contents.
Key each record and lookup to a unique recorder identity/generation (or make write-note IDs globally unique), and retire that recorder's records when its state is cleared. Add a regression test that recreates a recorder, reuses the address/note, and proves the unrelated write takes the ordinary readback path.
Non-blocking
The newly reported GPU regression fix and its focused tests are useful evidence, but they do not exercise this recorder-lifetime collision.
Sources
- Registry lookup and note storage at the reviewed head
- Mask-note registration and overlap eviction at the reviewed head
- Per-instance write-note counter and initialization on current base
- Recorder construction and device cleanup on current base, depth-surface cleanup
- Author's report of the guard fix and GPU runs
Not verified
I did not run builds, C++ tests, GPU tests, Linux/macOS validation, or console/title behavior. The author-provided GPU results were not independently reproduced.
To get this to a good state
Please bind mask records to a unique recorder generation, clean them up with that owner, and add the recorder-reuse regression test. I will rerun the same checks on the new head.
adriadam10
left a comment
There was a problem hiding this comment.
Thanks for the guard fix. Agreeing with @MarcZX10's blocking point, checked against the code:
HtileMaskWrite(DepthSurface.cpp:1864) stores only the clear and a write-note number, andhtileAfterMaskClear(DepthSurface.cpp:1886) accepts a record whenwrite.note == newestand the ranges cover. The note isRecorder::writeNoteCount, a per-instance counter that starts at 0 (Recorder.cpp:3000), whilehtileMasks()is process-static andClearDepthSurfaces(DepthSurface.cpp:2689) does not touch it. After a device/recorder is recreated, an unrelated write to a reused HTILE address can get the same note and be expanded as if the old mask clear were still pending.- Fix: key each record to its owner (the recorder, or a generation that is unique per recorder), compare it in
htileAfterMaskClear, and erase the owner's records inClearDepthSurfacesfor that device. - Test: recreate the recorder, reuse the HTILE address and the same note value for an ordinary write, and assert the bind takes the readback path (words read back,
ThreadHookWaitsincreases). It must fail without the owner check.
The guard change itself (recognized clear's range passed through preparation, upload and binding, only for the pending native owner, no resource/recipe cache) looks right to me.
Record an HTILE clear's mask/value with its pending note and recorder ID. When that write covers the HTILE and determines its ZMask/SMem bits, expand the metadata on the GPU without a readback. Retire mask proofs with their recorder or depth device, preserving other owners and the bounded cache's conservative overlap invalidation. Recognize the structured-buffer variant and carry its completion range through preparation, upload and binding. Admit only that range while its native owner has a pending clear, retaining color guards and excluding these resources from dispatch and recipe caches. Cover store-back, PM4 buffer clears, guard refusals, recorder recreation, live owner isolation and scoped cleanup with GPU byte/wait assertions. AI-assisted: yes
c8051ed to
448aa81
Compare
|
@MarcZX10 @adriadam10 I reproduced the recorder-lifetime collision from MarcZX10's review and adriadam10's review, and fixed it in 448aa81. The new regression recreates a recorder in the same storage, reuses the HTILE address and note 1, then records an ordinary GPU write. Before the fix it failed all three runs: no readback wait, and the ordinary words were overwritten with expanded clear metadata. The lookup now checks the existing monotonic recorder ID as well as the note; teardown removes that recorder's proofs, and depth cleanup removes proofs for that device. The global 64-entry bound and conservative overlap invalidation remain.
|
|
Re-checked 448aa81 against the recorder-lifetime blocker and the earlier points. |
Conflicts, each resolved by keeping both sides: - docs/dev/ENVIRONMENT.md: rows APS5_GPU_HEAP, APS5_GPU_HEAP_EXCLUDE, APS5_GPU_PATH, in name order. - core/libs/prx/libSceAgcDriver/CMakeLists.txt: the WIN32 PATH set_tests_properties line carries both sides' test names in one list: agc_shader_table_trailer and agc_shader_device_image_tables from this branch, agc_driver_image_table_cache_bounds_heap_small and agc_driver_image_table_store_gpu_heap from boykopovar#9508. - VulkanDevice::Target(): both assignments, deviceImageTables first, then heapDataUniformDwords. ShaderResources.cpp merged without a conflict and keeps boykopovar#9508's own resolution of boykopovar#8105 from dd7120c, so a build with an HTILE mask clear is never reusable, address-space reuse included.
What
Binding a depth target behind an HTILE mask clear waited for GPU readback. Record its mask/value with the newest pending write and unique recorder ID; expand on the GPU when that write determines ZMask/SMem across the HTILE. Other patterns read back. Accept the structured-buffer variant seen in Ghost of Yōtei (PPSA26344).
The recorder-lifetime collision reported by @MarcZX10 and @adriadam10 is fixed by checking owner identity, removing its proofs at recorder teardown, and removing device proofs at depth cleanup. The global 64-record bound and conservative overlap invalidation remain.
The recognized clear carries its HTILE range through preparation, upload and binding. Only its pending native owner admits that range; ordinary writes, depth-plane accesses and color guards retain their checks. The exception ends at arm and cannot enter resource/recipe caches. @jotitadev's reproduction and supplied patch guided this guard fix.
Related: #7002 changes buffer/color checks. #7642/#9508/#6412/#10193 change reuse gates. #9533/#9717/#9742 extend clear fixtures. #9950/#10492/#10469/#10497 publish native depth through the fallback guard. #13021/#13023 add publication arguments and #6804 adds a
PrepareDispatchparameter; compose those with this range. #6300/#6808 extend clear-generation proofs. #11602/#6192/#12921 change HTILE proof stamps; #10940 device-scopes texture write-back. None supplies this dispatch allowance or recorder-mask ownership; retain their independent refusal conditions.Tested
main0835ec8,-DBUILD_TESTING=ON: four focused targets build. NVIDIA: 9/9 tests, each repeated three times; lavapipe: 9/9 once.ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest -V: layer loaded, no VUID errors. Registration and conventions pass.agc_driver_htile_mask_lifetimefails 3/3 on the previous PR rebased onto this main: reused recorder storage, HTILE address and note 1 turn ordinary0x0000000fwords into0xfffc000fwithout readback. All eight GPU assertions now run and pass: recreated/live owner isolation, same-owner fast path, recorder cleanup and both owners of a cleared device while preserving another device's proof. Checks compare bothThreadHookWaitsand metadata bytes.agc_driver_native_depth_buffer_clearregression failed 3/3 before its guard fix; that test and seven neighbors remain in the current passing set. Historical paired main e2df06e controls passed 7/7 on both drivers; those controls were not rebuilt this round. Recorder/DepthSurface production files are unchanged between that main and 0835ec8.Historical performance evidence, 24 October; no new performance claim for the guard or lifetime fixes
mainvs the original change on the same machine (RTX 3080 Laptop, driver 610.62, Windows 11), Ghost of Yōtei (PPSA26344 v1.008) title menu from the same save with no input, warm caches, interleaved runs in one session, perf-report protocol (onlyAPS5_TRACE_FRAMES=150:60, noAPS5_PROFILE_*):maina5a2c94 againstmaina5a2c94 + this PR. Frame p50 131.9 ms (3 runs) against 133.6 ms (2 runs), GPU busy 77.7 against 80.5 ms per present. That's inside the run-to-run spread (main's three runs: 128.2-135.1 ms), as expected for a scene that doesn't exercise this path; our open-world numbers, from our own tree, are in the comments. Traces andtools/trace_digest.pyoutput per run: pl-main-1, pl-main-2, pl-main-3, pl-8105-1, pl-8105-2.aps5-summary.jsonl, pl-main-3 and pl-8105-1 (the run closest to each side's mean; `title` written as `ō`, since the summary writer double-encodes it and GitHub mangles that escape){"commit":"a5a2c946a3a9","dirty":false,"env":{"APS5_NO_CLEAR_HAND_OVER":"1","APS5_NO_DEFERRED_SETTLES":"1","APS5_NO_PAD_INPUT":"1","APS5_NO_PIPELINE_JOURNAL":"1","APS5_NO_RESIDENT_LINEAR":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_RESOURCE_CACHE_ENTRIES":"1024","APS5_TRACE_FRAMES":"150:60"},"gpu":"NVIDIA GeForce RTX 3080 Laptop GPU","driver":"NVIDIA 610.62","os":"Windows 10.0.26200","cpu":"11th Gen Intel(R) Core(TM) i9-11900H @ 2.50GHz","cpu_threads":16,"memory_mib":32469,"title_id":"PPSA26344","title":"Ghost of Yōtei","content_version":"01.008.000","resolution":"3840x2160","window":{"spec":"frames 150:60","first_present":150,"ms":11388.409},"presents":60,"frame_ms":{"p50":132.237,"p90":378.788,"p99":2488.458,"max":2488.458},"gpu_busy_ms_per_present":76.739,"worker_busy_pct":{"queue worker 0x0":61.336,"queue worker 0x20":12.709,"queue worker 0x52":10.897,"queue worker 0x53":12.001,"queue worker 0x30":43.438,"queue worker 0x38":50.980,"queue worker 0x48":3.931},"top_phases_ms_per_frame":{"Driver.Packet":363.867,"Shader.PrepareArtifact":329.176,"Driver.Packet.dispatch":163.759,"Driver.Packet.memory_wait":130.658,"Driver.Dispatch":116.659,"Driver.Packet.prepare_memory":46.855,"GpuMutex.wait.dispatch":32.057,"Shader.Register":29.105},"trace_dropped":false,"trace":"aps5-trace-a5a2c946a3a9-16452.json.gz"}{"commit":"b2bea6d90d06","dirty":false,"env":{"APS5_NO_CLEAR_HAND_OVER":"1","APS5_NO_DEFERRED_SETTLES":"1","APS5_NO_PAD_INPUT":"1","APS5_NO_PIPELINE_JOURNAL":"1","APS5_NO_RESIDENT_LINEAR":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_RESOURCE_CACHE_ENTRIES":"1024","APS5_TRACE_FRAMES":"150:60"},"gpu":"NVIDIA GeForce RTX 3080 Laptop GPU","driver":"NVIDIA 610.62","os":"Windows 10.0.26200","cpu":"11th Gen Intel(R) Core(TM) i9-11900H @ 2.50GHz","cpu_threads":16,"memory_mib":32469,"title_id":"PPSA26344","title":"Ghost of Yōtei","content_version":"01.008.000","resolution":"3840x2160","window":{"spec":"frames 150:60","first_present":150,"ms":12317.426},"presents":60,"frame_ms":{"p50":128.450,"p90":361.446,"p99":3476.353,"max":3476.353},"gpu_busy_ms_per_present":75.766,"worker_busy_pct":{"queue worker 0x0":56.658,"queue worker 0x52":9.090,"queue worker 0x20":10.824,"queue worker 0x53":10.181,"queue worker 0x30":39.973,"queue worker 0x38":46.768,"queue worker 0x48":4.182},"top_phases_ms_per_frame":{"Shader.PrepareArtifact":452.689,"Driver.Packet":359.164,"Driver.Packet.dispatch":157.312,"Driver.Packet.memory_wait":130.349,"Driver.Dispatch":113.443,"Driver.Packet.prepare_memory":45.684,"Shader.Register":33.281,"GpuMutex.wait.flush":29.871},"trace_dropped":false,"trace":"aps5-trace-b2bea6d90d06-17424.json.gz"}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)