fix(agc): leave GPU-stored words out of frame capture deltas #12568
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12568"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by chitters2004 on 2026-10-28T20:44:56Z.
What
Since the last review: thuanquang's
591073f374(+33 −21, the parked-wait compare below) with its testsf8de2a2bc8and6a2e3c12cc,3ddbd843a0(restorestestParkedRewindReplays, which a merge ofmaindropped) ande264114de4(+2 −3: a duplicate flush inrestoreGroup, and the debt entries for the unwatched fallback). The rest are merges ofmain; the last,e0df5b76d8, mergesdff7484fd1. #12567 is merged, so the diff againstmainis this PR's own: 16 files, +788 −64.A delta read while queues are parked (#12567) holds what their earlier packets stored: labels,
WRITE_DATA, fills. The replay restores those values before it replays the work that writes them, so a queue waiting on such a label is released before the work ahead of the label runs. On GTA V this showed as garbage V# reads, device loss and magenta frames in about half the replays.The packet paths a queue worker executes report what they store through
FrameRecorder::NoteGpuStore: labels (noteLabelStore),WRITE_DATA,COPY_DATA,DMA_DATA,COND_WRITE, constant RAM dumps,MEM_SEMAPHOREsignals and waits, and sample dumps. Buffer fills report their pattern throughNoteGpuFill. Only a capture in progress records them, word by word, up to 64 KiB per store.A delta leaves out each word that still holds the value the driver stored there, counted as
gpu_store_bytesincapture.json. A word that holds another value is written and its entry retired, so a later title store of the driver's value is kept. This holds on every delta path, including the host pages a shader delta writes whole.A block of a new range that is all zero is skipped only when no recorded store touches it. Before, a block the title cleared after a GPU fill was skipped and the replayed fill survived.
(JJenkx) A delta also samples writable ranges that have no write-watch coverage, such as memory whose watch was lost at a host import, after the queues settle. An unchanged block is skipped only when the GPU was idle with no new submission accepted since its last sample. Before, a CPU store into such memory was never captured, because its write stamp never advanced.
(thuanquang) A shader delta is cut to the capture's readable ranges, so it no longer writes a whole 64 KiB block across a page no range holds, and the replay refuses a delta or snapshot that reaches memory no range maps.
(thuanquang) When a shader delta or a full delta writes bytes, it forgets the other path's hash records of them (
hostPageHashes,unwatchedHashes). Before, each path skipped bytes by a record the other never updated, so a capture could keep code a title had since registered again or restored.(thuanquang) A delta records each
WAIT_REG_MEMits queues were parked on with its address, reference, mask, compare function and size (calls format 3), and the replay compares all of them. Before, it recorded only the address, so a queue parked on the first of two waits on one gate counted as parked as captured while the capture had read the delta during the second, and the work between them overwrote a later CPU store. A REWIND park is recorded by its address only. Readers accept formats 1 to 3; a format 2 capture is compared by address as before.A writable range without write-watch coverage is sampled in every delta after GPU work, so on GTA V's city scene a 3-frame capture recorded its ~474 MiB of writable sections again in each group: 10 deltas, 3.5 GiB, against 103 MiB before the fallback. A delta part whose bytes equal the last part recorded at the same address and size now refers to that payload instead of storing it again (
7d87265d66,87111995ec). The writer compares every byte against its own copy of the earlier part before sharing it. The replay still restores the bytes in every group. Memory files are format 2, and readers accept formats 1 and 2. Overlapping collected blocks are merged before they are read, but only when both have 4-byte-aligned edges, sokeepTitleWordsstill leaves out GPU-stored words.Overlap: #12567, which this was stacked on, is merged. The no-coverage fallback is carried here rather than in a separate PR, as agreed with JJenkx (comment): it relies on this PR's GPU-store filtering.
What stays in deltas (GPU copies, larger copies, occlusion counters, CPU-executed
RELEASE_MEMtimestamps, shader stores, render target write-backs) is a new debt entry.Tested
Since
34da67b255:a6a53249baamergesmaina3fecbe3ded.4ee175adf01makesagc_driver_frame_replay_rewind_copy_heldpoll the recorder under the GPU mutex, so its check no longer races the committer.c9ebb0b25d8makesagc_driver_frame_replay_gpu_storewait for a label the compute queue writes after its copy before it compares, instead of polling the copy's target. Both are test-only. Fork CI on lavapipe: run 43928056634. The Linux gate and Windows pass, and the report is clean. TSan fails only tests thatmainitself fails under TSan: the frame replay tests' label polls and bulk copies against test writes,agc_driver_recorder, andagc_graphics_profile_draw(main-only control: run 43906132257).Capture cost on a title (GTA V city scene, RTX 3080, Windows 11). Each build was booted twice and captured 3 frames 35 s after standing still. Base:
main2f8c843691+ #14561. This PR:34da67b255+ #14561.The snapshot is the same in both (about 12.5k ranges, 4.22 GiB). Frame time outside a capture is unchanged: every recorder path added here runs only while a capture is in progress, and outside one the store hooks cost one relaxed atomic load. The extra delta volume and the roughly 10 s longer stall come from the no-coverage fallback. It reads and hashes about 300 MiB of writable ranges without write-watch coverage at every delta. 71.2% of the delta bytes repeat the last part recorded at the same address and are shared, so only about 400 MiB more reaches the disk. Details: comment.
Since
c161bdbe6c:f51ab73729keeps the most recently used delta parts and drops the read-back path. Fork CI on lavapipe (run 44399609340): Linux 83 of 83, Windows 82 of 83;agc_driver_frame_replay_cold_pipelinesfails on its base too.Memory cost of the delta cache.
FrameCaptureWriterkeeps the raw bytes of the most recently used delta parts, keyed by address and size, so a repeated part is compared withmemcmpagainst RAM outside the writer mutex. The copy uses at mostFrameCaptureWriter::CachedDeltaBytes= 512 MiB, held until the capture ends.delta costsline drops the delta hashing time. It now reads<n> repeated parts compared in <s> s, <n> parts evicted from the delta cache.GTA V, standing, 10 frames, RTX 3080 on PCIe Gen4 x16. Four boots per build in ABBA and BAAB order, all quiet-checked CLEAN. The capture holds 14,383 keys of 901 MiB, and a part repeats 1 to 3 deltas later.
GuestMemory::Watchedcheck and the content hash, and no writer code runs inside it. One more boot per build timed the three parts separately (an untimed diagnostic build): every part was 8 to 17% slower with the change. That includes the content hash, which is pure CPU over bytes just read: guest read 0.52 → 0.61 s,Watched9.96 → 10.79 s, content hash 7.93 → 8.74 s. The same boots showed compare 6.33 → 0.55 s and 92,787 read-backs → none. So the change moves no cost into the read. The recording thread does different work between reads, and the reads run a little slower. The capture is still 6.9 s faster overall.Head
34da67b255is Dean's merge ofmain(4cd4bc371a, onf9dd5dcf5e) plus three commits:258c3a67a5: a shader delta wrote a host page its ranges cover whole straight to the capture, without the GPU-store filtering of every other delta path, so a label the GPU stored beside shader code entered the delta.agc_driver_frame_replay_shader_host_gpu_store(recorder only) registers a shader whose code sits in a host page, writes a label in that page with aWRITE_DATAsubmission (so the driver notes the store itself), rewrites the code and registers it again: the captured code must be the new code and the label must not be the GPU's value. It fails without the change ("the shader delta of a host page carried a label the GPU stored there") and passes with it, on Linux and under WinLibs GCC 15 and Wine.14f9558427: the debt entry for pages that leave the write watch said a store there is not recorded until the tracker notes the page again, which the unwatched-block sampling replaced. It now states the open cost of that sampling.34da67b255:agc_driver_frame_replay_rewind_copy_heldwaits until the copy into the stored page is pending, so the CPU store always lands on the page the copy's import took out of the write watch.Linux (Ubuntu 24.04, lavapipe, Mesa llvmpipe LLVM 20.1.2) on the same two commits before Dean's merge of
main(f9dd5dcf5ebase):ctest -R "agc_driver_frame_replay|agc_frame_capture|agc_driver_frame_capture": 68 of 68 pass (the threeagc_driver_frame_capturetests after rebuilding their test binary, which a build of another branch had left stale). That run had the test's first form, which noted the label store from the test; theWRITE_DATAform in258c3a67a5was run alone, on Linux and under Wine.ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layerwith layer 1.4.363.1 andVK_KHRONOS_VALIDATION_VALIDATE_SYNC=1,ctest -R '^agc_(driver_frame_replay(_shader.*|_unwatched.*|_store.*|_gpu.*)?|frame_capture)$' -V: 30 of 30 pass, 34Insert instance layerlines, no missing-layer line, 0VUID-and 0SYNC-HAZARDlines. No sync canary ran, so this is not a synchronization-validation claim.On
34da67b255itself (same tree as the branch its CI ran on), fork CI on lavapipe (run 43726057702): Linux gate (Khronos layer) and Windows (MinGW) each pass 32 of 32 selected tests, with 0VUID-lines and nothing failing that passes on the base.The results below are from the heads named and were not rerun on
34da67b255.Head
cf368d991c: fork CI on lavapipe (run 43541821923): Linux 68 of 68 and the ASan build 68 of 68. Windows (MinGW, lavapipe, Khronos layer) 67 of 68;agc_driver_frame_replay_cold_pipelinesfails on its base too. 0VUID-lines. New tests:section_once(an unchanged multi-mapped section block without write-watch coverage is stored once across groups and replayed; it fails on1243812e74), a forced hash collision, a format 1 memory file, references inside a payload, to another address and past the file, and aligned and unaligned block merges.Head
e0df5b76d8(maindff7484fd1merged in):ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest -R "frame_(replay|capture)" -V: 62 of 62 pass, includingstore_second_waitandagc_driver_frame_replay_rewind_copy. 0VUID-lines in the test log and in the 7 replay subprocess logs; the loader inserted the layer in every run (VK_LOADER_DEBUG=layer: 201Insert instance layerlines) and no log haswas not found but was requested.dff7484fd146 of 46, 0VUID-lines, no missing-layer message.Earlier results, on the commits named:
Windows 11 Pro 26220, WinLibs GCC, Ninja Release, NVIDIA GeForce RTX 3080 (driver 621.01).
New tests. "Before", measured before the series was restacked onto #11436, is this branch with
Execution/at its base (#12567):agc_driver_frame_replay_gpu_store: a compute queue waits on a label that a graphics queue'sRELEASE_MEMwrites after 256 MiB of fills and a copy, and the CPU stores beside the label. The test checks that the delta holds the CPU store but not the label, and that the replayed compute queue copies only after the graphics copy. Before:the memory delta holds the label the graphics queue's RELEASE_MEM wrote, so the replay releases the compute queue before the graphics queue copies.agc_driver_frame_replay_gpu_cleared: a block is filled before its range is first recorded, then cleared. Before:the replay copied the GPU fill of a block the title cleared before its range was first recorded.agc_driver_frame_replay_gpu_fillchecks that the filtering keeps a title store that writes back the fill value over an earlier store. It passes here before and after, because host imports keep the write watch on this driver. On Linux/RADV the import drops it, and the test failed until the fallback (JJenkx's report).agc_driver_frame_replay_shader_holeand_delta_hole(thuanquang): a shader in a block with an unmapped page records only what the ranges hold, and a capture holding such a delta is refused. WithFrameRecorder.cppandtools/FrameReplay.cppfrom before78c714060eboth fail 3 of 3; on78c714060ethey pass 3 of 3.4a6daa3cbcfixes_shader_holeon Linux, where a commit inside an allocated block is refused, by releasing the reservation first. It changes only that test. Both hole tests pass 3 of 3 on Windows at that commit with the validation layer, 0VUID-lines; The NVIDIA run at that commit on Linux reports 0 new failures; its 2 new validation IDs are the knownVUID-VkDeviceCreateInfo-pNext-pNextreport for the maintenance8 structure.agc_driver_frame_replay_shader_host_rewritten,_shader_host_restoredand_shader_unaligned_restored(thuanquang), recorder only: a host page or unaligned unwatched range written by one delta path and then rewritten or restored is recorded again by the other. WithFrameRecorder.cppfrom2b39d2ac36all three fail in 2 of 2 runs; onf21b60440dthey pass 3 of 3.f21b60440d,a62a6958abmerged withmain4f41f4c375: full build, thenANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest -R "frame_(replay|capture)" -V --timeout 120: 43 of 43 pass, 0VUID-lines in the test log or the replay logs, no missing-layer message. Without the layer 42 of 43;reservation_errortimes out, the exit hang #14100 fixes.137e2d7876, this branch merged withmain3c3b3cda73, which includes #12871: full build, thenctest -R frame_replay -Vwith the validation layer, 38 of 38 pass, including #12871's threeshader_prologuetests and both hole tests, 0VUID-lines in the test log or the replay logs. The merges ofmainafter it,b3b438c9aeand2b39d2ac36, have not been run here. The results below are from earlier commits, as stated.agc_driver_frame_replay_gpu_restore_cached,_unwatched_start,_unwatched_lateand_unwatched_shared(JJenkx): CPU stores into memory with no write-watch coverage are captured, and an unchanged block isn't skipped across GPU work.7297b72e93makes_unwatched_sharedmap its section views over reset memory on Windows. Before, it threwguest release truncates a host allocationthere.GTA V (PPSA04263, North Yankton prologue), with all four PRs of this series applied: the capture records 3 frames with 13 deltas,
gpu_store_bytes1232. 1 cold-cache replay with--no-synthesizeand 5 normal replays all complete with 0 pace timeouts, 0 released waits and 0 synthesized. This is not a pixel-fidelity claim; replayed frames still differ from the title's.Paired run on
mainand this branch merged into it, same machine and GPU, full builds on both sides with submodules at their pinned commits, host imports on (the default),ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R "frame_(replay|capture)" -V:mainatbb04a4f1ea: 11 tests, all passed, 0VUID-lines; this branch at7297b72e93merged into it (91292a2062): 35 tests, all passed, 0VUID-lines. Neither log containswas not found but was requested by env var VK_INSTANCE_LAYERS. Afterc184a96481, the same run:mainatce9394b844: 11 tests, all passed, 0VUID-lines; this head merged into it (7627024a73): 35 tests, all passed, 0VUID-lines; no missing-layer message in either log. Onmain4c8cff1916(after #12264's write-tracking changes), the same run:main: 11 tests, all passed, 0VUID-lines; this headc184a96481merged into it (ca744e2c66): 35 tests, all passed, 0VUID-lines; no missing-layer message in either log. Capture overhead and delta volume of the fallback on a title are not measured yet.After
8e0d485048(each delta span collected in one call, asmaindoes) and4ef753497f(#12567's fix for @oneandonlydean's report, cherry-picked). Full builds, thenANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R "^agc_driver_frame_replay" -V:8649da1e94, the head before them: 53 of 54 pass.agc_driver_frame_replay_oncefails, because the merge ofmaincollected each 64 KiB block separately and the next delta collected the same pages again.8e0d485048alone:agc_driver_frame_replay_rewind_storefails withthe replay applied the CPU store before the copy that preceded it. The re-collection had hidden this.4ef753497f: 54 of 54 pass.8649da1e94and4ef753497f: 0VUID-lines in the test logs or the replay logs, and neither log has the missing-layer message.The earlier runs: Windows 11 26220, RTX 3080, driver 621.01.
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)🤖 Generated with Claude Code
Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T21:01:52Z.
Review: APPROVED
Reviewed — last commit only
Per the PR description, this review covers only commit
5ed0a3f0bcc6be9b150800e873612c76c60a8b1b, which adds GPU-store tracking to frame-capture deltas. It does not independently review the earlier stacked changes in this PR or its prerequisites.What I checked
FrameRecorder, PM4 packet stores, buffer fills, sample counters, label stores, tests and the updated capture/debt documentation.gpu_store,gpu_fillandgpu_clearedregression cases. They exercise the ordering failure, a later title value after an intervening different value, and a fill followed by a clear before the allocation is tracked.git diff --check upstream/main...refs/review/pr-12568-currentpassed.git merge-tree --write-tree upstream/main refs/review/pr-12568-currentwas clean (c4468efa9089c9e62645136678fdf2c96aeb464f).Findings
Blocking
None found in the reviewed commit.
Non-blocking
docs/dev/BUILD.mddescribesagc_driver_frame_replay_wait_labeltwice in the same test list. Please remove the duplicate during the next docs edit.Limits
I did not build or run the AGC/Vulkan tests locally and did not reproduce the paired Windows validation run or GTA V replay. Those results are author-provided; the hosted Windows job passed. This review makes no claim about console behavior or pixel fidelity.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T00:55:52Z.
Review: APPROVED
Reviewed — looks good
This approval covers the restacked counterpart of the previously reviewed #12568 commit only:
34a5bf2ad3c147be0050654a94a1b54e4d7d16bf; it does not independently approve #12567 or the other prerequisite PRs.What I ran
5ed0a3f0bcc6be9b150800e873612c76c60a8b1bwith the restacked commit usinggit range-diff.git diff --check.Results
Raw result
git range-diff 7431fc799665d5a853e54cbc2892f4dd81d0e1cf..5ed0a3f0bcc6be9b150800e873612c76c60a8b1b db4ab05bc12abeadf6a58184d2b7901c958c01bc..34a5bf2ad3c147be0050654a94a1b54e4d7d16bfshows the previously reviewed change unchanged except removal of the duplicateagc_driver_frame_replay_wait_labelsentence indocs/dev/BUILD.md.Raw output
git diff --check 34a5bf2ad3c147be0050654a94a1b54e4d7d16bf^..34a5bf2ad3c147be0050654a94a1b54e4d7d16bf— no output; exit status 0Raw statuses
windows pass; conventions pass; labels pass; report pass; linux, register-context, relinker, relinker-asan, write-watch skippedAuthor-reported exact-head result
RTX 3080, Windows 11 Pro 26220: 32 selected tests passed, 0VUID-lines, and no missing-layer warning.Negative control
No new behavior was introduced by the restack correction. The validation results are author-reported comparisons against main and intermediate stack heads, not a new independent negative-control run by me.
Findings
Blocking
None found in the scoped commit.
Non-blocking
The duplicate build-guide sentence is removed; the previously reviewed frame-capture behavior is unchanged in the patch series comparison.
Sources
34a5bf2ad3c147be0050654a94a1b54e4d7d16bf.5ed0a3f0bcc6be9b150800e873612c76c60a8b1b.Not verified
I did not rerun the Vulkan suite or test on a console. The 32-test result is author-reported.
To get this to a good state
No further change is requested for this scoped commit. Keep #12567’s separate review and the remaining dependency order explicit.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T09:06:17Z.
Review: CHANGES_REQUESTED
Re-check — changes requested\n\nThe new Linux integration run on exact PR head
34a5bf2ad3reports a functional failure in agc_driver_frame_replay_gpu_fill: replay restores 0x77, but the later GPU-written value 0x5a5a5a5a is absent from the captured delta. That behavior is directly within this PR's frame-capture delta change, although the report has not isolated which branch in the stack causes it. The earlier approval predates this failing result and no longer stands for merge readiness.\n\nPlease localize the failure against the same main and integrated stack, including a control with this PR's implementation reverted or disabled. If the PR causes it, fix the captured GPU-write/delta behavior and rerun the focused replay group plus the relevant frame-capture/replay validation suite. If the failure reproduces without this PR, post the exact control output and update the issue/dependency attribution before requesting approval. Keep the failing assertion; the 33/34 pass result does not clear it. I did not run the Linux/GPU suite locally.\n\nThe separate in-flight-depth timing benchmark changes capture and replay synchronization semantics; keep that as a follow-up PR after this stack's current functional results are resolved, rather than expanding this change.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T22:26:31Z.
Review: CHANGES_REQUESTED
Re-checked — new head, changes requested
The new integration report resolves the earlier GPU-fill replay failure, but its base predates current
mainchanges to the write-tracking code this fix uses.What I ran
c184a964810dd619272d60ca33cc29828d062ff7; PR base:102b7a5cf0ed98dd94d9da76862eb1ee7865a932; livemain:4c8cff191609bc5f28bf9ee2f93672b531285aa4.mainis clean. I am not requesting a remote rebase while the declared dependency #12567 remains open.Results
1e8120c19c8d7a0876dccc0ee8af516cb5ea2912agc_driver_frame_replay_gpu_fillpasses in a 35-test integrated run after the fallback change; the prior failure on the earlier head is resolved in that tested tree.ce9394b844and 35/35 on thec184a96481integration, with the layer loaded and noVUID-lines. I did not run these locally.mainchangedDriver.hpp,WriteEvidence.hppandWrittenBuffers.cpp; these implement the write tracking queried by this PR. The reported comparison does not include those current-main revisions.Unedited local check output
git diff --checkproduced no output and exited 0.Negative control
34a5bf2afailed the Linux integration test; the updated fallback is present atc184a964.Findings
Blocking
Please repeat the same focused validation comparison using live
main4c8cff191609bc5f28bf9ee2f93672b531285aa4and this PR's current head (including the declared #12567 stack).mainhas since changedWrittenBufferIndexand theWrittenBuffers/WriteEvidenceimplementation used to identify captured GPU stores, so the run againstce9394b844does not validate this head against currentmain. Include exact SHAs,ctest -Vcommands,VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1, device/driver/OS, layer-load confirmation, and theVUID-comparison.Non-blocking
ce9394b844integration and shows zero validation errors there.Sources
mainNot verified
I did not build or run CTest, GPU tests, or title captures locally. The reported focused comparison is author-provided and uses main
ce9394b844, before the current write-tracking updates. Current Windows CI was pending.To get this to a good state
Add the focused main/current-head comparison on the live write-tracking code while preserving the #12567 dependency. I will rerun the same non-build checks and review the updated exact head and CI.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T23:33:32Z.
Review: APPROVED
Re-checked — new head, looks good
The new paired RTX 3080 report covers the updated write-tracking interaction with the #12567 stack and reports all 35 focused tests passing with no validation errors.
What I ran
Reviewed exact head
c184a964810dd619272d60ca33cc29828d062ff7, whose recorded PR base is102b7a5cf0ed98dd94d9da76862eb1ee7865a932. I previewed it against refreshedmain1189ec3003672bb364dd9f3119ead7b3976e3c83; the merge is clean. Environment: Debian GNU/Linux x86_64, kernel6.1.0-54-amd64, Python 3.11.2. I did not build or run tests locally.Results
mainmaincomparison remains relevant to those paths.mainand 35/35 on the integrated head withVK_LAYER_KHRONOS_validation, zeroVUID-lines, and no missing-layer message, on Windows 11 / RTX 3080 / driver 621.01. This is author-reported, not locally reproduced.Unedited output from hosted and local commands
Findings
Blocking
None found in the reviewed changes. The new exact-head integration evidence resolves the earlier concern about validating the write-tracking interaction against current
main.Non-blocking
No additional findings.
Sources
Not verified
I did not independently run the reported GPU comparison, build or run CTest locally, or test physical-console behavior. The hosted Linux and specialized jobs are skipped.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T06:31:22Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the targeted code review found no verified defect, and the supplied results report passing checks on the listed revisions.
What I ran
Reviewed head
f9dd5dcf5e17065921cc087dcabd2d523b1e142fagainstmainusingrepo_read.pyfor the prepared diff and targeted repository context. No test or build commands were run. The author-reported checks are summarized separately below.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
I read the 16 changed files listed in
manifest.json:FrameCapture.hpp,FrameRecorder.hpp,BufferFill.cpp,PacketMemory.cpp,LabelHistory.cpp,FrameCapture.cpp,FrameRecorder.cpp,Pm4.cpp,tests/FrameCapture.cpp,tests/FrameReplay.cpp,tests/FrameReplayState.cpp,tests/cmake/agc_driver_frame_replay_state_tests.cmake,tests/cmake/agc_driver_frame_replay_tests.cmake,tools/FrameReplay.cpp,docs/dev/BUILD.md, anddocs/dev/debt/libSceAgcDriver.md. All are marked included;files.jsonwas not available through the reader. I did not run the tests, validate the supplied CI runs, or verify physical-console behavior or capture performance on a title.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T04:36:32Z.
Review: COMMENTED
Reviewed — comments
No blocking defect is verified, but the read-only review environment did not permit running checks, so a formal approval is not justified.
What I ran
Reviewed head
4cd4bc371ac0bca3b01b9d8f3ea63699f4cac498againstmain. Read the prepared description, commits, manifest, diff, and all 16 changed files; no repository checks were run. The author-reported test results in the description were not independently run here.Results
Findings
Blocking
None.
Non-blocking
None verified.
Not verified
Builds, tests, and console behavior were not independently verified. The description reports Windows and Linux CI, Windows Vulkan validation, and GTA V replay runs; these remain author-reported. No changed files were excluded by the manifest. The repository reader was used for targeted source context; no other source files were read.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T16:07:37Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this review; the points below are optional.
What I ran
Reviewed head
34da67b2559ebaad9a8b72844099038e34c152b0using the prepared diff and pinned repository reader. I ran no build or tests; the CI and hardware results below were supplied in the PR description.Results
Negative control
Not run; I did not execute tests or alter the code under test.
Findings
Blocking
None verified.
Non-blocking
Sources
Not verified
I read
description.md,commits.md,manifest.json, anddiff.patch, and inspected repository code inFrameRecorder.cpp,FrameCapture.cpp,FrameReplay.cpp, andPm4.cpp. All 16 changed files were listed as included in the prepared review folder; the remaining changed files were not read in full. I did not run tests, builds, or physical-console checks. CI and hardware test results are author-reported, not independently verified.To get this to a good state
Nothing is required. Optionally provide the paired performance captures, summary, and traces described above.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T18:28:24Z.
Review: COMMENTED
Reviewed — comments
The review covered the prepared diff at head
4ee175adf019499b8a104a8044f23a16ff3bd7f2; no tests were run, and not every changed file was read, so a formal approval is not justified.What I ran
No commands or tests were run. I read the prepared description, commit list, manifest and diff, plus targeted code through
repo_read.py.Results
Findings
Blocking
None identified in the code inspected.
Non-blocking
Sources
Not verified
Read:
review/description.md,review/commits.md,review/manifest.json,review/diff.patch; targeted portions ofFrameRecorder.cpp,FrameCapture.cpp,FrameRecorder.hpp, andFrameReplay.cpp; and thePm4.cppdiff.Not read: full text of every changed file, including the changed tests, CMake test lists,
FrameCapture.hpp, other packet and synchronization changes, and documentation changes. The manifest lists 16 changed files and marks them included; this review did not read all 16 in full. No tests, builds, hardware behavior, or CI results were independently verified.To get this to a good state
Nothing is required. Optional: measure capture overhead and delta volume on a representative title.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T19:39:38Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: preserve correct per-word ownership when GPU stores partially overlap tracked words.
What I ran
Reviewed head
c9ebb0b25d8815bbd6a201182d8e61113b069df2. No commands or tests were run in this review; the description reports CI and local runs.Results
Findings
Blocking
core/libs/prx/libSceAgcDriver/Execution/src/FrameRecorder.cpp:612:noteGpuStorerecords a word only when the store fully covers it, butforgetGpuStoresfirst removes the previous word record for any overlapping store. For an unaligned or short write that touches part of a previously recorded GPU word, the uncovered bytes can still hold the earlier GPU value, but the word is no longer tracked.keepTitleWordscan then include that whole word in a later delta, restoring GPU-written bytes before the replayed work that produced them. Track partial-word results accurately or conservatively keep the affected word out of the delta until its ownership is unambiguous.Non-blocking
None.
Sources
Not verified
To get this to a good state
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T21:46:29Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected implementation contains no verified blocking defect; a complete review was not possible because several changed files were not read.
What I ran
Reviewed head
b2f4d70f189c43df288fb931f4822436a43a782fusing the prepared diff and pinned repository reader. No tests or builds were run.Results
Negative control
Not run; no tests were executed.
Findings
Blocking
None verified in the code inspected.
Non-blocking
None.
Sources
Reviewed prepared diff and repository files at the pinned head. No behavior claims beyond the inspected source are made.
Not verified
The full text of all changed files was not read. Read:
review/description.md,review/commits.md,review/manifest.json,review/diff.patch; targeted portions ofcore/libs/prx/libSceAgcDriver/Execution/src/FrameRecorder.cpp,core/libs/prx/libSceAgcDriver/Execution/src/FrameCapture.cpp, andcore/libs/prx/libSceAgcDriver/tools/FrameReplay.cpp; and the prepared changed-file listing. The other changed files and excluded-file details were not inspected. Author and CI test reports in the description were not rerun or independently verified.To get this to a good state
Nothing is required. Optional: complete review of the remaining changed files and run the relevant checks on this head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T02:05:21Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
Head
a18b257ab881cef20b3042209e24e54e7fbec572, basemain. No merged preview, no build, no tests, and no hosted CI check in this pass.Files: 16 of 16 in the reviewed list were read through their diff hunks (the whole 2029-line diff). None were excluded. Whole-file text was not read.
Repository reads at the head, through the reader:
Also searched the diff for added code comments, and compared the new replay modes in the CMake files with the mode dispatch in the tests.
Results
Findings
Blocking
None.
Non-blocking
forget()inwriteDeltaonly visitsunwatchedHasheskeys that start withinBlockBytes(64 KiB) before the overwritten range (core/libs/prx/libSceAgcDriver/Execution/src/FrameRecorder.cpp:539). Sampled blocks pass throughMergeOverlappingBlocks(FrameRecorder.cpp:518), which can merge a 64 KiB sample with an overlapping written block, so a key can be longer than 64 KiB. Such a key is not erased when a later host-page or shader delta writes inside its tail. Sequence: a block [32K, 128K) is sampled with hash H at accepted serial A; a shader delta writes [100K, 104K) with B andforgetmisses the entry; the title restores the original bytes; the next delta sees the GPU idle at serial A, the hash matches H, and the block is skipped. The replay then keeps B. I did not confirm thatGuestMemory::Watchedand the written-block sizes produce a key longer than 64 KiB, and no test covers this. Suggest capping the merged length atBlockBytes, or scanning from the longest key, and adding a test with a merged block.Sources
github.com/boykopovar/AnyPS5@a18b257ab8/core/libs/prx/libSceAgcDriver/Execution/src/FrameRecorder.cpp (L518)github.com/boykopovar/AnyPS5@a18b257ab8/core/libs/prx/libSceAgcDriver/Execution/src/FrameRecorder.cpp (L539)Not verified
a18b257ab881: not checked, so no approval.onSharedSectionincore/libs/prx/libSceAgcDriver/tests/FrameReplay.cpp,CreateFileMappingW): not read in depth.GuestMemory::Watchedfor partly watched chunks, which decides whether the finding above is reachable.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T03:51:41Z.
Review: COMMENTED
Reviewed PR #12568 diff, all hunks — no blocking findings
Nothing blocks this; the points below are optional. Approval is withheld because the full files at head were not read and nothing was built or run.
What I ran
63183c5750174110a48be5a9d51291be918e48fb, basemain.description.md,commits.md,manifest.jsonand all ofdiff.patch(2,060 lines, 16 files).diff.patchfor//and/*.Results
Findings
Blocking
None.
Non-blocking
core/libs/prx/libSceAgcDriver/Execution/src/FrameRecorder.cpp:636(diff.patch line 636):noteGpuFillrecords a fill only when its address and size are both multiples of 16. Any other fill is still passed toforgetGpuStores, so it is never recorded, and its bytes stay in the next memory delta. The debt entry atdocs/dev/debt/libSceAgcDriver.md(diff.patch line 2048) says buffer fills are recorded "of any size by their pattern", so the code and the entry disagree. Failure scenario: a 20-byte fill at a 4-byte-aligned address. The fill's bytes are kept as title bytes and the replay restores them before the work that writes them, which is the defect this PR fixes. I did not verify whether the driver issues such fills (see Not verified).core/libs/prx/libSceAgcDriver/Execution/src/FrameRecorder.cpp:504(diff.patch line 504): the wait for GPU completion before a delta now runs wheneverspansis non-empty.emitDeltafillsspanswith every readable writable watched or unwatched range (diff.patch lines 406–408), not only ranges with written blocks. In practice every delta now waits up to 10 s, and on timeout the capture stops (diff.patch lines 505–507). The description explains the wait for unwatched sampling only. Please confirm this is intended for deltas with no written blocks. The longest-stall figures in the description may include it.Not verified
files.jsonwas not read.34da67b255and earlier. None is stated for63183c5750. The fork CI links point to another fork and were not checked.CollectWrittenBlockscan return 0 (diff.patch line 516 now keepsspan.sincewhen it returns 0, where the old code assigned it unconditionally).files.jsonunderreviewedto have been read, which this pass did not do.To get this to a good state
Nothing is required.
Optional, once:
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T06:19:39Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
b71905efa7d04d5d37a424156280f1b642d2bcbc, basemain. No merge preview, no build, no test run.Results
gpu_store_bytesmatch the diffwriteChunkafter the headerFindings
Blocking: none.
Non-blocking:
core/libs/prx/libSceAgcDriver/Execution/src/FrameCapture.cpp:300:storedEqualruns under the writer mutex for every delta part whose hash matches an earlier part at the same address and size. Each call flushes the memory file, reads the stored payload back, decompresses it and compares every byte. The byte comparison is what makes sharing safe, so the logic is correct as written. The cost falls on the recorder thread during a capture. The description reports the longest stall rising from 17.5 / 20.6 s to 28.0 / 30.7 s (author-reported, one machine) and does not split that between the no-coverage read, the hashing and this read-back.Sources
Not verified
ctestruns (including the TSan and validation-layer runs), the GTA V captures and the fork CI runs: author-reported, not run here.common/xxhash.h(FrameCapture.cpp:4): the include is there, but I could not confirm that the header exists at that path. A content search cannot find file names.FrameRecorder.cpp:434–437inspects only the range that starts before the query. If two readable ranges overlap, bytes of the earlier one can be missed, and host-page coverage can be counted wrong. I did not confirm that committed and newly registered ranges never overlap.onSharedSection,testDeltaPaths): not compiled here.To get this to a good state
Nothing is required. The non-blocking point above is optional.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T14:09:26Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
f4b1efb824d74edf0c52fb83b5dbaaa96ef42566, basemain, PR #12568 (boykopovar/AnyPS5).Results
files.jsonreadctestFindings
Blocking
None.
Non-blocking
core/libs/prx/libSceAgcDriver/Execution/src/FrameRecorder.cpp:570— the loop overaddedranges writes each block withwriteTitleWordsbut never callsforget. The host-page and block loops below it do callforget, and the commit message says a full delta forgets the other path's hash records. A staleunwatchedHashesorhostPageHashesrecord can then survive for bytes of a range that was unmapped and mapped again at the same address. Possible sequence: a block is sampled with content X at serial S; the range is removed and added again with content Y, which this loop writes; the title restores X with no new submission accepted; the next delta matches the old sample and skips the block, so the replay sees Y. Not reproduced; it depends on address reuse.Not verified
ctest, sanitizer runs, and the hosted CI for this head.FrameRecorder::Active()(Execution/include/FrameRecorder.hpp) was not read.NoteGpuStoredereferences it whilenotingGpuStoresis set, and the flag is cleared only inendGpuStores, after the writer is reset. WhetherActive()can return null in that window is not verified.GuestMemory::Write's default alignment was not checked againstdriverStore's default of 1 (Pm4.cpp). The reader's signature search returned no match.FrameRecorder.cpp:658drops fills whose address or size is not a multiple of 4. WhetherBufferFillissues such fills was not checked. The debt entry describes these as "other fills".tests/were read only as diff hunks. Their assertions were not run.Sources
core/libs/prx/libSceAgcDriver/Execution/src/FrameRecorder.cppline 570 at head:github.com/boykopovar/AnyPS5@f4b1efb824/core/libs/prx/libSceAgcDriver/Execution/src/FrameRecorder.cpp (L570)To get this to a good state
Nothing is required.
Optional:
addedloop should also forget the hash records of the bytes it writes, as the other two loops do. If it should not, a short comment or a note in the debt entry would say why.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T14:59:03Z.
Review: COMMENTED
fix(agc): leave GPU-stored words out of frame capture deltas — no blocking findings in the files read
Nothing blocks this; the points below are optional. The review is partial: about half of the diff was not read, so this is a comment, not an approval.
What I ran
c161bdbe6c, basemain. The change is the PR's own diff againstmain(16 files, +788 −64).manifest.json, anddiff.patchlines 1 to 1134 of 2478.repo_read.py):Results
FrameRecorder::Active()Findings
Blocking
None found in the code I read.
Non-blocking
GpuStores::Fillonly keeps a fill when its address and size are both 4-byte aligned (FrameRecorder.cpp, diff line 768). A fill that does not meet that is dropped without a record, so the words it writes are kept as title words. The commit "match unaligned buffer fills from their own start" suggests the intent was otherwise. I did not confirm whetherBufferFillcan pass an unaligned range.FrameCapture.hpp, diff line 66; the copy is made at diff line 395). The description does not mention this resident cost.storedEqualflushes and re-reads the memory file while the writer lock is held (diff lines 446 to 460). The description has the cost numbers; this only matters if captures are latency-sensitive.Not verified
tests/FrameReplay.cpp,tests/FrameReplayState.cppandtools/FrameReplay.cpp: read only through search hits, not in full (diff lines 1135 to 2478 not read).CollectWrittenBlockscan return 0 as a real value.writeDeltanow keeps the oldsincein that case (diff around line 612), and I did not confirm that this is intended.startGenerationand theWatchedsemantics it depends on.files/folder andfiles.jsonwere not consulted, so the list of excluded files is not checked.To get this to a good state
Nothing is required.
Optional:
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T12:12:18Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the review is incomplete because the prepared bundle omits test results for the exact head and I could not run checks.
What I ran
Reviewed head
f51ab73729bd0b73e7947c8d7152f5af0160ad23. No tests or builds were run. Inspected the prepared description, commits, manifest, diff, and targeted sections fromFrameCapture.cpp,FrameRecorder.cpp, andFrameReplay.cpp.Results
Findings
Blocking
None identified in the inspected code.
Non-blocking
None.
Not verified
The manifest lists 16 changed files, all marked included. I did not read every included file or every changed hunk, and therefore cannot approve the full change. The author-reported CI and game measurements were not independently verified for this head. I also did not run builds, tests, or replay checks.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T17:54:53Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the changed behavior is supported by the code and tests present in the reviewed files.
What I ran
Reviewed head
036df61f643bec1d0da65456c0975dd4731b9b84againstmain. No commands or tests were run; the prepared diff and pinned reader were used. The changed files inmanifest.jsonwere all included and read.Results
files.jsonwas not available through the readerFindings
Blocking
None.
Non-blocking
None.
Not verified
Builds, automated tests, and console behavior were not independently verified. The reader exposed every changed file listed in
manifest.json; there were no excluded changed files listed there. The separatefiles.jsonexclusion report could not be read through the reader.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T13:22:31Z.
Review: COMMENTED
Reviewed — comments
Nothing blocks this review; the notes below are optional.
What I ran
Reviewed head
4e6dc2248fdd90334d5e7210c94f09020b1da04dagainstmainusing the prepared diff andrepo_read.pytargeted reads. No commands or tests could be run through the available review interface.Results
Findings
Blocking
None.
Non-blocking
chunk.bytesandchunk.compressedBytesbefore allocation inRead. A malformed but structurally accepted capture can makeReadresize a vector to the advertised compressed size and allocate a destination of the advertised uncompressed size. The existing reader checks that payload extents fit the file but does not impose size limits. Relevant changed lines:core/libs/prx/libSceAgcDriver/Execution/src/FrameCapture.cpp:504andcore/libs/prx/libSceAgcDriver/Execution/src/FrameCapture.cpp:550.Not verified
To get this to a good state
Nothing is required. The decoder allocation bound is optional feedback.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T06:36:30Z.
Review: COMMENTED
Reviewed — comments
The implementation and targeted tests were inspected at head
d690d21fe1ede80f217a877df1eb3b5bb3f394a1; the review is incomplete because not every changed file was read.What I ran
No repository commands or tests were run. The available review tools provided read-only access to the prepared diff and pinned repository files.
Results
Negative control
Not run; no tests were executed.
Findings
Blocking
None identified in the code inspected.
Non-blocking
No specific code issue identified in the inspected sections.
Not verified
The following changed files were not read:
core/libs/prx/libSceAgcDriver/Execution/include/FrameCapture.hpp,core/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/BufferFill.cpp,core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cpp,core/libs/prx/libSceAgcDriver/Execution/src/Driver/Synchronization/LabelHistory.cpp,core/libs/prx/libSceAgcDriver/Execution/src/Pm4.cpp,core/libs/prx/libSceAgcDriver/tests/FrameReplay.cpp,core/libs/prx/libSceAgcDriver/tests/FrameReplayState.cpp,core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_frame_replay_state_tests.cmake,core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_frame_replay_tests.cmake,docs/dev/BUILD.md, anddocs/dev/debt/libSceAgcDriver.md. No runtime, platform, or hardware behavior was verified.To get this to a good state
Nothing is required. Optional: complete review of the remaining changed files and run the relevant capture and replay tests before making a formal merge decision.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-26T21:11:08Z.
Review: COMMENTED
Actionable comments posted: 6
870670dd-8582-4a14-9415-8d495fae4e47Reviewing files that changed from the base of the PR and between
566e3c6da9anda2fb33c38e.core/libs/prx/libSceAgcDriver/Execution/include/FrameCapture.hppcore/libs/prx/libSceAgcDriver/Execution/include/FrameRecorder.hppcore/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/BufferFill.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Synchronization/LabelHistory.cppcore/libs/prx/libSceAgcDriver/Execution/src/FrameCapture.cppcore/libs/prx/libSceAgcDriver/Execution/src/FrameRecorder.cppcore/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cppcore/libs/prx/libSceAgcDriver/Execution/src/Pm4.cppcore/libs/prx/libSceAgcDriver/tests/FrameCapture.cppcore/libs/prx/libSceAgcDriver/tests/FrameReplay.cppcore/libs/prx/libSceAgcDriver/tests/FrameReplayState.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_frame_replay_state_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_frame_replay_tests.cmakecore/libs/prx/libSceAgcDriver/tools/FrameReplay.cppdocs/dev/BUILD.mddocs/dev/debt/libSceAgcDriver.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T21:16:57Z.
Review: COMMENTED
Reviewed — comments
The inspected code did not establish a blocking defect, but this review is incomplete because several changed files and the test suite were not inspected or run.
What I ran
Reviewed head
a2fb33c38e922c7fc3a8afc295f7beae5eece9b8. Read the prepared description, commit list, manifest, and diff; inspected selected ranges inFrameRecorder.cpp,FrameCapture.cpp,BufferFill.cpp,FrameReplay.cpp,GuestMemory.cpp, andFrameReplay.cpptests. No commands or tests were run.Results
Negative control
Not run; no tests were executed.
Findings
Blocking
None established in the inspected code.
Non-blocking
None.
Sources
Behavior claims are limited to inspected code in the prepared diff and repository files at the reviewed head.
Not verified
Did not inspect all changed files. In particular,
FrameCapture.hpp,FrameRecorder.hpp,GuestMemory.hpp,PacketMemory.cpp,LabelHistory.cpp,Pm4.cpp,FrameReplayState.cpp, both changed CMake test files,docs/dev/BUILD.md, anddocs/dev/debt/libSceAgcDriver.mdwere not read. Other than the selected test ranges inFrameReplay.cpp, test changes were not examined. Did not readfiles.json; the file listing showed 17 changed files and each was included in the prepared bundle.To get this to a good state
Nothing is required. Optional: complete review of the unread changed files and run the relevant frame capture and replay tests before making a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T22:39:50Z.
Review: COMMENTED
Reviewed — comments
Nothing blocks this review, but the remaining performance cost and replay scope should be made clear.
What I ran
Reviewed head
bffde0b5025bc4e18865f1cf45df8746455bd701using the prepared diff and pinned reader. I did not run build or test commands. The CI and title measurements in the description are author-reported.Results
Findings
Blocking
None.
Non-blocking
Not verified
No build, test, validation-layer run or console replay was performed. Author-reported CI and hardware measurements were not independently confirmed. All 20 changed files listed in the manifest were read through the pinned reader; none were excluded by the manifest. The prepared diff omits files excluded by its stated rules (lockfiles, minified files,
dist/,build/and.svg);files.jsonwas not available through the reader.To get this to a good state
Nothing is required. The performance and replay-scope notes above are optional.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T18:58:06Z.
Review: COMMENTED
KeepTitleWordscan now emit a delta chunk covering only part of a word.restoreGroupstages a held wait only if one chunk covers every byte of its operand. If replay has two held waits and a filtered delta contains only the changed bytes of one operand, that chunk misses the staging check and reaches the ordinarymemcpy. The queue can then observe the release beforereleaseStagedruns. Please preserve staging for overlapping chunks, either by reconstructing the operand from all chunks in the group or by retaining full wait operands during capture.Source review of
4520ad6d9d. The paired capture and replay tests are queued.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-12-03T19:08:47Z.
Review: COMMENTED
Actionable comments
fa0fc4a0-42f5-484f-9c44-d274d364bca4Reviewing files that changed from the base of the PR and between
bffde0b502and4520ad6d9d.core/libs/prx/libSceAgcDriver/Execution/include/FrameCapture.hppcore/libs/prx/libSceAgcDriver/Execution/include/FrameRecorder.hppcore/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/BufferFill.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cppcore/libs/prx/libSceAgcDriver/Execution/src/FrameRecorder.cppcore/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cppcore/libs/prx/libSceAgcDriver/Execution/src/Pm4.cppcore/libs/prx/libSceAgcDriver/tests/FrameReplay.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_frame_replay_tests.cmakecore/libs/prx/libSceAgcDriver/tools/FrameReplay.cppdocs/dev/BUILD.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-03T20:38:39Z.
Review: COMMENTED
Reviewed — comments
Nothing blocks this change; the points below are optional. I could not complete a formal decision because the pinned reader could not log in this read-only run directory, and I did not read every reviewed file.
What I ran
Reviewed head
4520ad6d9d0bbce77792ab2f7aba1cb5e2191af3. I inspected the prepared description, commit list, manifest, and diff, plus targeted head copies. The reader search failed when it attempted to appendreads.jsonl; no tests or builds were run.Results
Negative control
Not run; no tests were run.
Findings
Blocking
None verified.
Non-blocking
None.
Sources
Not verified
The pinned reader could not provide further source context. I inspected targeted portions of the prepared head copies for
FrameRecorder.cpp,FrameCapture.cpp,BufferFill.cpp,FrameCaptureFilter.cpp,FrameReplay.cpp, andFrameReplayState.cpp; I did not read every changed file. The manifest lists 20 reviewed files and 0 excluded files. Tests, builds, and runtime behavior were not verified.To get this to a good state
Nothing is required. Optionally, rerun the review with reader logging writable and inspect the remaining changed files before making a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-12-03T21:33:31Z.
Review: COMMENTED
Actionable comments
efa0e1fc-d601-4467-8c07-ed45c43c2567Reviewing files that changed from the base of the PR and between
4520ad6d9dand0aa09ebedb.core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cppcore/libs/prx/libSceAgcDriver/Execution/src/Pm4.cppcore/libs/prx/libSceAgcDriver/tests/FrameReplay.cppcore/libs/prx/libSceAgcDriver/tests/FrameReplayState.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_frame_replay_state_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_frame_replay_tests.cmakecore/libs/prx/libSceAgcDriver/tools/FrameReplay.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T21:36:24Z.
Review: COMMENTED
This revision stages each held operand across partial chunks and reads untouched bytes just before release. The new one-byte replay fixture exercises the early-release issue I raised. The shared-page case also checks that recording one capture range does not absorb a later store to its neighbor.
On the previous
4520ad6d9dhead, four common capture, replay and scalar tests passed on maina9cbd48cb0and the change, and three change-only replay cases passed on lavapipe. All Vulkan runs inserted validation 1.4.369 with zero missing-layer warnings and zero VUIDs. The current head's paired run and new fixtures are queued.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-12-03T22:26:49Z.
Review: COMMENTED
Actionable comments
4a1d3dab-06a7-47cb-8600-859b6917fdbaReviewing files that changed from the base of the PR and between
0aa09ebedbandd6e81431d9.core/libs/prx/libSceAgcDriver/tests/FrameReplay.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_frame_replay_tests.cmakecore/libs/prx/libSceAgcDriver/tools/FrameReplay.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-03T23:21:49Z.
Review: COMMENTED
Reviewed — no blocking findings
No blocking issue was verified in the inspected ranges; the review is incomplete, so this is a comment rather than an approval.
What I ran
Reviewed head
a10621f31158018c46e540fb6845519af6f8012d. I inspected the prepared diff and targeted ranges in the capture, recorder, guest memory, PM4, label history, packet memory, and replay source and test files. The pinned reader could not complete its reads because it could not write its read log in the read-only run folder. No tests or builds were run.Results
Negative control
Not run; no tests were run.
Findings
Blocking
None verified in the inspected ranges.
Non-blocking
None.
Sources
Not verified
files.jsonlists 20 reviewed files. Targeted ranges were read in 9:FrameCapture.cpp,FrameRecorder.cpp,GuestMemory.cpp,Pm4.cpp,LabelHistory.cpp,PacketMemory.cpp,FrameCapture.cpptests,FrameReplay.cpp, andFrameReplayState.cpp. Full files and the remaining 11 reviewed files were not read; no conclusion is made about those portions. No runtime, platform, or hardware behavior was independently verified.To get this to a good state
Nothing is required.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.