feat(agc): capture native depth and restore repeated replay windows #19557
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/19557"
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 IvanFogel on 2026-11-13T14:52:08Z.
What
December 4 rebase. Rebased the 26 commits from
1b2570f65d5fonto mainc1e5709defeb. The driver header retains the upstream submission pacing entry point and the native depth restore entry point. The replay test executable accepts upstream’s multisample fault mode and both native-depth repeat counts.The project rebase verifier flags six line differences on the two lines registering and describing those modes. I checked both conflict resolutions against an independently constructed tree and compared the added and removed lines across all 25 feature files. All 26 commit messages and authors are preserved, including the three empty commits.
The overlap check against main
fa20db33be9efound six line conflicts with open PRs and 98 peers it could not compare automatically. Inspecting their shared paths found no competing native-depth capture or restore implementation. #28844 adds a byte counter in the replay summary and will need to keep both summary changes if composed. The PR remains a draft.December 3 rebase. Rebased all 26 commits from
ad8479cc9503onto mainb97867d3ce6b. InDepthSurface.cpp, the result keeps main’s relocated depth and stencil slice helpers alongside the native-depth graph check. The project rebase verifier passed for the new head1b2570f65d5f, including all three intentionally empty commits.The overlap scan covered 2,394 open PRs. Nine peers have confirmed line conflicts and 87 needed manual comparison. I found no duplicate of the native capture/restore implementation in the reported patches. Two new conflicts need attention if those changes land. #28566 also changes depth clear state during reset. #28667 changes retirement of reused multisample HTILE beside this PR’s partial-residency code. This PR remains a draft.
Capture GPU-only single-sample native depth/stencil planes with their companion ownership in the version-2 depth companion file. Reconstruct the captured graph and relative binding order for each repeated replay window, preflight predictable failures before discarding live state, and fail unsupported paths explicitly. This builds on #17338, already merged into main; it does not add new rendering or capture policy in this refresh.
November 27 actual rebase. Exact candidate
ad8479cc9503af14d78c75070b38eb97da0988a8rebases published16d931b5c01f76df84fda400a157de28f5b05d67onto main2b6c1b0445281444f24bd2ba3205d1f7cf9f0a97. All 26 original nonmerge commit subjects, authors and messages are retained, including three intentionally empty commits. The old public head is backed up locally; updating it requires an exact-old-head force-with-lease. Production feature added/removed lines are unchanged. The five conflict resolutions retain both main's replay dispatch/usage and native-repeat cases, both state-test mode groups, main'sNanSpeculationCounters.hppand the feature'sNativeDepthCapture.hpp, and each replay registration once. Shared replay registrations stay at their current-main location. Main's expanded BUILD documentation is retained: the old feature delta in that file was exactly one deleted ASCII space.The project rebase verifier records 26→26 commits but 27 line-delta diagnostics, in four replay-registration/usage/documentation contexts (3/3/20/1). It does not pass automatically. Manual line-level reconciliation, exact accepted-tree equality, unique registration counts and the tests below cover those intentional differences. No outside open feature was imported.
Overlap and Draft gates. The exact-head canonical scan inspected 2199 open heads and retained exit 2: 121 reported peers, 115 automatically uncomparable. Fresh pinned shared-source inspection found no definition of the native capture-family entrypoints; this is bounded source evidence, not a clean scan, author agreement, or joint runtime qualification. The recorded layered-depth/nonzero-layer capture, GCN multisample geometry, replay fault-dispatch, finisher/quiescence, readiness/profiling and platform composition gates remain. See the retained historical evidence for original pins; keep Draft.
Tested
December 4, Linux Release on NVIDIA RTX 3070 Ti (620.73.04). All 31 focused default-mode tests passed on
c37339b0964b. This includes the upstream multisample-depth fault case, refusal before replay mutates state, and HTILE metadata wholly inside, partially inside, and outside the restored range. All ten default-mode controls passed onc1e5709defeb. There were no skips or Vulkan validation errors in either default-mode run. Replay reviewWith
APS5_PARALLEL_ATLAS=1, main passed two of three controls and the candidate passed two of five. Single-sample depth replay failed on both. The candidate’s repeat-2 and repeat-3 cases hit the same primary draw-state failure. Adding #27875 (478dec33c359) to this candidate passed all five focused checks with pooling off and all five with pooling on. These were headless Linux renderer fixtures.December 3, Linux Release. On an NVIDIA RTX 3070 Ti with driver 620.73.04, all 27 focused tests passed on
1b2570f65d5fin default mode, including D16S8 copy and layered sampling. All six default-mode controls passed on mainb97867d3ce6b. The 25 candidate tests that opened Vulkan loaded the Khronos validation layer. There were no skips or validation errors in the default-mode run.With
APS5_PARALLEL_ATLAS=1, main passed two of three controls. The candidate passed two of five. Single-sample depth replay failed on both. The candidate’s repeat-2 and repeat-3 cases reported the same draw-state validation errors. Combining this head with the separate renderer fix #27875 (478dec33c359) passed all five focused tests with the pool off and all five with the pool on, without skips or validation errors. The evidence below retains the original commits and platforms for the earlier runs.November 27 parallel-draw check. After #19697 landed, I tested this PR with main
0421b7a725dcon the RTX 3070 Ti. All 20 default-mode cases passed. WithAPS5_PARALLEL_ATLAS=1, 8 of 10 passed. The repeat-two and repeat-three cases hit Vulkan validation errors while drawing the original capture, before replay. On unmodified main,agc_driver_frame_replay_single_sample_depthalso passed with the option off and failed with it on. A local patch that invalidates cached primary command state after executing a secondary command buffer passed all 31 follow-up runs, including both failing cases. The published replay branch remains atad8479cc9503. The standalone renderer fix and its regression test are in #27875. Upstream recorder · Vulkan command-buffer stateNovember 27 exact-head paired qualification. Candidate
ad8479cc9503af14d78c75070b38eb97da0988a8, main2b6c1b0445281444f24bd2ba3205d1f7cf9f0a97; separate private builds on the same NVIDIA GeForce RTX 3070 Ti, NVIDIA 620.73.04, CachyOS Linux 7.3.5-2, GCC 16.2.1, Khronos validation 1.4.363 (Vulkan headers require 1.4.335). Generated native revision stamps independently match each exact commit with dirty=0.agc_driver_stencil_ref_export, initializes Vulkan/validation but reportsthe device lacks VK_EXT_shader_stencil_export; that capability remains unverified. All other selected tests pass.Native Windows Vulkan, another physical GPU vendor, console equivalence and Minecraft Dungeons II progression were not rerun on this exact head. Earlier external and author results retain their original pins below and are not relabeled as this qualification. A preliminary baseline with an unknown dirty stamp was stopped and excluded; only the rebuilt clean-stamp run is counted.
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)Historical evidence and peer gates — original exact pins, not November 27 results
What
November 25 main refresh. Exact candidate
16d931b5c01f76df84fda400a157de28f5b05d67merges main9c0d60cbfb6e4561762604d7b8a7365f15bf2f76while preserving published heade4e558cda704b9f1fcf258d27081e8c813e5a786and its full history. The only manual conflict keeps both independent helpers inDepthSurface.cpp: native replay'sRequireNativeDepthGraphand main'sstencilSlice. Both bodies are byte-identical to their respective parents. All added/removed lines in this feature's 26-file diff remain identical to the prior feature diff; this refresh adds no new capture or rendering policy.The current exact-branch overlap scan covered 2664 open heads at main
9c0d60cbfb6e4561762604d7b8a7365f15bf2f76and returned exit 2: 131 peers reported, with 120 automatically uncomparable results retained. Fresh pinned shared-source inspection found no implementation of this capture family's entry points in those peers. That bounded inspection does not establish a clean scan, author agreement or joint runtime qualification. Keep Draft and the recorded integration gates. Current #24083 (df5230ee4da7) remains an independent layered-depth feature: future composition must adapt replay cleanup to its owner container and qualify nonzero image-layer capture/restoration or explicitly refuse unsupported capture. #25557's GCN plane sizes, #26298's split replay success/fault assertions andmultisample_depth_faultsdispatch entry alongside this branch's native-depth cases and the driver finisher/readiness/profiling peers likewise require qualified unions if they land. None was imported here or added as a prerequisite.November 22, after #17338 merged. Main contains the full prerequisite through
28e7214eb247, merged inc2d5df0371b8. This branch now includes main70cca973b49f. I kept the three prerequisite debt entries in their canonical location and removed this branch's temporary copy. The remaining 26-file diff adds capture and restoration of native depth and stencil on top of the landed repeat reset.Commit
e4e558cda704passed 230/230 (179 real Vulkan, 51 host) focused CTest executions. The same machine passed all 209/209 (159 real Vulkan, 50 host) shared controls on main. Coverage includes replay rewind, partially resident planes, repeated native ownership restoration, the landed cross-identity depth-retirement case and multisample color ownership. The shader cache was disabled except for the explicit cold-pipeline cache test on each tree. With ICD discovery disabled, all 14 cases in the Windows review skipped when Vulkan was optional and failed when required. Strict replay restored nine native depth surfaces for each of three retained captures, and the freshly built Win64 codec passed under Wine. Native Windows Vulkan and Minecraft Dungeons II progression were outside this run. This PR remains Draft.Every GPU case used an NVIDIA GeForce RTX 3070 Ti, driver 620.73.04, on CachyOS Linux with Khronos validation 1.4.363. The verbose logs recorded 247 layer insertions on the standalone commit and 216 on main. All selected hardware runs completed without skips or VUID or synchronization diagnostics. The seven public-header and skip checks passed, and 11 AGC headers compiled independently.
November 21 refresh. I integrated main
6f5c412af786into this branch, retaining the full history of #17338 through28e7214eb247. The standalone candidate53674f53fa87passed 228/228 focused CTest executions (177 with Vulkan, 51 host controls). Main passed all 192 shared cases (146 with Vulkan). Coverage included native depth and stencil capture, partially resident pages, repeated replay restoration, recorder state and the cold-pipeline cache contract. The shader cache was disabled except for that one explicit cache-contract test on both trees.I also reran the 14 no-device cases reported in the Windows review using the Linux binaries from this refreshed commit, with the Vulkan ICD hidden. All 14 skipped when Vulkan was optional and all 14 failed when it was required. Strict replay also restored all nine native depth surfaces from each of three retained captures, covering the prior writer and both flag encodings. The standalone Win64 codec built from this commit with MinGW and passed under Wine. The earlier native Windows observations retain their original commits. At the time of the November 21 run, #17338 was still open.
Test machine: NVIDIA GeForce RTX 3070 Ti, driver 620.73.04, CachyOS Linux, GCC 16.2.1, Khronos validation 1.4.363. Every GPU case required real Vulkan and logged validation-layer insertion (244 insertions on this branch). Both hardware runs had zero skips and zero VUID or synchronization diagnostics. The six skip-audit cases and public-header audit passed, and 11 AGC headers compiled independently.
Partially resident depth and stencil. The frame recorder now retains both per-plane residency flags from the title's depth target in the version-2 companion file. Replay validates each flagged plane's guest mapping before discarding the previous window. A fully mapped partially resident surface keeps its original access rules on replay.
Earlier joint replay integration at
45f8766d98. That head retained the full history of #17338 through28e7214eb2and mainfd7fe562ed. The three conflicting files contained relocated, identical helpers or test registrations. The resolution keeps each rewind mode once alongside the native-depth repeat cases.Frame captures currently lack the GPU-only single-sample native depth/stencil contents and companion ownership needed to begin replay from the captured state. Serialize the native planes in the version-2 depth companion file and reconstruct their plane bits, companion graph and relative depth/stencil binding order.
Compose with #17338's generic guest-memory reset so every accepted repeated replay window starts from the captured guest bytes and native graph. Retain the same Vulkan device and warmed pipelines; retire previous-window owners safely even when sampled views retain old resources. Preflight predictable schema/device/value failures before discarding live state, select the exact current image view during reconstruction, invalidate captured-range HTILE metadata, and abort partial restoration without publishing a successful next pass.
Main now includes #17338’s guest-memory transaction and reset, preserving the original authorship. This PR adds native depth capture and replay on top of that implementation.
Limits remain explicit in debt: GPU-only native depth with HTILE or multiple samples is refused; companions must have matching extents/formats; restoration requires the same host depth format, at most 1 GiB per plane and 4 GiB decoded total. Unsupported float values on devices without unrestricted depth range fail preflight. Repeated restoration rebuilds fresh native owner state; it does not convert host formats or recover from device loss. Once destructive restoration begins, an exceptional failure aborts replay rather than rolling back the preceding window. Cleanup after a secondary persistent failure remains best effort. Legacy captures without native depth data retain guest-only replay.
The Linux replay prerequisite requires the kernel write watch and quiescent submitters/mappers. Ordinary live-rendering shared-stencil publication and the recorded Lavapipe 26.2.6 cross-aspect-copy limitation remain outside this capture-boundary fix. No console-equivalence, title-unblock or speed claim; the Minecraft Dungeons II report #15113 has not been rerun.
Optional-GPU capture and repeated-replay tests now return the standard CTest skip code when no Vulkan device is available. Required-Vulkan runs retain failure behavior.
Replay reset now invalidates HTILE copy provenance for every restored interval even when captured bytes are unchanged. Partial overlaps retain their outside prefix/tail, and global native-surface discard preserves uncaptured copy records, including an already-bound outside target. Native serialized capture with HTILE remains unsupported as stated above.
2026-11-17 integration: submitted head
44973024f9a5269062da6baf4bf79735e12991c4merges tested main050cdf95addcb05b1c663587ab921216707623feand preserves the full original prerequisite histories. The shared helper conflict retains main's claim-release counter together with feature owner-inventory/reset helpers and the retirement forward declaration; current attachment-memo, collect-sharing, MSAA-upload and capture-shutdown behavior is preserved.Trial-merging this commit (
e4e558cda704) with the layered depth rendering in #24083 (0e6e513f9d16) exposed two conflicts inDepthSurface.cpp. If #24083 lands first, replay cleanup must use its per-slicedrawnDepthslist and preserve the residency checks that run before restoration changes device state. The capture and restore paths currently copy image layer zero. Before combining these changes, test capture, restoration and repeated replay with distinct depth and stencil values on a nonzero layer, or explicitly reject that case. Each branch merged independently with main at933038b0f34c. The combined paths have only been inspected in source.Tested
November 25 qualification — exact pins above. Linux 7.3.5-2-cachyos x86_64 GNU/Linux, GCC 16.2.1; NVIDIA GeForce RTX 3070 Ti, driver 620.73.04, Khronos validation 1.4.363 (Vulkan headers require patch 335). Both standalone trees were built and tested in separate private copies.
agc_driver_stencil_ref_exportcase initializes Vulkan and validation but skips on both trees because this device lacksVK_EXT_shader_stencil_export. That capability is not verified here. All other selected cases pass; maximum per test 10.796s. Raw logs record 279 main and 310 candidate validation-layer insertions. Required Vulkan, the same GPU/device selection and cache-off settings were used, except the explicit cold-pipeline cache-contract case on each tree. This is correctness evidence, not a speed claim.35fa6270ab23a8edc09fd717186ba543e6cca69aof this candidate with subsequent main1cd6df7381c6537f7efb2e90913c1a708e5ab140passes all 12 focused native capture/repeat-replay and FMASK/shader controls, with no skips or VUID/SYNC diagnostics. The new main changes are bounded to FMASK descriptor/expansion paths, with shared MSAA guard callers; no outside feature is imported into the public candidate and its paired baseline remains the exact pin above.Native Windows Vulkan, another GPU vendor, physical-console equivalence and Minecraft Dungeons II progression remain untested. Previous qualification paragraphs below retain their original exact commits; they are not relabeled as this refresh's results.
The November 22 standalone test results above are for
e4e558cda704on main70cca973b49f.November 22 tested revisions. Standalone
e4e558cda704b9f1fcf258d27081e8c813e5a786and main70cca973b49f92baf7e731f85f6b6c3fed775a25.Residency regression at
1ef12611dbb5, compared with main7d2270cb862e. The old implementation failed three regression checks. The codec lost independently set depth and stencil flags, a real Vulkan frame recording lost the mapped depth surface's flag, and replay preflight accepted a flagged plane backed by reserved guest pages. On the corrected head, the codec and real recorder preserve the flags, and preflight distinguishes mapped from reserved depth and stencil before changing replay state.On CachyOS Linux with a GeForce RTX 3070 Ti, NVIDIA 620.70.06 and Khronos validation 1.4.363, all 53 matched controls passed on both main and this change. This change passed 36 additional cases, for 89 total. The selection includes the recorder flush-exclusion test, six map-gate controls, strict native capture and repeated replay. Verbose logs showed the validation layer loaded in 25 main cases and 56 change cases. Zero skips, missing layers or VUID/SYNC diagnostics. Vulkan was required and the shader cache was disabled.
The upstream graphics suite also passed on both commits. Its mock Vulkan depth-surface fixture checks partially resident depth, stencil and HTILE mappings through the ordinary draw path.
Strict replay with both real readers restored nine surfaces from an older capture and from a new capture with both flags clear. For a new capture with a residency flag set, the earlier reader explicitly reported
unknown target flags; this reader restored all nine surfaces. The Win64 CPU codec test also passed under Wine 11.22 Staging (MinGW-w64 GCC 16.2.0). Native Windows Vulkan replay, a second physical GPU vendor and the Minecraft Dungeons II report remain untested here.November 20 at
45f8766d98. On a GeForce RTX 3070 Ti, NVIDIA 620.70.06, CachyOS Linux, all 47 matched CTests passed on main and the integrated change. The change additionally passed 35 branch-specific cases, for 82 total. This includes repeated native depth/stencil restoration through two and three replay windows. 19 main cases and 49 change cases logged a real Vulkan layer insertion. Both runs required Vulkan, disabled the shader cache and used Khronos validation 1.4.363. There were zero skips, missing layers or VUID/SYNC diagnostics. The longest test took 9.74 seconds on the integrated change. Native Windows, commercial-title playback and another GPU vendor were outside this local run.Latest source-scoped peer feedback, 2026-11-17: #22018 (
91684d451c1b) adds unmap-only pending-storage invalidation. Future composition must add that marking at the actual unmap entry, preserve this branch's guarded retirement/reset transaction and the peer's observer/pending-layer logic, and keep ordinary owner replacement distinct from unmapping. #22181 (da111246be6a) adds Windows page-rounded commit spans and sub-page replay coverage; that Windows composition remains unqualified here. Preserve serialized range identity and native companion restoration while applying its page-span behavior. Existing #22028 write-watch baseline/race, #22029/#22156 copy/label ordering, GPU-permission, retirement and HTILE gates also remain, including when bot rows disappear. These exact-source observations are not fresh joint-peer or native Windows tests, a serializer duplicate, or an agreed outside landing order. The tested head and Draft state are unchanged.2026-11-17 exact-head qualification:
44973024f9a5269062da6baf4bf79735e12991c4against main050cdf95addcb05b1c663587ab921216707623fe.VUID-/SYNC-diagnostics. Raw logs contain no such validation errors on either side, and every selected case finishes below 30 seconds.Exact pins, matched controls, per-test results and full verbose validation logs.
Keep Draft for #17338 and the recorded replay/capture/ownership peer-composition gates. The November 20 run covers the current #17338 head on Linux. No author agreement is claimed. Native Windows/macOS, another GPU vendor, commercial titles, console parity and performance improvements were not established. Older external and peer-composition receipts below retain their original pins.
The historical fourteen no-device failures were corrected before this refresh. New peer warnings for GPU-only allocation capture, owner retirement, HTILE sizing, lost write-watch pages and restore ordering remain explicit future composition obligations, rather than results inferred from this main merge.
Historical exact-head qualification
2026-11-16 replay integration refresh — exact submitted/tested head
595b6129ab0d3bc10b57b01af75162945e1683c8, maind7e14b62b5bc826d761e418d79cf06fad54a752b. Merge main into the existing draft, preserving its original prerequisite history, native-depth capture/reset implementation and bounded REWIND control scanner. Keep main's new tail-read barrier, queue-qualified released-tail tracking and command-write preparation before delta writes. Both test function groups, dispatch modes and CMake registration/environment groups survive the conflict resolution.Fresh Linux main: 117/117 focused cases pass. Exact candidate: 153/153 pass (102 Vulkan contexts and 51 host cases), plus 7/7 tooling/public-header cases. No selected skips, unavailable counters, missing validation layers or VUID/SYNC diagnostics; every case finishes below 30 s. The matched groups add current-main
rewind_page,rewind_reuse,rewind_shared_tail,rewind_settled_tail, five unwatch/snapshot-scope cases, pending-write snapshot and shadowed-key cases to the prior native-depth/replay contract. Original HTILE-copy, partial reset, ownership/retirement, control-boundary and failure cases remain.NVIDIA GeForce RTX 3070 Ti, driver 620.70.06, CachyOS Linux / GCC 16.2.1 Release, Khronos 1.4.363; real Vulkan required, layer actually inserted per Vulkan case. Shader cache is off except the explicit cold-pipeline cache contract, run with caching enabled on both pins. Source review found no material integration defect. Native Windows, macOS, console/title behavior and performance were not rerun; old external results below retain their original pins.
Current conventions and committed whitespace pass, and all applicable AGC debt fragments fold in the scoped control. The global fold repeats the pinned main's unrelated stale NKWebKit selector failure; that inherited failure remains explicit. Draft status and existing external prerequisite/integration gates remain. A later mechanical merge check against main
dcf3d15978c8334342ed2f65faa4bc0e3b436198is clean. Those later changes were not rerun as a combined runtime build. Full exact-head logs, baseline/candidate comparison, review and preservation evidence.Historical qualification at its original exact commits
2026-11-15 texture integration refresh — exact submitted head
72e9d69b8626f4f7b05628740c9f17e1053a47c4, matched tested main4de1f9cd83fbdf92c4ff8a1cac5d55e9244a1008. Integrates current-main texture upload and pending-collect changes. The two-file conflict preserves both independent test hooks, their atomics/setters and the complete flush-exclusion implementation. Both merge parents and exact #17338 prerequisite0523b51913c421ea7ba8bae6393c6e22ae692beeretain their original ancestry/authorship. All 32 non-merge range-diff entries are unchanged; this does not claim unchanged overall AGC bytes, because upstream source advanced. Keep Draft and the existing dependency/integration limitations.fe172a971f7dccbe70e17b2b2a5100c724eabbcdmerges cleanly with no intervening AGC/shader/guest-allocator/rules/submodule change; this is a separate mechanical/input check, not a runtime test on that later composition. Existing overlap/dependency caveats remain; no fresh clean canonical overlap scan or author agreement is claimed.Fresh logs, exact pins, elapsed audit, merge resolution, independent review and root dispositions. Original shared checkout, 36 module heads, 92 unrelated branches and the existing ten untracked source caches are restored/preserved.
Qualification before this main refresh (historical exact commits)
2026-11-15 refresh after merged #20523 — exact submitted head
a7bbeeeec01c34f25f762bfce658f1180e156fb8, matched tested mainb5bd8ceda003f0a42ebffebf4ed2769c0993f06b. The merge preserves all previously reviewed AGC driver/shader implementation, test and registration bytes from46ab23733b10b6b8fd8852aea534912a8a278139and the exact #17338 prerequisite0523b51913c421ea7ba8bae6393c6e22ae692beewith its authorship. Keep Draft and the dependency/integration limits described above.ef6a94fb54e6c3644d0563fbac66eddbf8b29145merges cleanly and has no intervening changes in the inspected AGCDriver/shader/replay allocator/write-watch, rules or submodule inputs. This is a separate mechanical/source check; the runtime base is the pinned main above. Previous canonical overlap/integration caveats remain historical, with no new clean scan or author agreement claimed.Hosted macOS relinker/tooling CI on this exact head, merged onto main
ef6a94fb54e6c3644d0563fbac66eddbf8b29145, passed 838/838 CTest cases. All six skip-audit entries pass; the largest partition took 3.60s, clearing the prior timeout failure on this refreshed head. This is native macOS relinker/tooling evidence, separate from the local NVIDIA AGC qualification; it does not establish macOS AGC GPU behavior. Windows checks remain tracked by live CI.Full fresh logs, exact pins, coverage observations, elapsed audit and independent review. Original shared checkout and existing module/cache state were restored and preserved.
Qualification before this main refresh (historical exact commits)
2026-11-15 — exact submitted head
46ab23733b10b6b8fd8852aea534912a8a278139, tested maindef59e9943803f14c8570d5a57eef95d90dab52c. Current #17338 dependency is0523b51913c421ea7ba8bae6393c6e22ae692bee, with original authorship retained. The main refresh preserves all reviewed AGC/shader implementation, test and build bytes frombb3a7b081cf347fb1e04345cfdf25b812a3a1d38/ corrected productionba916e4c926ea6d271e36f69cafc8a56f0f3d883.bb3a7b081cf347fb1e04345cfdf25b812a3a1d38, 18 optional no-device controls skip and 18 required controls fail intentionally; these are separate from the 142 real-environment passes.6ad1fe8a7196823f1048a10f4713e355a6f61afe, 123 peers and fail-closed exit 2. All 46 new/changed peer scopes have bounded exact-head manual reviews; 77 retain earlier exact heads and equal/subset shared paths. No equivalent full native capture/reset feature was found; partial helper/control-store overlaps and async/owner/flush/format/cache integration obligations remain. This is not a clean canonical exit, combined all-peer runtime proof or author agreement. Draft and Depends on #17338 remain.Full current-main/candidate logs, elapsed audit, RED controls and pinned overlap reviews.
Historical qualification at its original exact commits
Latest feedback correction: candidate
8bd80d8b899036be69ad007e4540ca1eae20c911, with main snapshot5891d14d99b55999a211613839f9e8dcac31aeff. The merge preserves the exact prerequisite ancestry and changes zero AGC source bytes; the correction then changes only three test files.435adaa2c9eaef470821623db9234a334461ef37: all 14 affected tests fail with no usable Vulkan ICD. On the corrected candidate, all 14 skip when Vulkan is optional; all 14 still fail when ANYPS5_REQUIRE_VULKAN=1. No shared-helper, rendering or replay implementation change.Latest no-Vulkan controls, matched real-GPU logs, review and overlap qualification.
Earlier qualification of published
435adaa2c9follows as historical evidence; the exact-dependency baseline below was not freshly rerun for this test-only correction:Fresh source pins on 2026-11-13: candidate
435adaa2c9eaef470821623db9234a334461ef37, mainc76eb6a26433216e2219fa9937e9cd57254be272, exact-dependency baselineae52fc7af21862cc919b499263db08f80eac0a30.CachyOS/Arch Linux x86-64, kernel 7.3.3-1-cachyos, GCC 16.2.1 Release; NVIDIA GeForce RTX 3070 Ti, driver 620.70.06, Khronos validation layer 1.4.363. All 28 selected candidate CTests pass, with 38 actual validation-layer insertions and no skips. The five matched-main and eleven exact-dependency cases also pass. Full per-test CTest logs are compared against both baselines: no missing requested layers and no new VUID/SYNC errors. Real Vulkan is required, shader cache is disabled and fifo_latest_ready is requested.
Coverage includes schema/bounds/companion serialization, retained and retired-view identity, repeated resets, preflight preservation, production partial-upload cleanup after one completed plane, warmed pipelines, orphan HTILE range isolation, and actual mutating CLI repeat-2/repeat-3 workloads. The component failure injection is not an injected full exported-CLI failure. Windows, macOS, physical-console parity and commercial-title behavior were not tested.
Fresh baseline/candidate full logs and qualifications.
The fresh-main merge leaves the candidate AGC tree unchanged. The old and refreshed dependency-relative binary patches are byte-identical, SHA-256
a110c0d9b120713c6691ff4ba4d3f0db4f13021e75a587489547ba628859b00e; all 18 own range-diff entries match.python3 -B tools/check_conventions.py --base c76eb6a26433216e2219fa9937e9cd57254be272andgit diff --checkpass on the refreshed candidate.The completed canonical overlap scan fetched 1,506 open PRs, probed 1,505 other heads, selected 313 sharing files/exports and reported 120 peers. It failed closed on 114 automatically uncompared conflicting peers. Every reported peer number, full head SHA and shared-path set is unchanged from the prior full 120-peer manual audit (63 even/57 odd); no new or changed peer delta required inspection. That audit found no duplicate native snapshot/restore feature. This is manual duplicate-scope clearance, not a clean canonical exit or an all-peer merge/runtime claim. Complementary layered/async/alias/held-view and recorder-store interactions retain their documented future composition obligations. Keep this PR Draft with Depends on #17338 and no agreement claim.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T07:04:47Z.
Review: COMMENTED
Reviewed — comments
This review is incomplete because several changed files were not fully inspected, so a formal decision is not justified.
What I ran
45f8766d98ec3b65607cf0eb3b0cd31225ef3656; base ismain.repo_read.pytools. No tests were run.Results
Findings
Blocking
None identified in the portions inspected.
Non-blocking
None recorded; source review was incomplete.
Not verified
The changed-file bundle lists 39 files. I did not read all added-line ranges required for a complete review. In particular, full text was excluded for
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp,core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp,core/libs/prx/libSceAgcDriver/tests/Recorder.cpp, anddocs/dev/ENVIRONMENT.md; the code in these files was not verified. Other changed files and behavior not covered by the inspected diff excerpts also remain unverified. No tests were run. The author-reported test results in the description were not independently verified.To get this to a good state
Complete review of the changed-line ranges for all files in the manifest, including the excluded files through the pinned reader, and run the relevant checks before making a formal review decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T08:02:19Z.
Review: COMMENTED
Reviewed — comments
The review is incomplete because several changed implementation and test files were not read; no formal merge decision is justified.
What I ran
No tests or build commands were run. I read the prepared description, commit list, manifest, diff excerpt, and selected source files at head
1ef12611dbb5b6250e6f0c1a694ea9b63d161f4a.Results
Findings
Blocking
None verified in the code read.
Non-blocking
None.
Not verified
The description claims repeated replay restoration and depth/stencil residency handling; those claims were not fully checked. The full diff and manifest were not read. Changed files not read include
VulkanDevice.cpp,Texture.cpp,Recorder.cpp,ENVIRONMENT.md, and multiple other implementation, test, build, and documentation files. No tests were run, and claims about their results are author-reported only. Files read:description.md,commits.md,manifest.json(excerpt),diff.patch(excerpt),NativeDepthCapture.cpp,EntryPoints.cpp, andLifecycle.cpp(excerpt). Excluded from full-text review: changed files omitted by the bundle’s size rules and all other changed files not specifically read.To get this to a good state
Nothing is required. Optional: complete source and test review of the changed files before making a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T09:37:30Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this draft; the evidence inspected supports the change, with the noted verification limits.
What I ran
Reviewed head
53674f53fa87a846ea1e2b9d2af77545bd8fddbb. No build or tests were run. Read the prepared description, commit list, manifest, diff, and source throughrepo_read.py.Results
Findings
Blocking
None identified in the code read.
Non-blocking
None.
Not verified
The description reports 228/228 focused candidate CTests and 192/192 shared main cases, plus Vulkan hardware validation and a Windows codec run under Wine; these were not independently run for this review. The full source was not read for every changed file. In particular,
VulkanDevice.cpp,Texture.cpp, andtests/Recorder.cppwere excluded from the prepared full-text bundle; only targeted ranges were read where applicable. The other changed files were not all read in full. Native Windows Vulkan behavior, other GPU vendors, console behavior, and title playback were not verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T10:17:15Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
e4e558cda704b9f1fcf258d27081e8c813e5a786. No commands or tests were run in this review; the CTest results in the PR description are author-reported.Results
Findings
Blocking
None.
Non-blocking
Not verified
The changed
VulkanDevice.cppimplementation, the remainder ofFrameReplayState.cppandtests/execution/NativeDepthCapture.cpp, and the other changed files listed as included in the manifest were not read in full.VulkanDevice.cppwas excluded from the prepared full-text bundle and only its relevant replay/capture methods were read throughrepo_read.py. No build or tests were run. The author's reported Linux, Vulkan, and Wine results were not independently reproduced. No source permalink claims are made.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T10:22:01Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this Draft; the points below are optional.
What I ran
Reviewed head
16d931b5c01f76df84fda400a157de28f5b05d67. No build or tests were run. Read the prepared description, commits, manifest and diff, plus the pinned replay reset and depth capture/restore code. Author-reported tests were not rerun.Results
Findings
Blocking
None in the inspected paths.
Non-blocking
None.
Not verified
The manifest lists 26 changed files. I inspected the full diff, but read pinned source context only for
Graphics/src/DepthSurface.cppandtools/FrameReplay.cpp; the other changed files were not independently inspected at the pinned head. I did not verify the reported test runs, Windows/Vulkan behavior, alternate GPUs, console behavior, or the peer integration gates.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T15:08:35Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
ad8479cc9503af14d78c75070b38eb97da0988a. No commands or tests were run in this review; the test results below are author-reported. I readdescription.md,commits.md,manifest.json, and the relevant diff hunks, plus the changed codec, replay, depth-surface, lifecycle, and Vulkan-device implementation and tests.VulkanDevice.cppwas excluded from the review folder and read throughrepo_read.py. I did not read every changed file listed in the manifest.Results
Findings
Blocking
None identified in the source inspected.
Non-blocking
Not verified
I did not read every changed file or run tests. In particular, the changed test suites, CMake registrations, and debt documentation were not all inspected. The reported Linux GPU qualification and its logs were not independently verified. Native Windows Vulkan, other GPU vendors, console equivalence, title progression, and unresolved peer composition are not verified here.
To get this to a good state
Nothing is required. Optional: complete the documented peer-composition and platform qualification gates before removing Draft status.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-03T09:55:22Z.
Review: COMMENTED
Reviewed — no blocking findings
I found no verified blocking defect in the changed hunks I inspected; this remains a comment because I did not read every changed file in full or independently verify the reported test runs.
What I ran
Reviewed head
1b2570f65d5f5e385b95f065db4cc22908742ffbusing the prepared diff and targetedrepo_read.pysource ranges. No tests or build checks were run.Results
Findings
Blocking
None verified.
Non-blocking
None.
Sources
Not verified
files.jsonlists 25 reviewed paths and no excluded-by-rule files. I inspected the changed hunks and targeted head-source ranges, but did not read every full file. Tests, builds, and the author-reported hardware results were not independently verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:31:06Z.
Review: COMMENTED
The trial merge onto
c1601e56d5conflicts inFrameReplay.cpp. When resolving the replay setup and reset loop, preserve both refusal before mutation and a repeated window whose earlier HTILE metadata spans overlap the newly restored bytes. The paired outside-range controls are important because a reset can appear correct by dropping all HTILE state and still damage another target. Local paired execution is pending a mergeable head.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T09:28:14Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected code shows no verified blocking defect, but the review is incomplete because two changed source files could not be read at the pinned head.
What I ran
Reviewed head
c37339b0964b89a35276b0240d5f8afe03735e31. I inspected the prepared diff, description, commit list, manifest, and selected included file texts. I did not run tests or builds.The reader returned the requested
VulkanDevice.cpprange, then could not serveDepthSurface.cppbecause its attempt to writereads.jsonlfailed on the read-only filesystem. No tests or negative controls were run.Results
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Sources
The prepared diff and included source snapshots were the basis for this review. No external behavior claims are made.
Not verified
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppwas read only around its new native-depth methods; the rest of that file was not reviewed.core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cppcould not be read throughrepo_read.py, so its changed implementation is unverified. Other changed files listed as reviewed infiles.jsonwere not all read in full.files.jsonreports no rule-excluded files.To get this to a good state
Nothing is required. The review remains incomplete until the changed
DepthSurface.cppimplementation and remaining changed files are inspected.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.