fix(agc): restore a repeated replay pass from the captured memory #17338

Merged
chitters2004 merged 22 commits from upstream-pr/17338 into main 2026-11-21 11:00:21 +00:00
chitters2004 commented 2026-11-08 18:18:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by chitters2004 on 2026-11-08T18:18:17Z.


What

agc_frame_replay --repeat could not repeat a capture whose frames draw into native multisample depth. On Windows, pass 2 stopped with guest writes over native multisample depth are not implemented. On Linux, pass 2 silently started from the depth pass 1 left. This PR makes every pass start from the captured memory and rewrites only the pages a pass left different from the capture. Three commits:

  1. fix(agc): watch the captured ranges the title watched when replaying on Linux. A capture records which ranges the driver watched (FrameRangeKind::Watched). On Linux the replay committed those ranges but never registered them with the guest write watch, which libkernel does for every title mapping, so native multisample depth owners were never eligible for their guards and unmap retirement. The replay now registers every Watched range (widened to whole pages), including one that already sits in a writable mapping, and throws if GuestWriteWatchCovers does not report it covered. The error names the failing part through GuestWriteWatchUnavailableReason: build headers older than Linux 6.7, the kernel feature, or a registration with its errno. The registration failure is kept per thread, so another thread's registration cannot replace it before it is read. Windows already write-watches the whole arena reservation. Linux therefore needs kernel 6.7 or newer for --repeat of such captures (PAGEMAP_SCAN and UFFD_FEATURE_WP_ASYNC); there is no fallback, and the requirement is in docs/dev/debt/libSceAgcDriver.md and docs/dev/BUILD.md.

  2. fix(agc): restore a repeated replay pass from the captured memory. The whole reset runs in one driver transaction, AgcDriverGuestMemoryTransaction:

    • The driver waits until every accepted submission completed (Driver::WaitIdle), stops other threads from taking pending storage images to store, waits for stores already taken (FlushExclusion), takes the GPU lock and waits for the device to go idle, and holds all of this until the reset ends. The storage-image exclusion counts its holders, so of two overlapping transactions the first to end does not lift it for the other. Nothing is added to the submission path: Submit and SuspendPoint are byte-identical to main. The caller must quiesce every submitter first.
    • Candidates. The pages the write tracker saw written since the previous reset (AgcDriverGuestMemoryChangedSince; a block the watch does not cover or could not walk is a candidate whole) plus the pages of every owner whose results live only on the GPU (AgcDriverGpuOwnedRanges).
    • Owners to retire. The multisampled colour owners, native depth owners and depth surfaces whose footprint overlaps a candidate are retired (AgcDriverRetireGpuOwners). There is no footprint registry: retirement walks the lists the driver already keeps (multisampled colour targets with colour, FMASK, CMASK, DCC and HTILE; native depth owners; depth surfaces with depth, stencil and HTILE planes). A retired depth surface discards its stale planes instead of storing them, and HTILE clears remembered for a depth surface not yet bound are dropped over those pages, including ones no resident surface owns, so a restored HTILE is not cleared again at the next bind. Pending storage images are stored, not retired (next item). Other images over those pages, sampled textures for example, are not retired: the rewrite is an ordinary guest write, so they reload through the write generations at their next use. Nothing is added to the draw or bind path.
    • Flush. Recorded stores and pending storage images are stored (AgcDriverFlushGuestMemory). This is needed for correctness: otherwise they land after the restore and overwrite it. Pages the store changed are added to the candidates and their owners retired. Pending storage images are not retired: they are stored over their whole extent, and the compare then rewrites the pages where they differ from the capture. Discarding them instead would need their whole extent marked written so they upload again, which the page compare is there to avoid.
    • Pages to rewrite. Worker threads take the candidates in pieces of at most 64 MiB, so a range larger than a piece is split over several threads, compare them in 4 MiB windows against the captured contents (zero where the snapshot holds nothing), and rewrite each page that differs from the same decoded window as soon as it is compared. Only those pages are rewritten. An owner whose memory already matches is retired without a rewrite, and caches over unchanged pages stay valid.
    • Contract. The transaction excludes the driver's own storers and GPU lock holders. It does not hold back guest threads that submit, map or unmap memory; its caller must. The standalone replay joins its replay threads and the wait releaser, and every submission has completed, before each reset, so no other guest thread runs during it. A submission or mapping change made anyway is detected after the fact, not prevented: the accepted-serial check runs after the body, so it fails the transaction only afterwards, misses a Submit that is still copying guest commands before it counts, and never sees unordered CPU flips (Submission.cpp), which are not counted; the reset compares GuestAllocationsGeneration before and after and fails, and a compare worker can fault on a page unmapped under it before that check. docs/dev/debt/libSceAgcDriver.md records this.
    • HTILE reads remembered over replaced memory are forgotten by overlap, not by start address, so a replaced interior page of an HTILE is read again. A depth surface that is inactive but not yet retired is retired too. The unmap retirement no longer leaves a host-written native depth owner marked written, which kept it in the surface list for the life of the process, and it drops the recorded single-sample clears over every inactive multisampled colour plane it removes from the guarded list, not only over those inside the unmapped span, since their surfaces are gone.
    • Each pass entry of the JSON line reports rewritten_bytes (of them rewritten_owned_bytes under GPU owners), compared_bytes, flushed_bytes, range_bytes, reset_ms, verify_ms, reset_workers (threads that compared at least one page; empty pieces are no longer made) and the owners retired (retired_color, retired_depth_owners, retired_depth_surfaces, discarded_depth_planes).
    • --verify-reset runs inside the transaction, so nothing changes between the reset and its check. It finds owners through the driver's resident lists (AgcDriverResidentOwnersOver), not through the reset's inventory, but over the same plane footprints retirement uses: it catches an owner retirement skipped or the inventory left out, not a footprint that is too small. A truly independent route (footprints rebuilt from each image's own create info, or a Vulkan-side allocation list) would need a second implementation of the guest surface layouts, so the footprints are pinned by tests instead (plane ends stated in the tests, and mutants that shrink a footprint). It fails when an owner survived over a candidate, an owner with results only on the GPU is left over a captured range, or guest memory differs from the capture. verify_ms is reported apart from reset_ms.
    • The C exports hand failures back as an std::exception_ptr; no exception crosses extern "C".

    New debt entries: on Linux a title's CPU write to a depth plane under a host import is not seen by the depth surface (the reset works around it by retiring, a live title does not); and the transaction's submission and mapping contract above.

  3. fix(agc): restore a rewind group without racing its control words. A bug on main, which the replay's new timing made frequent: restoreGroup copied a rewind group with a plain memcpy over its rewind control words while the queue worker reads them with atomic_ref in executeRewindTail, and only then stored them with release. It now copies around the held words and writes each of them only with an atomic store, after every chunk of the group is copied:

    • A word is held whatever its value when the dword before it in the chunk is a REWIND header (type 3, opcode 0x59), when it is the first aligned dword of the chunk (its header lies outside the chunk, so it cannot be ruled out), or when a queue is parked on it. PM4 is dword aligned and a REWIND's control is the dword after its header, so no control in a chunk is missed; the recorder's chunks are page aligned. Before, a word was held only when its captured value was valid, so a group that rewrote a gate's block with the control still zero, or a control that starts a chunk on a queue not yet parked, went out with the memcpy. The extra cost is at most one atomic store per chunk.
    • The held words no queue is parked on are stored before the parked ones, so a worker released at a parked gate finds every other held word of the group, the next gate of its tail or the first dword of a chunk its tail jumps into, already stored.
    • An early-released group is still restored again at its place in order. Under pacing that copy runs after the released submission completed (the pacing reads SerialProgress under the driver mutex the completion is published under), so it does not race the tail copy, and it puts back what the capture held there, for example a label the title rewrote after the tail wrote it. agc_driver_frame_replay_rewind_in_order pins this.
    • The again pass (a group applied a second time once its queues park as captured) leaves out the controls the group sets and stores the ones it holds clear atomically after the chunks, like the first pass. Before, a clear control went out with that pass's memcpy while the queue parked on it polled it atomically.
    • main's copySegment loads each REWIND control atomically and accepts only two-dword REWINDs, so a queue already running towards a gate no queue is parked on (another queue during an early release, or any queue under --no-pace or after a pacing timeout) no longer races the stores either.
    • A guest memory transaction entered with the GPU lock held now fails instead of waiting for flushes that need the lock.

    Under TSan, 31 runs each (old head, run 42502210173, the round-9 restoreGroup with these tests; this head, run 42502199631): agc_driver_frame_replay_rewind_page_start failed 31 times on the old head and 0 on this one, _rewind_zero_control 30 and 0, _rewind_chained 20 and 0 (the race is reported only when the worker copies the second control before the replay thread next takes the driver mutex), _rewind and _rewind_in_order 0 and 0. Round 9's counts for _rewind (2 of 31 passing on main, 5 on the head before this commit, runs 42489170049 and 42489182087) still stand. No other replay path writes a rewind control word while queues run: the snapshot restore and the reset run with the driver idle, and the wait releases write only non-rewind wait words.

Tests:

  • agc_driver_frame_replay_multisample_depth captures one frame on a 4x native depth target with an HTILE and replays it with --repeat 1, 2 and 3 under --verify-reset, requiring every texel of every sample plane to equal the captured one. Each later pass must rewrite exactly the pages that differ from the snapshot (the test requires some owner pages to match, so an owner retired without a rewrite is exercised) and retire a native depth owner. Four fault runs (APS5_REPLAY_RESET_FAULT_FOR_TEST=owners, omit, bytes, remap) require --verify-reset or the reset to fail a reset that keeps its owners, hides them from the inventory, leaves a wrong byte, or maps memory during it. A submission accepted inside a transaction (from its test hook, after the idle wait) must make the transaction fail.
  • agc_driver_frame_replay (DMA copies) now runs --repeat 3 with --verify-reset, so a page the reset misses fails it.
  • agc_driver_frame_replay_rewind_chained, _rewind_page_start, _rewind_zero_control and _rewind_in_order (new, Windows and Linux, need Vulkan) replay small captures the test writes itself, so a memory group can be restored while a queue is still running or parked. Chained: one group releases a parked REWIND whose tail is a second REWIND, already valid, whose tail jumps into another chunk of the group. Page start: a group that starts with a REWIND control (its header ends the page before) is restored while the queue is still running 1,000 WRITE_DATA packets in front of it. Zero control: a group rewrites a gate's page with the control still zero, and a later group releases it. In order: the tail of an early-released gate writes a label that the group holds at another value, which must be the value left after the group's in-order restore. Each must write its label; under TSan the first three fail on the old restoreGroup (above).
  • agc_driver_frame_replay_rewind_zero_control_parked (new): a group releases a first REWIND whose tail parks on a second one with a zero control, while the capture was read parked on the second. The replay applies the group, waits for the park and applies it again; the test requires park_restores to count that. Under ThreadSanitizer the again pass's memcpy of the zero control is reported against executeRewindTail's atomic load in 3 of 5 runs without the change, and 20 of 20 runs pass with it.
  • agc_driver_frame_replay_multisample_depth (new case): a guest memory transaction entered with the GPU lock held must fail (it does not without the check, RTX 3080).
  • agc_driver_frame_replay_partial_walk (new, Windows and Linux): every write walk of a reset collects the first half of its range with the platform's real collector, then reports failure (on Windows the refused-walk bookkeeping runs for the rest). The reset must compare the range whole, rewrite exactly the two written pages and restore them; the next reset must rewrite exactly the page written since.
  • agc_driver_frame_replay_large_range (new, Windows and Linux): one range of two pieces and a block, all written; the reset must restore it on at least two threads, counted by the pieces each thread took, not by the pool size.
  • agc_driver_frame_replay_untouched_gpu_owner (new, Windows and Linux, needs Vulkan): a 4x colour target over a captured range is drawn through Vulkan alone, so ChangedSince reports none of its pages (required). The reset must retire it with no rewrite and the captured bytes unchanged, and the target bound again must resolve to the captured colour (every sample 0 under UNORM, against the drawn 0x40 before the reset). This kills the mutant that leaves the GPU-owned ranges out of the candidates.
  • agc_driver_frame_replay_flushed_owner (Windows and Linux): a depth surface stays resident over a captured page that only the reset's own flush writes; the reset must add that page to the compare, retire the surface and restore the page.
  • agc_driver_frame_replay_sub_page_resets (new, Windows and Linux): two ranges sharing one page; an idle reset compares nothing, each pass compares and rewrites exactly the bytes written, a settled reset compares nothing, a failed write walk compares the ranges whole, and a mapping during the reset throws.
  • agc_graphics_profile_draw (DepthSurfaceReuse, new cases): replacing an interior page of an HTILE outside the watch makes the next view read it again and find its clear; replacing one page of the stencil plane alone retires a single-sample depth/stencil surface, observed through its depth plane and an 8-bit view of its stencil plane.
  • agc_graphics_profile_draw (DepthSurfaceReuse, round 8): an HTILE clear remembered while no depth surface used that HTILE clears the surface bound with it, but not after a page of that HTILE was replaced; a depth/stencil surface is resident over the last byte of its depth, stencil and HTILE planes (sizes written out in the test) and not past them.
  • agc_flush_exclusion (round 8): after the first of two overlapping exclusions ends, another thread still cannot select pending images.
  • agc_driver_frame_replay_sub_page_resets (round 8): an idle reset counts no workers.
  • agc_driver_multisample_retirement (round 8): a target is resident over the last byte of its colour plane and CMASK and not past the CMASK.
  • agc_driver_multisample_retirement (new case): 64 binds of a target leave the owner-walk count unchanged; the reset inventory walks once and lists the target once.
  • agc_driver_frame_replay_single_sample_depth, agc_flush_exclusion, agc_driver_depth_plane_partial_store_*, agc_driver_sample_multisample_target, agc_driver_frame_replay_watched_existing (Linux), agc_driver_msaa_dcc_clear_2/4/8 and agc_driver_native_depth_* keep the earlier cases.

docs/dev/BUILD.md describes the reset, counters and tests; docs/dev/ENVIRONMENT.md lists the test fault variable.

Overlap with #15136 (thuanquang, open draft, frame capture serials and holds): not the same change. It touches the same places in tools/FrameReplay.cpp (its --repeat loop in run, where it also calls resetMemory, and the snapshot restore it moves into restoreSnapshot), Execution/src/Driver/EntryPoints.cpp, tests/FrameReplay.cpp, tests/cmake/agc_driver_frame_replay_tests.cmake and docs/dev/BUILD.md, so the two will conflict textually in those hunks. #15136 changes what the replay waits on and when a delta is held, and its resetMemory still clears every Range chunk and restores the whole snapshot. It does not add a retirement call, a page comparison, the transaction, the Linux watch registration or the DepthSurface and MultisampleTarget changes here. Whichever lands second rebases onto the other; the reset in this PR replaces that resetMemory body.

Overlap with #11436 (Sam-mon7, replay serial tracing): textual only. Both rewrite tools/FrameReplay.cpp (restoreMemory, resetMemory, run, usage), tests/FrameReplay.cpp, the two frame_replay cmake files, the same docs/dev/BUILD.md lines, and both add declarations to Driver.hpp. #11436 only adds tracing and shares no runtime state with the reset, and it already conflicts with main in the same files, so whichever lands second merges the replay tool by hand.

Overlap with #15059 (Sam-mon7, thin-surface sizes): behavioural, small. It changes the bytes stored in MultisampleTarget.cpp guarded() entries to SurfaceGuestBytes. retireGuarded here uses those bytes for its overlap and containment tests, so a smaller footprint shifts which replaced or unmapped ranges retire an owner. That is right as long as SurfaceGuestBytes is the true guest footprint; after combining, rerun MultisampleRetirement and agc_driver_frame_replay_multisample_depth.

Tested

The head 025f5a150e merges main b7aeb6f406 into Dean's 0523b51913 (his merge of main 2f8c843691). Texture.hpp and Texture.cpp conflicted only where both sides added a test hook beside SetPublishHookForTest (this PR's SetFlushSelectedHookForTest and FlushExclusion, main's SetPendingHookForTest from #18102); both are kept. #18102 makes markLayersPending collect through the memoized walk; the reset's candidates come from GuestMemory::ChangedSince, which walks the write tracker itself, so the memo cannot hide a page from it. main changed nothing in tools/FrameReplay.cpp since 2f8c843691.

On the merge, Linux (lavapipe): ctest -R '^(agc_driver_frame_replay.*|agc_flush_exclusion|agc_driver_memo_pending_collect.*|agc_driver_multisample_retirement|agc_driver_sample_multisample_target|agc_driver_native_multisample_depth|agc_driver_depth_plane_partial_store.*)$' 67 of 67 pass, none skipped; the same run with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer (layer 1.4.363.1, sync validation on, no canary) passes 67 of 67 with 63 Insert instance layer lines in the test output and 12 in the replay logs, no missing-layer line, 0 VUID- and 0 SYNC-HAZARD lines. ThreadSanitizer on the merge (-DANYPS5_ENABLE_TSAN=ON, no suppressions): _rewind, _rewind_chained, _rewind_page_start, _rewind_zero_control, _rewind_zero_control_parked, _rewind_in_order and _rewind_kept_words pass with no report. _concurrent, _rewind_store, _rewind_copy, _rewind_compute, _rewind_release, _rewind_fill, _rewind_split, _wait_label, _fence_reuse and _busy_queue report races on title labels and gates only: Pm4::WaitSatisfiedUnchecked's plain read against the replay's restores and guest-memory stores (the read #20185 makes atomic), and a guest-memory store against the replay's atomic label access. This PR does not touch those reads or stores. WinLibs GCC 15.2 under Wine (lavapipe through winevulkan): the replay tool and tests link, and agc_driver_frame_replay* plus agc_flush_exclusion pass 51 of 57; the six that fail (_relaunch, _submits timeout, _single_sample_depth and _rewind_copy and _busy_queue segfault, _rewind_release timeout) fail the same way under Wine on 0523b51913, before the merge.

Fork CI on 025f5a150e (run 43745440288): Linux 67 of 67 with the validation layer, 0 VUID- lines. Windows (MinGW, lavapipe) 64 of 65; agc_driver_frame_replay_cold_pipelines fails, as it does on base. The ThreadSanitizer results above are local.

1713bb271e was bcfaa35a4d merged with main 7e3b8f4e82 (no conflicts, a3def404ee), plus two commits:

  • 71ec91051e: the again pass stores a clear REWIND control atomically (above, with agc_driver_frame_replay_rewind_zero_control_parked).
  • 1713bb271e: drops the "REWIND controls copied with plain reads" debt entry, which main closed: copySegment requires a two-dword REWIND and loads its control with atomic_ref.

Linux (Ubuntu 24.04, lavapipe, Mesa llvmpipe LLVM 20.1.2) on 1713bb271e, before the merges:

  • ctest -R agc_driver_frame_replay: 57 of 57 pass (agc_driver_frame_replay_rewind_copy failed once under -j3 load and passes alone 3 of 3; it fails the same way under load on other branches).
  • ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer with layer 1.4.363.1 and VK_KHRONOS_VALIDATION_VALIDATE_SYNC=1, ctest -R '^agc_driver_frame_replay(_rewind.*|_multisample_depth)?$' -V: 15 of 15 pass, 29 Insert instance layer lines in the test output and 12 more in the replay logs the tests write, no missing-layer line, 0 VUID- and 0 SYNC-HAZARD lines in either. No sync canary ran, so this is not a synchronization-validation claim.
  • ThreadSanitizer (-DANYPS5_ENABLE_TSAN=ON, no suppressions): _rewind, _rewind_chained, _rewind_page_start, _rewind_zero_control, _rewind_zero_control_parked, _rewind_in_order and _rewind_kept_words pass with no report.

On this head, 025f5a150e, Windows 11 Pro, NVIDIA GeForce RTX 3080 (driver 621.24), built with #20845 merged locally so the GTA picture is upright on main after #16053:

  • Vulkan gate, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer, ctest -R '^(agc_driver_frame_replay.*|agc_flush_exclusion|agc_driver_memo_pending_collect.*|agc_driver_multisample_retirement|agc_driver_sample_multisample_target|agc_driver_native_multisample_depth|agc_driver_depth_plane_partial_store.*)$': rc 0, 0 VUID- lines in the test output and in the 62 replay subprocess logs.
  • GTA V capture rk3 (calls format 1, replayed with the version check relaxed locally): one cold run with the shader caches emptied and --cold-pipelines --no-synthesize, five normal runs, and --repeat 5 --verify-reset. All seven exit 0 with pixels_identical 1.000000, max channel diff 0, 0 pace timeouts, 0 released waits, 0 synthesized and 0 VUID- lines. Replay time is 62.3 s cold and 19.6 to 24.4 s warm.
    The results below are from 3c06fa7a51 and were not rerun on this head.

Head 3c06fa7a51 (commits b0c0014548, 68a50d7b94, 3c06fa7a51) on main 3e7b406e9c; main is now f35f1e5eca, which changes only an unrelated line of docs/dev/debt/libSceAgcDriver.md among this PR's files and merges cleanly. The Vulkan gate and the mutants of rounds 1 to 8 below ran on 68a50d7b94; the third commit changes restoreGroup in tools/FrameReplay.cpp, one check in AgcDriverGuestMemoryTransaction, tests and a debt entry, and on 3c06fa7a51 the Linux gate, TSan, the local frame_replay tests and rk3 were run again. Windows 11 Pro, NVIDIA GeForce RTX 3080 (driver 621.14), AMD Ryzen 7 5800X.

AGENTS.md Vulkan gate, same machine and GPU, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, one pattern for both (the replay, recorder, depth plane, native depth, multisample, collect and write-tracking tests plus the new ones): main 288/288, this PR 296/296 on 68a50d7b94, 0 VUID- lines (including the replay subprocess logs) and no missing-layer line in either.

Fork CI on lavapipe with the validation layer, same pattern on base and ref, which includes agc_flush_exclusion, guest_memory and windows_write_watch (run 42503822968, 3c06fa7a51). Linux: base 3e7b406e9c 266 passed (16 skipped), PR 279 passed (16 skipped), no VUIDs (replay logs included), no missing-layer line, nothing failing on ref only. Windows (MinGW, Mesa lavapipe, LunarG layer): base 265 passed, PR 275 passed, every agc_driver_frame_replay test of this PR and agc_flush_exclusion pass, no new VUIDs; agc_driver_frame_replay_cold_pipelines, agc_driver_msaa_dcc_clear_4, agc_driver_recorder and guest_memory fail on both sides. agc_driver_native_depth_clears and _separate_stencil hit the 30 s timeout on the PR side only, on a runner 1.72 times slower than the base one (geometric mean over the 56 tests that passed on both); run alone (run 42508355406) both pass on both sides (base 21.6 s and 28.6 s, PR 18.2 s and 22.8 s), and on the RTX 3080 they take the same time on main and this PR (1.81 s and 1.83 s, 1.04 s and 1.03 s). TSan, run 42503822968: every agc_driver_frame_replay test of this PR passes with no report, the rewind ones included; the failures are the ten that fail under TSan on main (agc_driver_frame_replay_blocking, _concurrent, agc_driver_pm4, _pm4_replay, _pm4_rewind_trace, _pm4_stall_watchdog, agc_driver_graphics, _graphics_maps_fallback, agc_graphics_profile_draw, agc_driver_recorder), agc_driver_pm4_replay_tool, which does not run because agc_driver_pm4_replay fails, and one TSan warning in agc_driver_pm4_stall_prompt_real, which passed 31 of 31 runs under TSan on both main and this PR (run 42504682283, run 42504690727). Local RTX 3080, ctest -R frame_replay with the validation layer on 3c06fa7a51: 33/33, 0 VUID- lines.

Round 10 mutants of restoreGroup, each built with TSan on fork CI and run 11 times per rewind test, all killed: the release stores moved into the per-chunk loop (_rewind, _rewind_chained, _rewind_in_order fail 11 of 11; run 42502221691); the first-dword rule dropped (_rewind_page_start 11 of 11; run 42502233966); the parked words stored in address order with the rest (_rewind, _rewind_chained, _rewind_in_order 11 of 11; run 42502246723); each group restored at most once per pass (_rewind_in_order 11 of 11, a wrong label, not a race; run 42502258941). Without TSan, on the local RTX 3080, only the last fails (3 of 3); the other three are races that a plain build does not show.

Red first, on the RTX 3080, one line reverted each: agc_driver_frame_replay_multisample_depth fails ("a guest memory transaction ended without failing although a submission was accepted inside it") without the transaction's accepted-serial check; agc_driver_frame_replay_partial_walk fails when a failed walk is trusted; agc_driver_frame_replay_large_range fails ("on fewer than two threads") with one worker and with ranges not split into pieces; agc_driver_frame_replay fails with --verify-reset ("guest memory at ... differs from the captured contents after the reset") when the written pages are left out of the candidates, and passes with the same mutant without --verify-reset, so the flag is what catches it.

Mutants on this head, fork CI on lavapipe, one patch each, same tests (run 42487045268), all 20 built and all 20 killed: no accepted-serial check (_multisample_depth); no split into pieces and one worker (_large_range); no written pages among the candidates (agc_driver_frame_replay and others); no walk-failure fallback (_sub_page_resets, _partial_walk); no retirement over pages the flush added; no HTILE in a colour footprint; single-sample targets not checking the stencil plane; no mapping check; verifier without the owner checks; rewriting every owner page regardless of equality; skipping inactive depth surfaces; prefix-key HTILE forget; whole-range candidates; and the six round-8 mutants: GPU-owned ranges left out of the candidates (_untouched_gpu_owner); deferred HTILE clears kept over replaced pages (agc_graphics_profile_draw); a single-bool flush exclusion (agc_flush_exclusion); empty pieces kept (_sub_page_resets); a stencil footprint one page short (agc_graphics_profile_draw); a CMASK footprint one byte short (agc_driver_multisample_retirement).

The same six round-8 mutants were also killed one at a time on the local RTX 3080 build. The three new red tests also fail on the round-7 code.

GTA V (PPSA04264) capture rk3, 3 frames, 9,364 draws, --repeat 5 --verify-reset on the RTX 3080, this head 3c06fa7a51: rc 0, pixels_identical 1.000000, max channel diff 0, delta_mib 20169.7 as on e907e3d53b.

Pass rewritten reset verify replay replay on e907e3d53b
2 587,177,984 1.27 s 1.19 s 9.53 s 9.99 s
3 572,559,360 0.39 s 1.18 s 9.55 s 9.95 s
4 572,559,360 0.39 s 1.19 s 9.36 s 9.91 s
5 572,559,360 0.39 s 1.20 s 9.47 s 9.92 s

The held words added by this round (at most one per chunk, plus every dword after a REWIND header) do not show in the replay time.

The compare now rewrites a differing page from the window it just decoded instead of decoding it again in a second pass. A/B on the same build and capture, back to back, two runs each, passes 3 to 5: round-6 tool (separate compare and restore, 64 MiB pieces) 590 to 678 ms reset; fused with 64 MiB pieces 402 to 438 ms; fused with 16 MiB pieces 426 to 445 ms, with verify 1.19 to 1.26 s against 1.25 to 1.32 s. All six runs rewrote the same bytes with identical pixels; replay passes were 10.19 to 10.56 s in all of them, so the pass time does not depend on either change. The 64 MiB piece is kept.

The product submission path is unchanged: Submission.cpp is identical to main, so the per-submit cost of round 6 (two sequentially consistent read-modify-writes per Submit and SuspendPoint) is gone.

Not covered: a submission or mapping change during the transaction is only detected afterwards (debt entry).

python3 tools/check_conventions.py --base origin/main: all checks passed. python3 tools/pr_overlap.py --branch fix/replay-repeat-msaa-depth-v3 failed closed: no open PR conflicts textually with this branch, and 91 could not be compared because they conflict with main; the three that overlap in purpose or behaviour are described above. The PRs new since round 6 that share files (15455, 15456, 15529, 15548, 15621, 15806, 15807, 16260) do not touch the transaction or the reset.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 3080, driver 621.14, Windows 11 Pro 10.0.26320; lavapipe (llvmpipe, Mesa) on the Ubuntu and Windows fork CI runners
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5213856926 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17338). Originally posted by [chitters2004](https://github.com/chitters2004) on 2026-11-08T18:18:17Z. --- ### What `agc_frame_replay --repeat` could not repeat a capture whose frames draw into native multisample depth. On Windows, pass 2 stopped with `guest writes over native multisample depth are not implemented`. On Linux, pass 2 silently started from the depth pass 1 left. This PR makes every pass start from the captured memory and rewrites only the pages a pass left different from the capture. Three commits: 1. `fix(agc): watch the captured ranges the title watched when replaying on Linux`. A capture records which ranges the driver watched (`FrameRangeKind::Watched`). On Linux the replay committed those ranges but never registered them with the guest write watch, which libkernel does for every title mapping, so native multisample depth owners were never eligible for their guards and unmap retirement. The replay now registers every Watched range (widened to whole pages), including one that already sits in a writable mapping, and throws if `GuestWriteWatchCovers` does not report it covered. The error names the failing part through `GuestWriteWatchUnavailableReason`: build headers older than Linux 6.7, the kernel feature, or a registration with its errno. The registration failure is kept per thread, so another thread's registration cannot replace it before it is read. Windows already write-watches the whole arena reservation. Linux therefore needs kernel 6.7 or newer for `--repeat` of such captures (`PAGEMAP_SCAN` and `UFFD_FEATURE_WP_ASYNC`); there is no fallback, and the requirement is in `docs/dev/debt/libSceAgcDriver.md` and `docs/dev/BUILD.md`. 2. `fix(agc): restore a repeated replay pass from the captured memory`. The whole reset runs in one driver transaction, `AgcDriverGuestMemoryTransaction`: - The driver waits until every accepted submission completed (`Driver::WaitIdle`), stops other threads from taking pending storage images to store, waits for stores already taken (`FlushExclusion`), takes the GPU lock and waits for the device to go idle, and holds all of this until the reset ends. The storage-image exclusion counts its holders, so of two overlapping transactions the first to end does not lift it for the other. Nothing is added to the submission path: `Submit` and `SuspendPoint` are byte-identical to `main`. The caller must quiesce every submitter first. - **Candidates.** The pages the write tracker saw written since the previous reset (`AgcDriverGuestMemoryChangedSince`; a block the watch does not cover or could not walk is a candidate whole) plus the pages of every owner whose results live only on the GPU (`AgcDriverGpuOwnedRanges`). - **Owners to retire.** The multisampled colour owners, native depth owners and depth surfaces whose footprint overlaps a candidate are retired (`AgcDriverRetireGpuOwners`). There is no footprint registry: retirement walks the lists the driver already keeps (multisampled colour targets with colour, FMASK, CMASK, DCC and HTILE; native depth owners; depth surfaces with depth, stencil and HTILE planes). A retired depth surface discards its stale planes instead of storing them, and HTILE clears remembered for a depth surface not yet bound are dropped over those pages, including ones no resident surface owns, so a restored HTILE is not cleared again at the next bind. Pending storage images are stored, not retired (next item). Other images over those pages, sampled textures for example, are not retired: the rewrite is an ordinary guest write, so they reload through the write generations at their next use. Nothing is added to the draw or bind path. - **Flush.** Recorded stores and pending storage images are stored (`AgcDriverFlushGuestMemory`). This is needed for correctness: otherwise they land after the restore and overwrite it. Pages the store changed are added to the candidates and their owners retired. Pending storage images are not retired: they are stored over their whole extent, and the compare then rewrites the pages where they differ from the capture. Discarding them instead would need their whole extent marked written so they upload again, which the page compare is there to avoid. - **Pages to rewrite.** Worker threads take the candidates in pieces of at most 64 MiB, so a range larger than a piece is split over several threads, compare them in 4 MiB windows against the captured contents (zero where the snapshot holds nothing), and rewrite each page that differs from the same decoded window as soon as it is compared. Only those pages are rewritten. An owner whose memory already matches is retired without a rewrite, and caches over unchanged pages stay valid. - **Contract.** The transaction excludes the driver's own storers and GPU lock holders. It does not hold back guest threads that submit, map or unmap memory; its caller must. The standalone replay joins its replay threads and the wait releaser, and every submission has completed, before each reset, so no other guest thread runs during it. A submission or mapping change made anyway is detected after the fact, not prevented: the accepted-serial check runs after the body, so it fails the transaction only afterwards, misses a `Submit` that is still copying guest commands before it counts, and never sees unordered CPU flips (`Submission.cpp`), which are not counted; the reset compares `GuestAllocationsGeneration` before and after and fails, and a compare worker can fault on a page unmapped under it before that check. `docs/dev/debt/libSceAgcDriver.md` records this. - HTILE reads remembered over replaced memory are forgotten by overlap, not by start address, so a replaced interior page of an HTILE is read again. A depth surface that is inactive but not yet retired is retired too. The unmap retirement no longer leaves a host-written native depth owner marked written, which kept it in the surface list for the life of the process, and it drops the recorded single-sample clears over every inactive multisampled colour plane it removes from the guarded list, not only over those inside the unmapped span, since their surfaces are gone. - Each pass entry of the JSON line reports `rewritten_bytes` (of them `rewritten_owned_bytes` under GPU owners), `compared_bytes`, `flushed_bytes`, `range_bytes`, `reset_ms`, `verify_ms`, `reset_workers` (threads that compared at least one page; empty pieces are no longer made) and the owners retired (`retired_color`, `retired_depth_owners`, `retired_depth_surfaces`, `discarded_depth_planes`). - `--verify-reset` runs inside the transaction, so nothing changes between the reset and its check. It finds owners through the driver's resident lists (`AgcDriverResidentOwnersOver`), not through the reset's inventory, but over the same plane footprints retirement uses: it catches an owner retirement skipped or the inventory left out, not a footprint that is too small. A truly independent route (footprints rebuilt from each image's own create info, or a Vulkan-side allocation list) would need a second implementation of the guest surface layouts, so the footprints are pinned by tests instead (plane ends stated in the tests, and mutants that shrink a footprint). It fails when an owner survived over a candidate, an owner with results only on the GPU is left over a captured range, or guest memory differs from the capture. `verify_ms` is reported apart from `reset_ms`. - The C exports hand failures back as an `std::exception_ptr`; no exception crosses `extern "C"`. New debt entries: on Linux a title's CPU write to a depth plane under a host import is not seen by the depth surface (the reset works around it by retiring, a live title does not); and the transaction's submission and mapping contract above. 3. `fix(agc): restore a rewind group without racing its control words`. A bug on `main`, which the replay's new timing made frequent: `restoreGroup` copied a rewind group with a plain `memcpy` over its rewind control words while the queue worker reads them with `atomic_ref` in `executeRewindTail`, and only then stored them with release. It now copies around the held words and writes each of them only with an atomic store, after every chunk of the group is copied: - A word is held whatever its value when the dword before it in the chunk is a REWIND header (type 3, opcode 0x59), when it is the first aligned dword of the chunk (its header lies outside the chunk, so it cannot be ruled out), or when a queue is parked on it. PM4 is dword aligned and a REWIND's control is the dword after its header, so no control in a chunk is missed; the recorder's chunks are page aligned. Before, a word was held only when its captured value was valid, so a group that rewrote a gate's block with the control still zero, or a control that starts a chunk on a queue not yet parked, went out with the `memcpy`. The extra cost is at most one atomic store per chunk. - The held words no queue is parked on are stored before the parked ones, so a worker released at a parked gate finds every other held word of the group, the next gate of its tail or the first dword of a chunk its tail jumps into, already stored. - An early-released group is still restored again at its place in order. Under pacing that copy runs after the released submission completed (the pacing reads `SerialProgress` under the driver mutex the completion is published under), so it does not race the tail copy, and it puts back what the capture held there, for example a label the title rewrote after the tail wrote it. `agc_driver_frame_replay_rewind_in_order` pins this. - The again pass (a group applied a second time once its queues park as captured) leaves out the controls the group sets and stores the ones it holds clear atomically after the chunks, like the first pass. Before, a clear control went out with that pass's `memcpy` while the queue parked on it polled it atomically. - `main`'s `copySegment` loads each REWIND control atomically and accepts only two-dword REWINDs, so a queue already running towards a gate no queue is parked on (another queue during an early release, or any queue under `--no-pace` or after a pacing timeout) no longer races the stores either. - A guest memory transaction entered with the GPU lock held now fails instead of waiting for flushes that need the lock. Under TSan, 31 runs each ([old head, run 42502210173](https://github.com/chitters2004/AnyPS5/actions/runs/42502210173), the round-9 `restoreGroup` with these tests; [this head, run 42502199631](https://github.com/chitters2004/AnyPS5/actions/runs/42502199631)): `agc_driver_frame_replay_rewind_page_start` failed 31 times on the old head and 0 on this one, `_rewind_zero_control` 30 and 0, `_rewind_chained` 20 and 0 (the race is reported only when the worker copies the second control before the replay thread next takes the driver mutex), `_rewind` and `_rewind_in_order` 0 and 0. Round 9's counts for `_rewind` (2 of 31 passing on `main`, 5 on the head before this commit, [runs 42489170049](https://github.com/chitters2004/AnyPS5/actions/runs/42489170049) and [42489182087](https://github.com/chitters2004/AnyPS5/actions/runs/42489182087)) still stand. No other replay path writes a rewind control word while queues run: the snapshot restore and the reset run with the driver idle, and the wait releases write only non-rewind wait words. Tests: - `agc_driver_frame_replay_multisample_depth` captures one frame on a 4x native depth target with an HTILE and replays it with `--repeat 1`, `2` and `3` under `--verify-reset`, requiring every texel of every sample plane to equal the captured one. Each later pass must rewrite exactly the pages that differ from the snapshot (the test requires some owner pages to match, so an owner retired without a rewrite is exercised) and retire a native depth owner. Four fault runs (`APS5_REPLAY_RESET_FAULT_FOR_TEST=owners`, `omit`, `bytes`, `remap`) require `--verify-reset` or the reset to fail a reset that keeps its owners, hides them from the inventory, leaves a wrong byte, or maps memory during it. A submission accepted inside a transaction (from its test hook, after the idle wait) must make the transaction fail. - `agc_driver_frame_replay` (DMA copies) now runs `--repeat 3` with `--verify-reset`, so a page the reset misses fails it. - `agc_driver_frame_replay_rewind_chained`, `_rewind_page_start`, `_rewind_zero_control` and `_rewind_in_order` (new, Windows and Linux, need Vulkan) replay small captures the test writes itself, so a memory group can be restored while a queue is still running or parked. Chained: one group releases a parked REWIND whose tail is a second REWIND, already valid, whose tail jumps into another chunk of the group. Page start: a group that starts with a REWIND control (its header ends the page before) is restored while the queue is still running 1,000 `WRITE_DATA` packets in front of it. Zero control: a group rewrites a gate's page with the control still zero, and a later group releases it. In order: the tail of an early-released gate writes a label that the group holds at another value, which must be the value left after the group's in-order restore. Each must write its label; under TSan the first three fail on the old `restoreGroup` (above). - `agc_driver_frame_replay_rewind_zero_control_parked` (new): a group releases a first REWIND whose tail parks on a second one with a zero control, while the capture was read parked on the second. The replay applies the group, waits for the park and applies it again; the test requires `park_restores` to count that. Under ThreadSanitizer the again pass's `memcpy` of the zero control is reported against `executeRewindTail`'s atomic load in 3 of 5 runs without the change, and 20 of 20 runs pass with it. - `agc_driver_frame_replay_multisample_depth` (new case): a guest memory transaction entered with the GPU lock held must fail (it does not without the check, RTX 3080). - `agc_driver_frame_replay_partial_walk` (new, Windows and Linux): every write walk of a reset collects the first half of its range with the platform's real collector, then reports failure (on Windows the refused-walk bookkeeping runs for the rest). The reset must compare the range whole, rewrite exactly the two written pages and restore them; the next reset must rewrite exactly the page written since. - `agc_driver_frame_replay_large_range` (new, Windows and Linux): one range of two pieces and a block, all written; the reset must restore it on at least two threads, counted by the pieces each thread took, not by the pool size. - `agc_driver_frame_replay_untouched_gpu_owner` (new, Windows and Linux, needs Vulkan): a 4x colour target over a captured range is drawn through Vulkan alone, so `ChangedSince` reports none of its pages (required). The reset must retire it with no rewrite and the captured bytes unchanged, and the target bound again must resolve to the captured colour (every sample 0 under UNORM, against the drawn 0x40 before the reset). This kills the mutant that leaves the GPU-owned ranges out of the candidates. - `agc_driver_frame_replay_flushed_owner` (Windows and Linux): a depth surface stays resident over a captured page that only the reset's own flush writes; the reset must add that page to the compare, retire the surface and restore the page. - `agc_driver_frame_replay_sub_page_resets` (new, Windows and Linux): two ranges sharing one page; an idle reset compares nothing, each pass compares and rewrites exactly the bytes written, a settled reset compares nothing, a failed write walk compares the ranges whole, and a mapping during the reset throws. - `agc_graphics_profile_draw` (`DepthSurfaceReuse`, new cases): replacing an interior page of an HTILE outside the watch makes the next view read it again and find its clear; replacing one page of the stencil plane alone retires a single-sample depth/stencil surface, observed through its depth plane and an 8-bit view of its stencil plane. - `agc_graphics_profile_draw` (`DepthSurfaceReuse`, round 8): an HTILE clear remembered while no depth surface used that HTILE clears the surface bound with it, but not after a page of that HTILE was replaced; a depth/stencil surface is resident over the last byte of its depth, stencil and HTILE planes (sizes written out in the test) and not past them. - `agc_flush_exclusion` (round 8): after the first of two overlapping exclusions ends, another thread still cannot select pending images. - `agc_driver_frame_replay_sub_page_resets` (round 8): an idle reset counts no workers. - `agc_driver_multisample_retirement` (round 8): a target is resident over the last byte of its colour plane and CMASK and not past the CMASK. - `agc_driver_multisample_retirement` (new case): 64 binds of a target leave the owner-walk count unchanged; the reset inventory walks once and lists the target once. - `agc_driver_frame_replay_single_sample_depth`, `agc_flush_exclusion`, `agc_driver_depth_plane_partial_store_*`, `agc_driver_sample_multisample_target`, `agc_driver_frame_replay_watched_existing` (Linux), `agc_driver_msaa_dcc_clear_2/4/8` and `agc_driver_native_depth_*` keep the earlier cases. `docs/dev/BUILD.md` describes the reset, counters and tests; `docs/dev/ENVIRONMENT.md` lists the test fault variable. Overlap with #15136 (thuanquang, open draft, frame capture serials and holds): not the same change. It touches the same places in `tools/FrameReplay.cpp` (its `--repeat` loop in `run`, where it also calls `resetMemory`, and the snapshot restore it moves into `restoreSnapshot`), `Execution/src/Driver/EntryPoints.cpp`, `tests/FrameReplay.cpp`, `tests/cmake/agc_driver_frame_replay_tests.cmake` and `docs/dev/BUILD.md`, so the two will conflict textually in those hunks. #15136 changes what the replay waits on and when a delta is held, and its `resetMemory` still clears every `Range` chunk and restores the whole snapshot. It does not add a retirement call, a page comparison, the transaction, the Linux watch registration or the `DepthSurface` and `MultisampleTarget` changes here. Whichever lands second rebases onto the other; the reset in this PR replaces that `resetMemory` body. Overlap with #11436 (Sam-mon7, replay serial tracing): textual only. Both rewrite `tools/FrameReplay.cpp` (`restoreMemory`, `resetMemory`, `run`, usage), `tests/FrameReplay.cpp`, the two frame_replay cmake files, the same `docs/dev/BUILD.md` lines, and both add declarations to `Driver.hpp`. #11436 only adds tracing and shares no runtime state with the reset, and it already conflicts with `main` in the same files, so whichever lands second merges the replay tool by hand. Overlap with #15059 (Sam-mon7, thin-surface sizes): behavioural, small. It changes the bytes stored in `MultisampleTarget.cpp` `guarded()` entries to `SurfaceGuestBytes`. `retireGuarded` here uses those bytes for its overlap and containment tests, so a smaller footprint shifts which replaced or unmapped ranges retire an owner. That is right as long as `SurfaceGuestBytes` is the true guest footprint; after combining, rerun `MultisampleRetirement` and `agc_driver_frame_replay_multisample_depth`. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> The head `025f5a150e` merges `main` `b7aeb6f406` into Dean's `0523b51913` (his merge of `main` `2f8c843691`). `Texture.hpp` and `Texture.cpp` conflicted only where both sides added a test hook beside `SetPublishHookForTest` (this PR's `SetFlushSelectedHookForTest` and `FlushExclusion`, `main`'s `SetPendingHookForTest` from #18102); both are kept. #18102 makes `markLayersPending` collect through the memoized walk; the reset's candidates come from `GuestMemory::ChangedSince`, which walks the write tracker itself, so the memo cannot hide a page from it. `main` changed nothing in `tools/FrameReplay.cpp` since `2f8c843691`. On the merge, Linux (lavapipe): `ctest -R '^(agc_driver_frame_replay.*|agc_flush_exclusion|agc_driver_memo_pending_collect.*|agc_driver_multisample_retirement|agc_driver_sample_multisample_target|agc_driver_native_multisample_depth|agc_driver_depth_plane_partial_store.*)$'` 67 of 67 pass, none skipped; the same run with `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer` (layer 1.4.363.1, sync validation on, no canary) passes 67 of 67 with 63 `Insert instance layer` lines in the test output and 12 in the replay logs, no missing-layer line, 0 `VUID-` and 0 `SYNC-HAZARD` lines. ThreadSanitizer on the merge (`-DANYPS5_ENABLE_TSAN=ON`, no suppressions): `_rewind`, `_rewind_chained`, `_rewind_page_start`, `_rewind_zero_control`, `_rewind_zero_control_parked`, `_rewind_in_order` and `_rewind_kept_words` pass with no report. `_concurrent`, `_rewind_store`, `_rewind_copy`, `_rewind_compute`, `_rewind_release`, `_rewind_fill`, `_rewind_split`, `_wait_label`, `_fence_reuse` and `_busy_queue` report races on title labels and gates only: `Pm4::WaitSatisfiedUnchecked`'s plain read against the replay's restores and guest-memory stores (the read #20185 makes atomic), and a guest-memory store against the replay's atomic label access. This PR does not touch those reads or stores. WinLibs GCC 15.2 under Wine (lavapipe through winevulkan): the replay tool and tests link, and `agc_driver_frame_replay*` plus `agc_flush_exclusion` pass 51 of 57; the six that fail (`_relaunch`, `_submits` timeout, `_single_sample_depth` and `_rewind_copy` and `_busy_queue` segfault, `_rewind_release` timeout) fail the same way under Wine on `0523b51913`, before the merge. Fork CI on `025f5a150e` ([run 43745440288](https://github.com/chitters2004/AnyPS5/actions/runs/43745440288)): Linux 67 of 67 with the validation layer, 0 `VUID-` lines. Windows (MinGW, lavapipe) 64 of 65; `agc_driver_frame_replay_cold_pipelines` fails, as it does on base. The ThreadSanitizer results above are local. `1713bb271e` was `bcfaa35a4d` merged with `main` `7e3b8f4e82` (no conflicts, `a3def404ee`), plus two commits: - `71ec91051e`: the again pass stores a clear REWIND control atomically (above, with `agc_driver_frame_replay_rewind_zero_control_parked`). - `1713bb271e`: drops the "REWIND controls copied with plain reads" debt entry, which `main` closed: `copySegment` requires a two-dword REWIND and loads its control with `atomic_ref`. Linux (Ubuntu 24.04, lavapipe, Mesa llvmpipe LLVM 20.1.2) on `1713bb271e`, before the merges: - `ctest -R agc_driver_frame_replay`: 57 of 57 pass (`agc_driver_frame_replay_rewind_copy` failed once under `-j3` load and passes alone 3 of 3; it fails the same way under load on other branches). - `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer` with layer 1.4.363.1 and `VK_KHRONOS_VALIDATION_VALIDATE_SYNC=1`, `ctest -R '^agc_driver_frame_replay(_rewind.*|_multisample_depth)?$' -V`: 15 of 15 pass, 29 `Insert instance layer` lines in the test output and 12 more in the replay logs the tests write, no missing-layer line, 0 `VUID-` and 0 `SYNC-HAZARD` lines in either. No sync canary ran, so this is not a synchronization-validation claim. - ThreadSanitizer (`-DANYPS5_ENABLE_TSAN=ON`, no suppressions): `_rewind`, `_rewind_chained`, `_rewind_page_start`, `_rewind_zero_control`, `_rewind_zero_control_parked`, `_rewind_in_order` and `_rewind_kept_words` pass with no report. **On this head, `025f5a150e`**, Windows 11 Pro, NVIDIA GeForce RTX 3080 (driver 621.24), built with #20845 merged locally so the GTA picture is upright on `main` after #16053: - Vulkan gate, `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer`, `ctest -R '^(agc_driver_frame_replay.*|agc_flush_exclusion|agc_driver_memo_pending_collect.*|agc_driver_multisample_retirement|agc_driver_sample_multisample_target|agc_driver_native_multisample_depth|agc_driver_depth_plane_partial_store.*)$'`: rc 0, 0 `VUID-` lines in the test output and in the 62 replay subprocess logs. - GTA V capture rk3 (calls format 1, replayed with the version check relaxed locally): one cold run with the shader caches emptied and `--cold-pipelines --no-synthesize`, five normal runs, and `--repeat 5 --verify-reset`. All seven exit 0 with `pixels_identical` 1.000000, max channel diff 0, 0 pace timeouts, 0 released waits, 0 synthesized and 0 `VUID-` lines. Replay time is 62.3 s cold and 19.6 to 24.4 s warm. The results below are from `3c06fa7a51` and were not rerun on this head. Head `3c06fa7a51` (commits `b0c0014548`, `68a50d7b94`, `3c06fa7a51`) on main `3e7b406e9c`; `main` is now `f35f1e5eca`, which changes only an unrelated line of `docs/dev/debt/libSceAgcDriver.md` among this PR's files and merges cleanly. The Vulkan gate and the mutants of rounds 1 to 8 below ran on `68a50d7b94`; the third commit changes `restoreGroup` in `tools/FrameReplay.cpp`, one check in `AgcDriverGuestMemoryTransaction`, tests and a debt entry, and on `3c06fa7a51` the Linux gate, TSan, the local `frame_replay` tests and rk3 were run again. Windows 11 Pro, NVIDIA GeForce RTX 3080 (driver 621.14), AMD Ryzen 7 5800X. AGENTS.md Vulkan gate, same machine and GPU, `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, one pattern for both (the replay, recorder, depth plane, native depth, multisample, collect and write-tracking tests plus the new ones): main 288/288, this PR 296/296 on `68a50d7b94`, 0 `VUID-` lines (including the replay subprocess logs) and no missing-layer line in either. Fork CI on lavapipe with the validation layer, same pattern on base and ref, which includes `agc_flush_exclusion`, `guest_memory` and `windows_write_watch` ([run 42503822968](https://github.com/chitters2004/AnyPS5/actions/runs/42503822968), `3c06fa7a51`). Linux: base `3e7b406e9c` 266 passed (16 skipped), PR 279 passed (16 skipped), no VUIDs (replay logs included), no missing-layer line, nothing failing on ref only. Windows (MinGW, Mesa lavapipe, LunarG layer): base 265 passed, PR 275 passed, every `agc_driver_frame_replay` test of this PR and `agc_flush_exclusion` pass, no new VUIDs; `agc_driver_frame_replay_cold_pipelines`, `agc_driver_msaa_dcc_clear_4`, `agc_driver_recorder` and `guest_memory` fail on both sides. `agc_driver_native_depth_clears` and `_separate_stencil` hit the 30 s timeout on the PR side only, on a runner 1.72 times slower than the base one (geometric mean over the 56 tests that passed on both); run alone ([run 42508355406](https://github.com/chitters2004/AnyPS5/actions/runs/42508355406)) both pass on both sides (base 21.6 s and 28.6 s, PR 18.2 s and 22.8 s), and on the RTX 3080 they take the same time on `main` and this PR (1.81 s and 1.83 s, 1.04 s and 1.03 s). TSan, [run 42503822968](https://github.com/chitters2004/AnyPS5/actions/runs/42503822968): every `agc_driver_frame_replay` test of this PR passes with no report, the rewind ones included; the failures are the ten that fail under TSan on `main` (`agc_driver_frame_replay_blocking`, `_concurrent`, `agc_driver_pm4`, `_pm4_replay`, `_pm4_rewind_trace`, `_pm4_stall_watchdog`, `agc_driver_graphics`, `_graphics_maps_fallback`, `agc_graphics_profile_draw`, `agc_driver_recorder`), `agc_driver_pm4_replay_tool`, which does not run because `agc_driver_pm4_replay` fails, and one TSan warning in `agc_driver_pm4_stall_prompt_real`, which passed 31 of 31 runs under TSan on both `main` and this PR ([run 42504682283](https://github.com/chitters2004/AnyPS5/actions/runs/42504682283), [run 42504690727](https://github.com/chitters2004/AnyPS5/actions/runs/42504690727)). Local RTX 3080, `ctest -R frame_replay` with the validation layer on `3c06fa7a51`: 33/33, 0 `VUID-` lines. Round 10 mutants of `restoreGroup`, each built with TSan on fork CI and run 11 times per rewind test, all killed: the release stores moved into the per-chunk loop (`_rewind`, `_rewind_chained`, `_rewind_in_order` fail 11 of 11; [run 42502221691](https://github.com/chitters2004/AnyPS5/actions/runs/42502221691)); the first-dword rule dropped (`_rewind_page_start` 11 of 11; [run 42502233966](https://github.com/chitters2004/AnyPS5/actions/runs/42502233966)); the parked words stored in address order with the rest (`_rewind`, `_rewind_chained`, `_rewind_in_order` 11 of 11; [run 42502246723](https://github.com/chitters2004/AnyPS5/actions/runs/42502246723)); each group restored at most once per pass (`_rewind_in_order` 11 of 11, a wrong label, not a race; [run 42502258941](https://github.com/chitters2004/AnyPS5/actions/runs/42502258941)). Without TSan, on the local RTX 3080, only the last fails (3 of 3); the other three are races that a plain build does not show. Red first, on the RTX 3080, one line reverted each: `agc_driver_frame_replay_multisample_depth` fails ("a guest memory transaction ended without failing although a submission was accepted inside it") without the transaction's accepted-serial check; `agc_driver_frame_replay_partial_walk` fails when a failed walk is trusted; `agc_driver_frame_replay_large_range` fails ("on fewer than two threads") with one worker and with ranges not split into pieces; `agc_driver_frame_replay` fails with `--verify-reset` ("guest memory at ... differs from the captured contents after the reset") when the written pages are left out of the candidates, and passes with the same mutant without `--verify-reset`, so the flag is what catches it. Mutants on this head, fork CI on lavapipe, one patch each, same tests ([run 42487045268](https://github.com/chitters2004/AnyPS5/actions/runs/42487045268)), all 20 built and all 20 killed: no accepted-serial check (`_multisample_depth`); no split into pieces and one worker (`_large_range`); no written pages among the candidates (`agc_driver_frame_replay` and others); no walk-failure fallback (`_sub_page_resets`, `_partial_walk`); no retirement over pages the flush added; no HTILE in a colour footprint; single-sample targets not checking the stencil plane; no mapping check; verifier without the owner checks; rewriting every owner page regardless of equality; skipping inactive depth surfaces; prefix-key HTILE forget; whole-range candidates; and the six round-8 mutants: GPU-owned ranges left out of the candidates (`_untouched_gpu_owner`); deferred HTILE clears kept over replaced pages (`agc_graphics_profile_draw`); a single-bool flush exclusion (`agc_flush_exclusion`); empty pieces kept (`_sub_page_resets`); a stencil footprint one page short (`agc_graphics_profile_draw`); a CMASK footprint one byte short (`agc_driver_multisample_retirement`). The same six round-8 mutants were also killed one at a time on the local RTX 3080 build. The three new red tests also fail on the round-7 code. GTA V (PPSA04264) capture rk3, 3 frames, 9,364 draws, `--repeat 5 --verify-reset` on the RTX 3080, this head `3c06fa7a51`: rc 0, `pixels_identical` 1.000000, max channel diff 0, `delta_mib` 20169.7 as on `e907e3d53b`. | Pass | rewritten | reset | verify | replay | replay on `e907e3d53b` | |---|---|---|---|---|---| | 2 | 587,177,984 | 1.27 s | 1.19 s | 9.53 s | 9.99 s | | 3 | 572,559,360 | 0.39 s | 1.18 s | 9.55 s | 9.95 s | | 4 | 572,559,360 | 0.39 s | 1.19 s | 9.36 s | 9.91 s | | 5 | 572,559,360 | 0.39 s | 1.20 s | 9.47 s | 9.92 s | The held words added by this round (at most one per chunk, plus every dword after a REWIND header) do not show in the replay time. The compare now rewrites a differing page from the window it just decoded instead of decoding it again in a second pass. A/B on the same build and capture, back to back, two runs each, passes 3 to 5: round-6 tool (separate compare and restore, 64 MiB pieces) 590 to 678 ms reset; fused with 64 MiB pieces 402 to 438 ms; fused with 16 MiB pieces 426 to 445 ms, with verify 1.19 to 1.26 s against 1.25 to 1.32 s. All six runs rewrote the same bytes with identical pixels; replay passes were 10.19 to 10.56 s in all of them, so the pass time does not depend on either change. The 64 MiB piece is kept. The product submission path is unchanged: `Submission.cpp` is identical to `main`, so the per-submit cost of round 6 (two sequentially consistent read-modify-writes per `Submit` and `SuspendPoint`) is gone. Not covered: a submission or mapping change during the transaction is only detected afterwards (debt entry). `python3 tools/check_conventions.py --base origin/main`: all checks passed. `python3 tools/pr_overlap.py --branch fix/replay-repeat-msaa-depth-v3` failed closed: no open PR conflicts textually with this branch, and 91 could not be compared because they conflict with `main`; the three that overlap in purpose or behaviour are described above. The PRs new since round 6 that share files (15455, 15456, 15529, 15548, 15621, 15806, 15807, 16260) do not touch the transaction or the reset. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 3080, driver 621.14, Windows 11 Pro 10.0.26320; lavapipe (llvmpipe, Mesa) on the Ubuntu and Windows fork CI runners - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-11-16 17:06:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T17:06:33Z.

Review: COMMENTED


Reviewed — comments

The prepared bundle describes a substantial replay reset and rewind race fix; I reviewed only part of the changed source, so a formal approval or change request is not justified.

What I ran

Read the prepared description, commits, manifest, and initial diff excerpt. Read lines 1–200 of tools/FrameReplay.cpp at the pinned head. No tests or commands were run.

Results

Check Result Note
Bundle inspection passed Description, commits, manifest, and diff excerpt read
Source review not run Only one changed source file was partially read
Tests not run No tests executed

Findings

Blocking

None verified.

Non-blocking

None.

Not verified

Most of the diff and changed files were not read. The changed files listed in the manifest include core/libs/prx/libSceAgcDriver/Execution/include/Driver.hpp, core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp, core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp, core/libs/prx/libSceAgcDriver/Execution/src/Driver/EntryPoints.cpp, core/libs/prx/libSceAgcDriver/Execution/src/Driver/Lifecycle.cpp, core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp, core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp, core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp, core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp, core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp, core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp, core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp, core/libs/prx/libSceAgcDriver/tests/DepthSurfaceReuse.cpp, core/libs/prx/libSceAgcDriver/tests/FrameReplay.cpp, core/libs/prx/libSceAgcDriver/tests/FrameReplayState.cpp, core/libs/prx/libSceAgcDriver/tests/Recorder.cpp, the three listed frame replay and recorder CMake files, core/libs/prx/libSceAgcDriver/tests/execution/AlphaToCoverage.cpp, core/libs/prx/libSceAgcDriver/tests/execution/DepthPlanePartialStore.cpp, core/libs/prx/libSceAgcDriver/tests/execution/MultisampleRetirement.cpp, core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp, core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp, core/libs/prx/libSceAgcDriver/tools/FrameReplay.cpp, the listed libc guest allocation and write-watch headers and sources, and the three listed development documentation files. Texture.cpp and Recorder.cpp were excluded from the prepared full-text bundle; neither was read through the reader. Only lines 1–200 of tools/FrameReplay.cpp were read. The repository head is 24b9c1bbe126700ca07e3e48fa915d2e0ca65a8f.

To get this to a good state

Nothing is required. Optional: complete the targeted source review and run the relevant checks before making a formal decision.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5924100550 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17338#pullrequestreview-5924100550). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T17:06:33Z. **Review:** COMMENTED --- # Reviewed — comments The prepared bundle describes a substantial replay reset and rewind race fix; I reviewed only part of the changed source, so a formal approval or change request is not justified. ## What I ran Read the prepared description, commits, manifest, and initial diff excerpt. Read lines 1–200 of `tools/FrameReplay.cpp` at the pinned head. No tests or commands were run. ## Results | Check | Result | Note | |---|---|---| | Bundle inspection | passed | Description, commits, manifest, and diff excerpt read | | Source review | not run | Only one changed source file was partially read | | Tests | not run | No tests executed | ## Findings ### Blocking None verified. ### Non-blocking None. ## Not verified Most of the diff and changed files were not read. The changed files listed in the manifest include `core/libs/prx/libSceAgcDriver/Execution/include/Driver.hpp`, `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp`, `core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp`, `core/libs/prx/libSceAgcDriver/Execution/src/Driver/EntryPoints.cpp`, `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Lifecycle.cpp`, `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`, `core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp`, `core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp`, `core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp`, `core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp`, `core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp`, `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`, `core/libs/prx/libSceAgcDriver/tests/DepthSurfaceReuse.cpp`, `core/libs/prx/libSceAgcDriver/tests/FrameReplay.cpp`, `core/libs/prx/libSceAgcDriver/tests/FrameReplayState.cpp`, `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`, the three listed frame replay and recorder CMake files, `core/libs/prx/libSceAgcDriver/tests/execution/AlphaToCoverage.cpp`, `core/libs/prx/libSceAgcDriver/tests/execution/DepthPlanePartialStore.cpp`, `core/libs/prx/libSceAgcDriver/tests/execution/MultisampleRetirement.cpp`, `core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp`, `core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp`, `core/libs/prx/libSceAgcDriver/tools/FrameReplay.cpp`, the listed `libc` guest allocation and write-watch headers and sources, and the three listed development documentation files. `Texture.cpp` and `Recorder.cpp` were excluded from the prepared full-text bundle; neither was read through the reader. Only lines 1–200 of `tools/FrameReplay.cpp` were read. The repository head is `24b9c1bbe126700ca07e3e48fa915d2e0ca65a8f`. ## To get this to a good state Nothing is required. Optional: complete the targeted source review and run the relevant checks before making a formal decision.
MarcZX10 commented 2026-11-17 16:04:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T16:04:40Z.

Review: COMMENTED


Replay reset and rewind fixes — no blocking findings

Nothing blocks this; the points below are optional.

What I ran

  • Head 28e7214eb247bb3aa2c489d4a621f8c2fdcf7ce9, base main.
  • Read from the review folder: description.md, commits.md, manifest.json, files.json and the full diff.patch. files/ was not opened.
  • Reader lookups, one command per call:
repo_read.py search <pattern>
repo_read.py cat <path> <start> <end>
  • No build, test, sanitizer or validation-layer run in this review.
  • The verdict covers the diff hunks I read for all 35 reviewed files. It does not cover the full text of those files.

Results

Check Result Note
Full diff read passed All 35 reviewed files, through their hunks
Full file text read not run files/ not opened; about 12 reader spans and searches
Build and test suite not run Author reports fork CI; not rerun here
Replay buffer shared across threads passed restoreGroup callers run under memoryMutex
// comments in added lines passed None found

Excluded by size in the manifest: Graphics/src/Texture.cpp and tests/Recorder.cpp. Only their hunks were read.

Findings

Blocking

None.

Non-blocking

  • core/libs/prx/libSceAgcDriver/tools/FrameReplay.cpp:444: for each page that differs, restoreDiffering scans the whole owned list with std::any_of to add ownedBytes. The cost grows with pages times owner ranges. Not measured. A smaller cost: sort the owned runs once and advance a cursor across each window.
  • core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp:1273: the description says single-sample clears are dropped "over every inactive multisampled colour plane it removes from the guarded list". The code adds a removed entry to retired only when metadataValid is unset. I did not establish whether a removed entry with metadataValid can still carry a recorded clear. Either the text or the condition should be made to match.

Not verified

  • Lock order across FlushExclusion, the depth guard, the surfaces mutex and the HTILE read memo. RetireReplacedDepth takes the GPU lock, then the surfaces mutex, then the HTILE read mutex. I did not check the other paths that take these.
  • Locking of clearedHtiles() in the new erase_if in RetireReplacedDepth (Graphics/src/DepthSurface.cpp) against its other users. I saw the uses, not their locks.
  • AgcDriverGuestMemoryTransaction waits for device idle while it holds the GPU lock. I did not check whether any completion path needs that lock.
  • Windows whole-arena write watch, and Linux PAGEMAP_SCAN and userfaultfd behaviour. Not checked on this machine.
  • Test results, the TSan and validation-layer runs, and the GTA capture. These are author-reported and were not run here.

To get this to a good state

Nothing is required.

Optional: the two points under Findings.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5941975020 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17338#pullrequestreview-5941975020). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-17T16:04:40Z. **Review:** COMMENTED --- # Replay reset and rewind fixes — no blocking findings Nothing blocks this; the points below are optional. ## What I ran - Head `28e7214eb247bb3aa2c489d4a621f8c2fdcf7ce9`, base `main`. - Read from the review folder: `description.md`, `commits.md`, `manifest.json`, `files.json` and the full `diff.patch`. `files/` was not opened. - Reader lookups, one command per call: ``` repo_read.py search <pattern> repo_read.py cat <path> <start> <end> ``` - No build, test, sanitizer or validation-layer run in this review. - The verdict covers the diff hunks I read for all 35 reviewed files. It does not cover the full text of those files. ## Results | Check | Result | Note | |---|---|---| | Full diff read | passed | All 35 reviewed files, through their hunks | | Full file text read | not run | `files/` not opened; about 12 reader spans and searches | | Build and test suite | not run | Author reports fork CI; not rerun here | | Replay buffer shared across threads | passed | `restoreGroup` callers run under `memoryMutex` | | `//` comments in added lines | passed | None found | Excluded by size in the manifest: `Graphics/src/Texture.cpp` and `tests/Recorder.cpp`. Only their hunks were read. ## Findings **Blocking** None. **Non-blocking** - `core/libs/prx/libSceAgcDriver/tools/FrameReplay.cpp:444`: for each page that differs, `restoreDiffering` scans the whole owned list with `std::any_of` to add `ownedBytes`. The cost grows with pages times owner ranges. Not measured. A smaller cost: sort the owned runs once and advance a cursor across each window. - `core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp:1273`: the description says single-sample clears are dropped "over every inactive multisampled colour plane it removes from the guarded list". The code adds a removed entry to `retired` only when `metadataValid` is unset. I did not establish whether a removed entry with `metadataValid` can still carry a recorded clear. Either the text or the condition should be made to match. ## Not verified - Lock order across `FlushExclusion`, the depth guard, the surfaces mutex and the HTILE read memo. `RetireReplacedDepth` takes the GPU lock, then the surfaces mutex, then the HTILE read mutex. I did not check the other paths that take these. - Locking of `clearedHtiles()` in the new `erase_if` in `RetireReplacedDepth` (`Graphics/src/DepthSurface.cpp`) against its other users. I saw the uses, not their locks. - `AgcDriverGuestMemoryTransaction` waits for device idle while it holds the GPU lock. I did not check whether any completion path needs that lock. - Windows whole-arena write watch, and Linux `PAGEMAP_SCAN` and userfaultfd behaviour. Not checked on this machine. - Test results, the TSan and validation-layer runs, and the GTA capture. These are author-reported and were not run here. ## To get this to a good state Nothing is required. Optional: the two points under Findings.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!17338
No description provided.