perf(agc): prove epochs whenever draws commit on the committer #20041
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/20041"
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-11-14T13:14:45Z.
What
ShaderResources::EpochProofs()decides whether a resource proven inside the current collect epoch keeps that proof untilGuestMemory::BreakProofs, instead of being proved again at every use. Three places read it:StorageTexturerefresh epoch exit (a resident target or storage image whose epoch proof holds skips the full refresh proof);ShaderResourcesrevalidation (resource proofs reused from the epoch);GuestBufferMemory(epochMirrors(): a cached draw address space retaken in the same epoch is reused instead of refreshed).Before:
EpochProofs()returnedDrawPipelineEnabled(), so all three were on only withAPS5_DRAW_PIPELINE(the finisher), which is off by default. Yet on the default path queue 0 draws already commit on the committer thread (APS5_PIPELINED_DRAWSdefaults to on), which is the proof thread the epoch scheme needs. So default users paid a full proof per lookup.After:
EpochProofs()=!RuntimeSwitches::Set(NoEpochProofs) && DrawPipeline::Depth() != 0. Epoch proofs follow the committer depth, not the finisher flag:APS5_DRAW_PIPELINE;APS5_PIPELINED_DRAWS=0(draws commit inline) and withAPS5_LOCKED_DRAW_PREPARE=1;APS5_NO_EPOCH_PROOFSRuntimeSwitch (APS5_AB can toggle it).The finisher,
CommitTrims, pipelined color metadata passes and the shape refresh still followAPS5_DRAW_PIPELINE; only the proofs moved. ENVIRONMENT.md rows (alphabetical) forAPS5_NO_EPOCH_PROOFSandAPS5_PROFILE_EPOCH_PROOFS; theAPS5_DRAW_PIPELINEandAPS5_VERIFY_DRAW_PIPELINErows and the ARCHITECTURE.md sentence are updated.Counters. The reuse tallies move from shared atomics on the three hot paths to per-thread
ProfileCountershards (#19348) behindEpochProofCounts()inGraphics/include/EpochProofCounters.hpp: resource reuses and proofs, storage reuses (replacing theStorageTexture::epochRefreshesatomic), mirror reuses and refreshes.APS5_PROFILE_EPOCH_PROOFS=1prints one line per 10 s of pipelined draws fromDrawPipeline::enqueue's existing window, without the rest ofAPS5_PROFILE_DRAW:[epoch-proofs] (10 s, proofs on|off): resource proofs reused N, proved N; storage refreshes reused N; address spaces reused N, refreshed NIt also prints under
APS5_PROFILE_DRAWandAPS5_PIPELINE_STATS. Unprofiled it costs one relaxed sharded add per event and no clock read.APS5_VERIFY_DRAW_PIPELINEkeeps its own verify-only atomics: the full check of every reused resource proof, and now a guest-memory compare of every 64th reused address space per thread.What the resource epoch exit keys on. The exit in
ShaderResources::Revalidatereturns a set proved earlier in the same collect epoch without running the full proof. Before this PR it was reached only underAPS5_DRAW_PIPELINE, and it compared only the collect epoch,ProofSerialandPendingSerial. Turning it on by default needed it to refuse every case where the full proof would refuse or would store. Each input below was added for a failing case, which has a test:8725dd5358).noteUncached, which every removal from the storage cache goes through (eviction, entry cap, metadata move, reclaim, device clear), now bumps the same serial: evicting a clean storage image moved nothing, since flush bumps the pending serial only for a dirty image and detach never does, while the full proof refuses a set that still binds it (FastFail::Evicted) (e6aa971f90);90a093a600);b1ed306069);84b5c52e99).retirenow bumps it too when a live surface is retired (a colour target or storage write over its memory, or a displaced plane owner), which the full proof refuses for a set that samples it (FastFail::Depth) (e6aa971f90);main's #15302 re-validates a template after a host import retires, and the merge ofmaincarries that into the stamp (retired, fromRetiredImportSerial()), so a retired import turns the exit off as it turnsmain's check on.The committer is the proof thread, so it does not break proofs when it takes the GPU lock, and its draw commits skip the per-commit break: a draw that evicted or retired what the next draw's set binds moved nothing the exit compared. Both bumps reuse inputs the exit already loads, so they cost one atomic increment per eviction or retirement and nothing per draw.
The inputs are one
ExitStampcompared with==(1ad1d8f13b).Stale planes, scoped to the set. A depth draw does not break proofs, so a plane it left unstored over memory the set reads must keep the exit off: the full proof would flush it first. The first fix refused the exit while any plane anywhere was stale. On GTA that took the reuse to 0 per 10 s (ep5), because some plane is nearly always stale. When a set is proved, it now records the ranges the full proof flushes planes over: direct regions, validated texture surfaces, storage images and index subscription spans. The exit refuses only when a stale plane overlaps one of them. A set whose textures are not all validated keeps the global check. A clean scan is cached against a serial that moves on every change to the stale planes, so a steady frame pays one atomic compare.
What verify reports.
APS5_VERIFY_DRAW_PIPELINEruns the full proof behind every reused proof. It counts:ProofWorkTrace, and storage images skip their own epoch proof while it runs, because that proof keys on the same serials. The first 64 print the work and the set's storage images. A full proof that only does such work stores nothing, so the earlier verify could not see it.BreakProofstakes a site and, for stores, a range. A store the full proof makes is printed with its site, range and the kind of range the set records over it.APS5_PROFILE_EPOCH_PROOFSadds a 10 s line:proved resource sets that missed the exit N; by input, moved alone/moved: …. It also sorts each stored exit stamp by what had made it stale when it was stored: current, the proof's own flushes, its own breaks during the lookups, other threads' breaks, the pending serial, or another input. For each age it gives the stamps stored, the misses on them, and the misses where only the proof serial moved.GuestMemorycounts proof breaks per site for the same report.On GTA (10 s, this head's code): 104,160 stamps were stored current, with 104,054 misses on them, 13,335 of them proof-alone; every other age was under 150. Own flushes and own walks aged no stamp, and no write-back was empty or unchanged. Verify checked 2,287,380 reused proofs: 0 failed, 0 where the full proof did work the exit skipped. So the misses are inputs that really moved between builds, not stale stamps. The proof-alone misses are the next step: scoping the non-draw-packet and marked-written breaks to their ranges. That is a follow-up.
Tested
Correctness on Linux llvmpipe locally and on fork CI (Linux and Windows lavapipe). Performance on GTA V (PPSA04263 01.011.001), city scene, RTX 3080.
Gate tests
agc_driver_epoch_proof_gate_<config>(--epoch-proof-gate on|off). In each config the test checks the gate's value; with it on, it also checks that a measured repeat lookup takes the epoch exit, and that a CPU write followed by an epoch bump is not proved stale:committer(default env,APS5_DRAW_PIPELINEunset): on.finisher(APS5_DRAW_PIPELINE=1): on.inline,finisher_inline(APS5_PIPELINED_DRAWS=0): off.locked_prepare(APS5_LOCKED_DRAW_PREPARE=1): off.switched_off,finisher_switched_off(APS5_NO_EPOCH_PROOFS=1): off.agc_driver_dcc_keys_rewrite_after_epoch_proof_committer: the existing DCC-key rewrite-after-epoch-proof test in the default env.Mirror tests
agc_driver_address_draw_space_reuse_epoch_mirrors_{committer,finisher}(on) and_{inline,switched_off}(off). On a proof thread, inside one collect epoch, the first retake of a cached address space must refresh (1 refreshed, 0 reused) and the second must reuse (1 and 1). With the gate off, neither is counted. A CPU write followed by a new epoch is still seen.Mutants, each killed by the tests above:
APS5_NO_EPOCH_PROOFSswitched_offgate testsDepth() != 0inline,finisher_inline,locked_prepareDrawPipelineEnabled()committer,finisher_inline,finisher_switched_offepochMirrors()forced falsecommitter,finisherepochMirrors()forced trueinline,switched_off("1 reused, 1 refreshed")committer,finisher(first retake)Exit tests. Each exit input has a test that fails without it:
agc_driver_resource_cache_released_epoch,_unwatched_epoch,_epoch_reuse;agc_staged_epoch_reuse;agc_imported_epoch_reuseand_verify;agc_driver_resource_cache_epoch_verify_work: a store held from breaking proofs (GuestMemory::HoldProofBreaksForTest) leaves the exit stale over a storage image; verify must report the upload the full proof did. It runs over a watched import; on Windows, where the import is compared rather than watched, it skips the arming step and says why;agc_driver_depth_compare_copy;agc_driver_resource_cache_evicted_epoch: on a proof thread, in one GPU hold and one collect epoch, a held set over a clean storage image takes the exit; the storage cache is then filled until that image is evicted, with the epoch, proof and pending serials checked unmoved, and the nextRevalidatemust refuse;agc_driver_depth_plane_epoch_exit_retired: the same shape for a set that samples a depth surface (DepthSurfaceHolds) and aRetireDepthSurfacesover it.For stale planes:
agc_driver_depth_plane_epoch_exit(--epoch-exit):_verifypins the verify counts: 3 reuses, 0 failed, 0 stored, 0 concurrent, and moved/moved-alone for surfaces and stale planes._countspins the 10 s attribution line.agc_driver_table_index_depth_plane_verify(and thedepthcase ofagc_driver_table_index_validation): the T# table's buffer span covers a depth surface that only the index subscription reaches. After the exit, a depth-only redraw leaves the plane stale over the span, and the next proof must store it.depth_plane_epoch_exittestsdepth_plane_epoch_exittestsdepth_plane_epoch_exitteststable_index_validation(depth),table_index_depth_plane_verifydepth_plane_epoch_exit_verify,_countsThe verify tests fail on any printed store. A CMake note:
PASS_REGULAR_EXPRESSIONsplits on;, so the regexes here use.where the output has;.Config matrix
agc_epoch_proofs_<workload>_<inline|committer|finisher>_<dispatch_inline|dispatch_pipelined>_<off|on|verify>, 36 tests:agc_driver_draw_recapture_on_change_tests, andagc_driver_draw_cache_reuse_testswithAPS5_VERIFY_DRAW_RECIPE=1 APS5_VERIFY_REGISTER_KEYS=1;verifyisAPS5_VERIFY_DRAW_PIPELINE=1, which checks every reused proof against a full proof.Validation layers. VVL 1.4.363.1 with
VK_KHRONOS_VALIDATION_VALIDATE_SYNC=1, on an earlier version of this commit that also had the submit workload in the matrix; the driver source is identical.Fork CI on head
e6aa971f908(eviction and retirement inputs): run 44653665377, 119 tests matching resource_cache, sampled_cache_budget, depth_plane, depth_surface, native_multisample_depth, image_table_reuse, target_memo, stencil_plane, the epoch proof matrix and gates, depth_compare_copy and table_index: Linux 119 passed; Windows 116 passed and 2 skipped (agc_driver_resource_cache_pending_fail_count{,_index}, which skip on the base too); 0 VUIDs. Negative control, the two new tests with the change reverted (1f58e49a88): both fail on Linux ("the next proof took the exit and proved current"), run 44653801059, and the same locally on an RTX 3080. Locally (Windows 11, RTX 3080) the same set passes exceptagc_driver_stencil_plane_memory, which fails onmaintoo on hardware GPUs (#22427, fixed by #22508). An exit reuse measured 19.1-19.8 ns with and without the change (local microbenchmark, relative only).Fork CI on head
c254a94c2ea(mainb707e3cba99merged; run on its lab twin7614d39659, same tree): run 43805695850, Linux and Windows green, report clean. Before the merge,24f6af22ec5: run 43788434708. Earlier head56434cc745: run 43762674711.Fork CI on the first head, rebased onto main
0f4538fa02(run 43596342406): Linux 59/59 and Windows 59/59 with the Khronos validation layer (the base passes its 11 on both), 0 VUIDs, no new failure on either OS. ASan and TSan pass too.Windows and the submit workload. The first head also ran plain
agc_driver_tests(Submit.cpp) under the committer and finisher configs. On Windows lavapipe those runs time out at 120 s in about 11 of 12 configs, whatever the proof mode. Main74900e8b0fwith only the matrix cmake added stalls the same way (fork CI 43581024627). On Linux all 12 pass in 15.5 s.agc_driverisn't in the routine Windows selection, so main CI never shows it.testValidation's last rejected DCBs andtestClearState.Performance. GTA V (PPSA04263 01.011.001), city scene, plain (default) env, NVIDIA GeForce RTX 3080 (PCIe Gen4 x16), driver NVIDIA 621.14, Windows 10.0.26320 (Windows 11), Ryzen 7 5800X, 3840x2160, as the summary lines record.
Main against this PR (the summary lines CONTRIBUTING asks for). A = main
74900e8b0f+ #14561 (b600c9e2e073), B = this commit + #14561 (b39164864006). Each boot'sAPS5_TRACE_SECONDSwindow line, default env plusAPS5_PROFILE_EPOCH_PROOFS=1:b600c9e2e073seconds 155:30aps5-trace-b600c9e2e073-19988.json.gzb600c9e2e073seconds 108:30aps5-trace-b600c9e2e073-5508.json.gzb600c9e2e073seconds 108:30aps5-trace-b600c9e2e073-26192.json.gzb39164864006seconds 108:30aps5-trace-b39164864006-31480.json.gzb39164864006seconds 108:30aps5-trace-b39164864006-3672.json.gzb39164864006seconds 108:30aps5-trace-b39164864006-28880.json.gztrace_dropped: true: the queue worker and draw committer trace buffers filled 5–16 s into the window.totals_fullis false on every thread, so the summary numbers are complete; only the trace files lose slices after that point.Summary lines (aps5-summary.jsonl, trace-window line of each boot)
Same-binary A/B (the controlled measurement). In-boot A/B on this commit as applied to main
74900e8b0f, + #14561 (#14561 is needed to boot the scene):APS5_AB=30:APS5_NO_EPOCH_PROOFS APS5_AB_START=130s APS5_AB_SETTLE=5,APS5_PROFILE_EPOCH_PROOFS=1. Arm A = this PR (proofs on), arm B =APS5_NO_EPOCH_PROOFSset. With the switch set, the gate is false and every reader takes main's path, so B is main's behaviour in the same binary, shader cache and boot.[ab] in-run A/B: phases of 30.0 s from 130.0 s after the first present, settle 5.0 s; A: APS5_NO_EPOCH_PROOFS unset; B: APS5_NO_EPOCH_PROOFS setSo proofs on are 6.4 ms (5.0%) faster per frame. Every B phase is slower than the mean of the two A phases around it, by +0.7 to +11.3 ms:
[epoch-proofs]line shows the proofs at work with the switch unset (ep1 boots of this build: resource proofs reused 117k–145k and proved 86k–103k per 10 s; storage refreshes reused 392k–478k; address spaces reused 1.1k–1.6k) and all zeros with the switch set.APS5_DRAW_PIPELINEbundle, which already turned the exit on before this change.The exit after the input fixes (head
56434cc745). The tables above measureb39164864006, before the exit-input fixes. GTA city, same machine. #20845 and #14561 are needed to boot the scene. In-boot A/B:APS5_AB=30:APS5_NO_EPOCH_PROOFS, plain env plus pipeline.0144d01247, before the exit-input fixes: keyed on epoch, proof, pending and releases4e9cf0bf1e)9ac60c641f, same driver code plus the break trace): 2,283,708 checked, 0 failed. 13 reuses saw the proof serial move. All 13 were other threads' breaks, none the full proof's own: 12 during the full proof, 1 before it. That is why verify now counts the full proof's own stores separately from concurrent breaks.Main against this head. Main
ce7bb40ff47against24f6af22ec5(same tree as lab4c7d715a36; the head before themainmerge, whose only change to the exit is the retired-import input above), both with #20845 and #14561 merged to boot the scene, so the unrelated fixes are the same. GTA V PPSA04263 01.011.001, save city-franklin-house, standing; RTX 3080 (driver 621.24, PCIe Gen4 x16), Ryzen 7 5800X; Defender real-time protection on. Separate boots in the order M C C M C M M C after one warm-up, warm caches, plain env with onlyAPS5_TRACE_SECONDS=108:30(a 30 s window after the character stands still) and no other TRACE or PROFILE switch. Every boot passed the quiet check.APS5_PROFILE_EPOCH_PROOFS=1(not timed) printedresource proofs reused 158273, proved 112725per 10 s.Overlap (
tools/pr_overlap.py --branch, 2026-11-14, 1534 open PRs): no open PR implements or redefinesEpochProofs(),APS5_NO_EPOCH_PROOFS,epochMirrors()or the counters. The tool failed closed because 205 PRs conflict with main and could not be compared automatically. Their diffs were grepped for these names by hand: none changes them, but these PRs read the gate and so turn on by default with this change:TargetMemoEnabled()), #16115 (pass attachment memo), #10894 (EpochProofs() && !perUseTextures);unmovedslot reuse;That is intended (they rely on the same epoch guarantee), but say so in those threads.
Not run: performance on hardware other than the RTX 3080.
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
APS5_NO_EPOCH_PROOFSruntime option to disable epoch-based proof reuse.Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-11-14T16:55:16Z.
Review: COMMENTED
Read-only trace of the gate change (no run on my side; GTA V perf and the config matrix are yours). The core move —
EpochProofs()fromDrawPipelineEnabled()(finisher flag) to!NoEpochProofs && DrawPipeline::Depth() != 0(committer depth) — checks out, andDepth()is exactly the right predicate for it.I confirmed
DrawPipeline::Depth()(Execution/src/Driver/Draw/DrawPipeline.cpp:265-274): it memoizes to0forAPS5_PIPELINED_DRAWS=0,APS5_LOCKED_DRAW_PREPARE,APS5_DRAW_DRAIN,APS5_DRAIN_ALL,APS5_NO_WORDWISE_CAPTURE, and to 32 by default. SoDepth() != 0holds exactly when draws are pipelined onto the committer — the proof thread the epoch scheme needs — and is false in every config where a draw commits inline. The oldDrawPipelineEnabled()gate was a strict subset (finisher implies committer); the case this PR adds is the default one (committer on, finisher off), which is the whole point, and the committer gate tests (agc_driver_epoch_proof_gate_committer: repeat lookup takes the epoch exit, CPU-write-then-epoch-bump not proved stale) plus the_committermirror test are the right checks for its stale-reuse safety. UnifyingepochMirrors()to returnEpochProofs()(it was separatelyDrawPipelineEnabled()) is consistent — the mirror reuse and the resource/storage proofs now ride one gate.Two small notes, neither blocking:
Depth(), it now also disables epoch proofs underAPS5_DRAW_DRAIN,APS5_DRAIN_ALLandAPS5_NO_WORDWISE_CAPTURE(all forceDepth()==0), not only theinline/locked_prepare/switched_offrows the gate-test matrix enumerates. That's the correct behavior — those configs don't pipeline draws — but it's an implicit consequence of routing throughDepth(); a line in theAPS5_NO_EPOCH_PROOFSENVIRONMENT.md row (or one more gate-test config) would make "off whenever draws aren't pipelined" explicit rather than leaving it to the reader to followDepth().Depth()is astatic constmemoized once, while!RuntimeSwitches::Set(NoEpochProofs)is evaluated live — soAPS5_NO_EPOCH_PROOFScan flip the gate mid-run (matching the APS5_AB bisection use you mention) while the depth part is fixed at first call. Worth being aware of if anything ever expects the whole gate to be constant per process; it isn't, by design.The gate logic itself is sound. Nice reclaim of a default-path cost.
AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T22:41:41Z.
Review: COMMENTED
Reviewed — comments
The focused review found no verified blocking defect, but the full change and its checks were not completely verified.
What I ran
Reviewed head
b559ca3d739f188486a68a06be0049a2b47389bdusing the prepared diff and the pinned repository reader. No tests or build commands were run.Results
Findings
Blocking
None verified in the code reviewed.
Non-blocking
None.
Not verified
The review folder’s
files.jsonexclusions were not separately inspected. Changed filesGraphics/src/GuestBufferMemory.cpp,Graphics/src/ShaderResources.cpp,Graphics/src/Texture.cpp, andtests/Recorder.cppwere not read in full; only targeted portions ofGuestBufferMemory.cppandShaderResources.cppwere inspected. Other included changed files were not all read in full. No tests, build, or runtime checks were performed; reported CI and performance results were not independently verified.To get this to a good state
Nothing is required. Optional: complete the review of the unread changed code and run the relevant checks before making a formal approval decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T10:29:39Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the implementation and reported checks support enabling epoch proofs on the committer path.
What I ran
Reviewed head
e6aa971f908ad82f2cd49abba34711f7bf1e6588. Read the prepared description, commit list, diff, and manifest; inspected the epoch-exit and invalidation code, including targeted ranges of the two excluded implementation files. No tests were run in this review.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The full text of
GuestBufferMemory.cpp,Texture.cpp,tests/Recorder.cpp, andtests/execution/SampledCacheBudget.cppwas excluded from the review folder. I read targeted source ranges fromGuestBufferMemory.cppandTexture.cpp; I did not read the excluded test files at the pinned head. Other changed files and all author-reported test and performance results were not independently verified. No local tests or builds were run.Files read:
GuestMemory.hpp,DrawPipeline.cpp,GuestMemory.cpp,DepthSurface.hpp,Draw.hpp,EpochProofCounters.hpp,RuntimeSwitches.hpp,ShaderResources.hpp,Texture.hpp,DepthSurface.cpp,Draw.cpp,GuestBufferMemory.cpp(targeted range),Recorder.cpp,RuntimeSwitches.cpp,ShaderResources.cpp, the changed CMake and execution test files in the prepared diff,ARCHITECTURE.md, andENVIRONMENT.md. Files excluded from the review folder:GuestBufferMemory.cpp,Texture.cpp,tests/Recorder.cpp, andtests/execution/SampledCacheBudget.cpp.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T03:25:19Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the inspected code and author-reported validation support merging.
What I ran
Reviewed head
2f7067bad0f0770d70480e7ac4868d23bea96306against the supplied diff and pinned repository sources. I did not run tests or build commands.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No build or tests were run in this review. The full contents of
Graphics/src/GuestBufferMemory.cpp,Graphics/src/ShaderResources.cpp,Graphics/src/Texture.cpp, andtests/Recorder.cppwere not read; targeted ranges in the first two and relevant hunks in the supplied diff were inspected.files.jsonis unavailable as a review-folder document;review/README.mdlists the changed files, of which 28 were marked included and four were too large for the review folder. I did not read every changed line across all files, so approval is not justified.To get this to a good state
Nothing is required. Optional: complete review of the unread changed lines before relying on this review as a full-file approval.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T13:01:52Z.
Review: DISMISSED
Reviewed — changes requested
Changes are required before merge: make the verify path capture proof breaks so it can detect when a reused proof’s full check stores to guest memory.
What I ran
Reviewed head
7bb4781a07a7f3ec8a1c067f2f67e2b49b26adf4usingrepo_read.pyagainst the prepared diff and pinned repository files. I ran no tests or builds. The description’s test and performance results are author-reported.Results
Findings
Blocking
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp:4800: The verify branch constructs aGuestMemory::ProofBreakTrace, then callsrevalidateFullwithout passing it. The trace is never activated, soBreakProofscannot record into it; consequentlytrace.Count()remains zero even if the full proof stores to guest memory. This also causesnoteEpochProofto classify such stores as concurrent or absent instead of stored, defeating the safety check that is meant to validate enabling reuse by default. Pass the trace into the active proof-break tracing mechanism for this full-proof call, and ensure the verify test fails when a store occurs.Non-blocking
None.
Not verified
No tests or builds were run. The prepared diff, description, commits, and manifest were read. Repository source was read for the proof exit, tracing, storage refresh, stale-plane tracking, committer counters, profile counters, and address-space reuse. Full text for
GuestBufferMemory.cpp,ShaderResources.cpp,Texture.cpp,tests/Recorder.cpp, and other files marked excluded by the manifest was not read; those files were inspected only at relevant targeted ranges where noted. Performance and CI results in the description were not independently verified.To get this to a good state
Wire the full-proof verify call to proof-break tracing and add or adjust a test that demonstrates a guest-memory store is detected; then rerun the relevant epoch-proof verify tests.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T05:21:39Z.
Review: COMMENTED
Reviewed — comments
The epoch-proof paths examined appear consistent with the described gate and invalidation logic, but this review is incomplete because several changed files were not read.
What I ran
Reviewed head
98e008f3e45adcc9428b8c4d476a9845571a47fdusing the prepared diff andrepo_read.py; no build or tests were run. CI and test results in the PR description are author-reported.Results
Negative control
Not run by me. The PR description reports negative-control runs; those results were not independently verified.
Findings
Blocking
None identified in the code inspected; this is not a conclusion about files not read.
Non-blocking
None.
Not verified
Did not read every changed file. In particular, the full changed content of
GuestBufferMemory.cpp,ShaderResources.cpp,Texture.cpp, andtests/Recorder.cppwas not reviewed; targeted ranges in the first three were inspected. Also did not read all included test, CMake, and documentation files. The prepared bundle marksGuestBufferMemory.cpp,ShaderResources.cpp,Texture.cpp, andtests/Recorder.cppas excluded by size. No build, tests, hardware behavior, or CI runs were independently confirmed.To get this to a good state
Nothing is required. Optional: complete review of the unread changed files before treating this as a merge approval.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T09:47:10Z.
Review: COMMENTED
Reviewed — no blocking findings
The reviewed code has no verified blocking defect; I could not complete the full review because several changed files were not read in full.
What I ran
Reviewed head
80094370fa77ea9087a955df536988f499078561against the prepared diff. Read the description, commits, manifest, README, and diff; usedrepo_read.pyto inspect targeted code at the pinned head. No tests or builds were run.Results
Findings
Blocking
None verified in the code inspected.
Non-blocking
None.
Not verified
The full text and all added lines of
Graphics/src/GuestBufferMemory.cpp,Graphics/src/ShaderResources.cpp,Graphics/src/Texture.cpp, andtests/Recorder.cppwere not read in full; targeted ranges of the first three were inspected. Other changed files and tests were reviewed via the prepared diff, but their full head text was not read. No test or build results were independently verified; validation and performance results in the description are author-reported.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T07:40:46Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change based on the source paths and hunks inspected; the prepared bundle includes changed files whose full text was excluded, so the review is incomplete for approval.
What I ran
ef7c229b6a7f4cba9c01ded869e17a6075255ab0using the prepared diff and pinned repository reader.description.md,commits.md,manifest.json, anddiff.patch; checked targeted hunks and source ranges inShaderResources.cpp,Texture.cpp, andDepthSurface.cpp.Results
Findings
Blocking
None identified in the inspected code.
Non-blocking
None.
Not verified
Graphics/src/GuestBufferMemory.cpp,Graphics/src/ShaderResources.cpp,Graphics/src/Texture.cpp,tests/Recorder.cpp,tests/cmake/agc_driver_recorder_tests.cmake, andtests/execution/NativeMultisampleDepth.cppwas excluded as too large. Targeted hunks forShaderResources.cppandTexture.cppwere reviewed through the pinned reader; the rest of those files and the other excluded files were not fully read.files.jsonwas not available through the reader; exclusions were taken frommanifest.jsonentries markedincluded: false.To get this to a good state
Nothing is required. Optional: complete review of the remaining changed files and run the relevant tests on this head before treating the review as complete.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T07:56:58Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: make the resource epoch stamp cover host-import and allocation changes for every reusable set that depends on guest-backed resources.
What I ran
Reviewed head
c402bbba976a6447db6b440cdfeadd96009bfb63usingrepo_read.pyagainst the prepared diff and targeted source ranges. No commands or tests were run.Results
Findings
Blocking
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp:4796— The stamp includes host-import and guest-allocation generations only whendirectRegionsis non-empty. Reusable sets can have no direct regions while still depending on guest-backed sampled or storage images:noteReusable()permits image-only sets, andfullWalk()resolves those images through guest-memory lookups. With epoch proofs now enabled by default, retiring or replacing an import/allocation for such a set leaves those stamp fields at zero. If the other stamp inputs stay unchanged,Revalidate()can take the epoch exit and skip the full lookup that would detect the changed image identity. Include the relevant generations for image-backed resources too, or otherwise ensure those sets cannot reuse the exit until their identities are validated.Non-blocking
None.
Not verified
GuestBufferMemory.cpp,ShaderResources.cpp,Texture.cpp,Recorder.cpp,NativeMultisampleDepth.cpp, andRecorder.cppwas excluded by the review-folder size rule. Relevant source ranges were read throughrepo_read.pyforGuestBufferMemory.cpp,ShaderResources.cpp,Texture.cpp,DepthSurface.cpp, and test code inDepthPlaneSampling.cpp.NativeMultisampleDepth.cpp; the review folder also excludedGuestBufferMemory.cpp,ShaderResources.cpp,Texture.cpp, andRecorder.cppfull texts.To get this to a good state
Update the stamp or exit eligibility so image-backed reusable sets cannot bypass import/allocation identity changes, then add a regression test for a sampled or storage image resource whose host import or guest allocation is retired and replaced within one collect epoch.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T13:28:41Z.
Review: COMMENTED
Reviewed — comments
The review is incomplete because several changed files and most added test lines were not read, and no checks were run.
What I ran
Read the prepared description, commit list, manifest, diff, and selected source ranges at head
fecf81586d67a65bf12ec897e1b022eb10b18413. No commands or tests were run.Results
Findings
Blocking
None verified in the inspected ranges.
Non-blocking
None.
Not verified
The review is incomplete; this is not an approval. Full changed-file text read:
GuestMemory.hpp,DrawPipeline.cpp,EpochProofCounters.hpp,RuntimeSwitches.hpp,DepthSurface.hpp, selected portions ofGuestMemory.cpp,DepthSurface.cpp,Draw.cpp,ShaderResources.hpp,ShaderResources.cpp,GuestBufferMemory.cpp,Texture.cpp, andRuntimeSwitches.cpp. The diff was inspected, but added lines were not read in full for every changed file. Changed files not read at the head includeRecorder.cpp,tests/Recorder.cpp,tests/execution/NativeMultisampleDepth.cpp, and the changed test and documentation files; other files were read only selectively.files.jsonwas unavailable through the reader, so exclusions are based onreview/README.mdand the changed-file listing. Reported test and performance results in the description were not independently run or verified.To get this to a good state
Nothing is required for the inspected code. Complete the review of the remaining changed lines and run the relevant checks before making a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-26T13:31:36Z.
Review: COMMENTED
Actionable comments posted: 16
4ee9595d-5e68-4d9b-964a-72f87543d612Reviewing files that changed from the base of the PR and between
a3f8ec4e0candfecf81586d.core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cppcore/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cppcore/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hppcore/libs/prx/libSceAgcDriver/Graphics/include/Draw.hppcore/libs/prx/libSceAgcDriver/Graphics/include/EpochProofCounters.hppcore/libs/prx/libSceAgcDriver/Graphics/include/RuntimeSwitches.hppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/include/Texture.hppcore/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppcore/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_address_draw_space_reuse_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_dcc_keys_first_write_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_depth_plane_sampling_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_epoch_proof_matrix_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_sampled_cache_budget_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_table_index_validation_tests.cmakecore/libs/prx/libSceAgcDriver/tests/execution/AddressDrawSpaceReuse.cppcore/libs/prx/libSceAgcDriver/tests/execution/DccKeysFirstWrite.cppcore/libs/prx/libSceAgcDriver/tests/execution/DepthCompareCopy.cppcore/libs/prx/libSceAgcDriver/tests/execution/DepthPlaneSampling.cppcore/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cppcore/libs/prx/libSceAgcDriver/tests/execution/SampledCacheBudget.cppcore/libs/prx/libSceAgcDriver/tests/execution/TableIndexValidation.cppdocs/dev/ARCHITECTURE.mddocs/dev/ENVIRONMENT.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-26T15:42:07Z.
Review: COMMENTED
Reviewed — no blocking findings
No verified defect was found in the inspected epoch-proof changes; this review is incomplete, so it does not justify a formal approval.
What I ran
Inspected prepared review artifacts and targeted source excerpts at head
677152ef320528d903aeb2293eadd8e0e9aba03busingrepo_read.py. No executable checks or tests were run.Results
Negative control
Not run; no tests were executable through the reader.
Findings
Blocking
None.
Non-blocking
None.
Sources
Not verified
Only targeted excerpts of those five source files were read, along with
description.md,commits.md,manifest.json, anddiff.patch; the changed files were not reviewed in full. The manifest excludes full text for several large files, includingShaderResources.cpp,GuestBufferMemory.cpp, andTexture.cpp. Other changed files and test coverage were not fully inspected. No build, tests, or negative control were run.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-26T15:43:53Z.
Review: COMMENTED
Actionable comments posted: 3
97067239-9baa-434e-9e9c-6fc7502b2fa6Reviewing files that changed from the base of the PR and between
fecf81586dand677152ef32.core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_sampled_cache_budget_tests.cmakecore/libs/prx/libSceAgcDriver/tests/execution/SampledCacheBudget.cppdocs/dev/ENVIRONMENT.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 coderabbitai[bot] on 2026-11-26T23:41:40Z.
Review: COMMENTED
Actionable comments posted: 1
b15a3258-cc2e-4d85-9a19-18c0438eb64eReviewing files that changed from the base of the PR and between
677152ef32anda55520ac68.core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_depth_plane_sampling_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_sampled_cache_budget_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_table_index_validation_tests.cmakecore/libs/prx/libSceAgcDriver/tests/execution/DepthCompareCopy.cppcore/libs/prx/libSceAgcDriver/tests/execution/DepthPlaneSampling.cppcore/libs/prx/libSceAgcDriver/tests/execution/SampledCacheBudget.cppcore/libs/prx/libSceAgcDriver/tests/execution/TableIndexValidation.cppdocs/dev/ARCHITECTURE.mddocs/dev/ENVIRONMENT.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T00:00:41Z.
Review: COMMENTED
Reviewed — comments
The prepared change description and targeted implementation paths were inspected at head
a55520ac6887dcf3276492bba635711aa9592c95; review is incomplete because several changed files were not read and no checks were run.What I ran
No tests or build commands were run. I read
description.md,commits.md,manifest.json,diff.patch, and listed the review folder. Repository files read at the pinned head:Graphics/src/ShaderResources.cpp(4270–4560, 4560–4860, 4900–4970),Graphics/src/DepthSurface.cpp(3620–3670),Graphics/src/GuestBufferMemory.cpp(6400–6450), andGraphics/src/Texture.cpp(1–10).Results
Negative control
Could not run a negative control in this review.
Findings
Blocking
None identified in the source inspected; this is not a complete review.
Non-blocking
None.
Sources
No behavior claims are linked; source inspection was limited to the paths and ranges listed above.
Not verified
The remaining changed source and test files were not read, including
Graphics/src/GuestBufferMemory.cppoutside lines 6400–6450,Graphics/src/Texture.cppoutside lines 1–10,Graphics/src/ShaderResources.cppoutside the ranges listed above, andtests/Recorder.cpp. The full text was not included forGuestBufferMemory.cpp,ShaderResources.cpp,Texture.cpp,tests/Recorder.cpp,tests/execution/NativeMultisampleDepth.cpp, andtests/execution/SampledCacheBudget.cpp; those paths require targeted reader access. Other included changed files and the uninspected portions ofdiff.patchwere also not reviewed. No build, test, or runtime behavior was verified.To get this to a good state
Complete the review of the remaining changed files and run the relevant checks before making a formal review decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T01:00:03Z.
Review: COMMENTED
Reviewed — comments
The epoch proof gate and invalidation changes are substantial; I inspected the core exit and stale-plane paths, but did not complete review of all changed files or run checks, so a formal decision is not justified.
What I ran
Inspected the prepared diff and targeted source ranges at head
512153a90bdeba4e804dfd4959dce54b8e02468eusingrepo_read.py's reader interface. No commands or tests were run.Results
Findings
Blocking
None identified in the code inspected.
Non-blocking
No verified non-blocking findings.
Not verified
The manifest lists 36 changed files; I read the prepared description, commits, manifest and diff, then targeted
ShaderResources.cpp,DepthSurface.cpp, and portions of the diff and headers. I did not read every changed file. The manifest marksGuestBufferMemory.cppandTexture.cppas excluded from the review folder due to size; I did not inspect them through the reader. I did not run tests or validate author/CI results.To get this to a good state
Nothing is required. Optional: complete review of the remaining changed files and run the relevant checks before making a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T04:32:31Z.
Review: COMMENTED
Actionable comments posted: 1
1a68302d-8fbd-4887-81b9-a21624200e02Reviewing files that changed from the base of the PR and between
512153a90band68583b402f.core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/include/Texture.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/tests/execution/SampledCacheBudget.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-11-27T04:37:32Z.
Review: COMMENTED
Reviewed — comments
This review covers the epoch proof gate and exit logic at head
68583b402f8cbefc173ca02a69cbb5da72e0245f; the review is incomplete because several changed files were not inspected and no tests were run.What I ran
Read the prepared description, commit list, manifest, and diff. Inspected the epoch exit, mirror reuse, storage refresh, runtime switch, and depth-plane code through the pinned reader. No commands or tests were run.
Results
Findings
Blocking
None identified in the inspected code.
Non-blocking
None.
Not verified
The changed files
Execution/include/GuestMemory.hpp,Execution/src/Driver/Draw/DrawPipeline.cpp,Execution/src/GuestMemory.cpp,Graphics/include/DepthSurface.hpp,Graphics/include/Draw.hpp,Graphics/include/EpochProofCounters.hpp,Graphics/include/RuntimeSwitches.hpp,Graphics/include/ShaderResources.hpp,Graphics/include/Texture.hpp,Graphics/src/DepthSurface.cpp,Graphics/src/Draw.cpp,Graphics/src/Recorder.cpp,tests/cmake/*,tests/execution/*,docs/dev/ARCHITECTURE.md, anddocs/dev/ENVIRONMENT.mdwere not fully read. In particular, the test changes, complete stale-plane and allocation-generation behavior, and reported CI/performance results were not independently verified.To get this to a good state
Nothing is required. Optional: complete inspection of the unreviewed changed files and run the relevant test matrix before making a formal approval decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T05:57:57Z.
Review: COMMENTED
Reviewed — comments
This review covers the principal epoch proof gate and exit paths at head
70a20cf23eb3a9cedb4db2b6480d78053d03718c; several changed files were not fully read, so a formal decision is not justified.What I ran
repo_read.py.Results
Findings
Blocking
None identified in the code inspected.
Non-blocking
None.
Not verified
The manifest lists changed files not read in full:
GuestBufferMemory.cpp,ShaderResources.cpp,Texture.cpp,tests/Recorder.cpp, andtests/execution/NativeMultisampleDepth.cpp. Other included changed files and test additions were also not reviewed in full. The author’s test and performance results in the description were not independently run or verified.To get this to a good state
Nothing is required. Optional: complete review of the unread changed files and run the relevant checks before making a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T08:21:07Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this review; the implementation and targeted code inspected show no verified blocking defect.
What I ran
Reviewed head
406e5f858008bd639ac484eaa6e0bc9440923e0b. No tests or build commands were run; author-reported test results are not treated as runs performed here. Readdescription.md,commits.md,manifest.json, the changed hunks indiff.patch, and relevant ranges ofShaderResources.cpp,GuestBufferMemory.cpp, andTexture.cpp.files.jsonwas not available;list_filesshowed the changed-file inventory and exclusions. Four full files were excluded from the bundle:GuestBufferMemory.cpp,ShaderResources.cpp,Texture.cpp, andtests/Recorder.cpp. The requiredrepo_read.pycommand was unavailable in this environment, so excluded file contents could not be read beyond targeted ranges returned by the review reader.Results
Findings
Blocking
None verified.
Non-blocking
None.
Not verified
Tests, build, runtime behavior, and performance measurements were not run. The full contents of four excluded files were not reviewed; targeted ranges were available for three of them, but not
tests/Recorder.cpp. Claims about code outside the inspected hunks are not verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T15:53:34Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected portions show no verified blocking defect, but the review is incomplete because several changed files and large parts of the patch were not inspected.
What I ran
Reviewed prepared PR 20041 at head
507e855c03a33aa8e2fc36d63612b14a43948670. Read the description, commits, manifest, diff excerpts and the file listing; no tests or build commands were run.Results
Findings
Blocking
None verified in the inspected portions.
Non-blocking
None.
Not verified
The patch and changed files were not read in full. In particular, full text was excluded for
GuestBufferMemory.cpp,ShaderResources.cpp,Texture.cpp,tests/Recorder.cpp, andtests/execution/NativeMultisampleDepth.cpp; substantial changed test and source content was also not inspected. No tests, build, or hardware behavior were independently verified. The description's test and performance results are author-reported.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T17:38:42Z.
Review: COMMENTED
Reviewed — comments
Nothing blocks this review; the implementation has broad invalidation coverage, but the verification report has a small accounting issue.
What I ran
Reviewed head
ab9ade39fe7d085106fb2c710f30ece28f4d40ecusing the prepared diff and pinned reader. I did not run tests; the validation and performance results in the PR description are author-reported.Results
Findings
Blocking
None.
Non-blocking
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp:591— The verification sampling counter advances only for reused spaces, but the report computeschecksasreuses / 64 + 1after incrementingreuses. At the 64th reused space this reports check 2, skipping the expected first report; subsequent power-of-two reporting is similarly offset. Consider deriving the report index from the number of completed comparisons or incrementing a dedicated check counter after sampling.Sources
Reviewed the prepared diff and the pinned head source for resource epoch exit checks, stale-plane tracking, storage refresh, address-space mirror reuse, proof counters, and test references.
Not verified
I did not read the full text of
ShaderResources.cpp,GuestBufferMemory.cpp,Texture.cpp, orRecorder.cpp; the reader returned targeted ranges and searches only.files.jsonwas not available as a review-folder document; the reader’s listing identifies three changed files as excluded for size:GuestBufferMemory.cpp,ShaderResources.cpp, andTexture.cpp. I also did not run tests or independently confirm the author-reported CI, validation-layer, or hardware performance results. Other changed files were reviewed through the prepared diff, targeted reads, or searches, not exhaustively line by line.To get this to a good state
Nothing is required. Optional: adjust the mirror verification report index so its sampling count matches completed comparisons.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-28T16:10:58Z.
Review: DISMISSED
Reviewed — changes requested
Changes are required before merge: restore the missing allocation-generation field in the exit stamp so import retirement and depth-surface changes invalidate the cached proof correctly.
What I ran
Reviewed head
f1e706ad8b67cedefb87bc6dd4a60b557ed7abf0againstmainusing the prepared diff andrepo_read.py. No commands or tests were run.Results
Findings
Blocking
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp:932:ExitStampdeclaresallocations,retired, andsurfacesafterimportSet, butcurrentExitStamp()initializes only two values afterimportSet. Consequentlyallocationsis always zero, the retired-import serial is stored inretired, and the depth-surface serial is stored insurfaces. A retired import or depth-surface change can therefore be mistaken for a still-valid stamp when the shifted serial values happen to match their previous values; additionally, the allocation generation is never compared as part of stamp equality. IncludeGuestAllocationsGeneration_nid_postfix()in the initializer at the correct position so each validity input maps to its corresponding field.Non-blocking
None.
Not verified
No tests or build were run. The PR description reports Linux and Windows test results and hardware performance, which were not independently verified. Five changed files were excluded from the prepared folder due to size:
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp,core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp,core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp,core/libs/prx/libSceAgcDriver/tests/execution/Recorder.cpp, andcore/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp; targeted relevant ranges were read through the pinned reader. All other changed files listed in the manifest were included in the prepared folder, but were not all read in full.To get this to a good state
Add the missing allocation generation to
currentExitStamp()and rerun the epoch proof gate, import retirement, depth-surface invalidation, and remapped-allocation tests.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-29T23:44:51Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
26a180706a7831600441b8b88839c12086b8afeb. I read the prepared description, commit list, manifest, and diff, then inspected targeted source and test ranges throughrepo_read.py. I did not run commands or tests.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
I did not read every changed file in full. The review manifest marks these changed files as excluded from the review folder because they were too large:
Graphics/src/GuestBufferMemory.cpp,Graphics/src/ShaderResources.cpp,Graphics/src/Texture.cpp,tests/Recorder.cpp, andtests/execution/NativeMultisampleDepth.cpp. I inspected targeted ranges in the first three source files, but did not inspect the excluded test files. Other included changed files were not read in full, and the test suite was not run. CI, hardware behavior, and author reported validation were not independently confirmed.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-01T02:18:58Z.
Review: COMMENTED
Reviewed — comments
The inspected changes did not reveal a concrete defect, but this review is incomplete and does not support a formal decision.
What I ran
Read the PR description, commit summary, manifest, and diff, and inspected selected changed hunks. No tests or builds were run.
Results
Findings
Blocking
None identified in the inspected changes.
Non-blocking
No separate code comments verified.
Not verified
The full text of these changed files was not available in the prepared files folder, and their relevant source was not fully inspected:
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp,core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp,core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp,core/libs/prx/libSceAgcDriver/tests/Recorder.cpp, andcore/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp. Selected hunks inShaderResources.cppandTexture.cppwere reviewed from the diff. No files were excluded by the stated file exclusion rules. Tests, builds, and author-reported performance and CI results were not independently verified.To get this to a good state
Nothing is required of the author based on the inspected changes. Completing the review of the unverified files is needed before a formal approval decision.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:29:08Z.
Review: COMMENTED
The trial merge onto
c1601e56d5was clean. I checked the expanded proof path for the default committer and the new resource-reuse cases covering remapped allocations, evicted textures, and retired depth owners. The documentation acknowledges that an intra-epoch guest write may be observed at the next epoch. Please keep the verification-mode comparisons for storage proofs and address-space mirrors with this default change. A speed claim still needs pairedtrace_digest.pyresults for the same scene and machine. Local Vulkan validation is pending.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-03T22:47:11Z.
Review: COMMENTED
Reviewed — no blocking findings
No blocking defect was verified in the targeted code, but this review is incomplete because several changed source and test files were not read in full.
What I ran
Reviewed head
3f1bb663facbfb50177e5499bb2db679e0eac96fusing the pinnedrepo_read.pyreader. No base merge check, build, or tests were run. The test and performance results in the PR description were not independently verified.Results
Negative control
Not run. The PR description reports mutant and negative-control results; I did not run them.
Findings
Blocking
None verified in the inspected ranges.
Non-blocking
None.
Sources
Not verified
Read
description.md,commits.md,manifest.json, andfiles.json. Inspected targeted reader ranges inShaderResources.cpp,DrawPipeline.cpp,GuestBufferMemory.cpp, andTexture.cpp; the prepared diff output was truncated, so I did not inspect every changed hunk. I did not read all 34 changed files end-to-end. The manifest did not include full text forGuestBufferMemory.cpp,ShaderResources.cpp,Texture.cpp,tests/Recorder.cpp, ortests/execution/NativeMultisampleDepth.cpp; reader ranges were inspected only for the first three.files.jsonreports no files excluded by its listed rules.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.