Skip to content

feat(agc): capture native depth and restore repeated replay windows - #529

Draft
Thimo188 wants to merge 26 commits into
mainfrom
upstream-pr/19557
Draft

Thimo188 wants to merge 26 commits into
mainfrom
upstream-pr/19557

Conversation

@Thimo188

@Thimo188 Thimo188 commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Imported from boykopovar/AnyPS5#19557, originally opened by IvanFogel.

Source commit: ad8479cc9503af14d78c75070b38eb97da0988a8. The import branch preserves this fetched upstream PR snapshot. The description and validation below are copied from upstream; no new code changes or test runs were made for this import. Original reviews, discussions, and attachments remain at the linked upstream PR.


What

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 boykopovar#17338, already merged into main; it does not add new rendering or capture policy in this refresh.

November 27 actual rebase. Exact candidate ad8479cc9503af14d78c75070b38eb97da0988a8 rebases published 16d931b5c01f76df84fda400a157de28f5b05d67 onto main 2b6c1b0445281444f24bd2ba3205d1f7cf9f0a97. 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's NanSpeculationCounters.hpp and the feature's NativeDepthCapture.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

November 27 parallel-draw check. After boykopovar#19697 landed, I tested this PR with main 0421b7a725dc on the RTX 3070 Ti. All 20 default-mode cases passed. With APS5_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_depth also 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 at ad8479cc9503. The standalone renderer fix and its regression test are in boykopovar#27875. Upstream recorder · Vulkan command-buffer state

November 27 exact-head paired qualification. Candidate ad8479cc9503af14d78c75070b38eb97da0988a8, main 2b6c1b0445281444f24bd2ba3205d1f7cf9f0a97; 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.

  • Main: 268 pass + 1 capability skip / 269 selected executions (213 real-Vulkan passes, 55 host/mock controls). Candidate: 289 pass + 1 capability skip / 290 selected executions (233 real-Vulkan passes, 56 host/mock controls). Every shared case ran on both trees. The sole matching skip, agc_driver_stencil_ref_export, initializes Vulkan/validation but reports the device lacks VK_EXT_shader_stencil_export; that capability remains unverified. All other selected tests pass.
  • Both runs require Vulkan and disable the shader cache, except the explicit cold-pipeline cache-contract case on each pin. Raw logs record 299 main and 330 candidate layer insertions, no missing layer, VUID/SYNC diagnostic, or unavailable counter. Maximum test time 11.153s, below 30s. These are correctness checks, with no performance claim.
  • Coverage retains native depth/stencil capture, partial-residency preflight, companion ownership, repeated restoration, recorder exclusion, rewind/reset, cold pipelines and current main depth/stencil/storage regressions. All 21 feature-added CTest names are retained uniquely.
  • With ICD discovery hidden, all 14 existing review cases skip when Vulkan is optional and all 14 fail when it is required. These deliberate no-device controls are separate from hardware qualification.
  • Strict replay restores nine surfaces from each of three retained captures (prior writer and both residency-flag encodings). A freshly compiled MinGW GCC 16.2.0 Win64 CPU codec passes under wine-11.22 (Staging); Wine CPU coverage is not native Windows Vulkan verification.
  • 7 skip/public-header CTests pass; 11 AGC public headers compile independently. Current conventions and whitespace checks pass. Original source/module checkouts and build caches remain unchanged.

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

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt and the licence notice of code adapted from upstream (see AGENTS.md)
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none (prerequisite fix(agc): restore a repeated replay pass from the captured memory boykopovar/AnyPS5#17338 is merged; peer-composition gates remain)
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 3070 Ti, NVIDIA 620.73.04, CachyOS Linux
  • AI-assisted: yes
Historical evidence and peer gates — original exact pins, not November 27 results

What

November 25 main refresh. Exact candidate 16d931b5c01f76df84fda400a157de28f5b05d67 merges main 9c0d60cbfb6e4561762604d7b8a7365f15bf2f76 while preserving published head e4e558cda704b9f1fcf258d27081e8c813e5a786 and its full history. The only manual conflict keeps both independent helpers in DepthSurface.cpp: native replay's RequireNativeDepthGraph and main's stencilSlice. 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 9c0d60cbfb6e4561762604d7b8a7365f15bf2f76 and 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 boykopovar#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. boykopovar#25557's GCN plane sizes, boykopovar#26298's split replay success/fault assertions and multisample_depth_faults dispatch 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 boykopovar#17338 merged. Main contains the full prerequisite through 28e7214eb247, merged in c2d5df0371b8. This branch now includes main 70cca973b49f. 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 e4e558cda704 passed 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 6f5c412af786 into this branch, retaining the full history of boykopovar#17338 through 28e7214eb247. The standalone candidate 53674f53fa87 passed 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, boykopovar#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 boykopovar#17338 through 28e7214eb2 and main fd7fe562ed. 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 boykopovar#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 boykopovar#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 boykopovar#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 44973024f9a5269062da6baf4bf79735e12991c4 merges tested main 050cdf95addcb05b1c663587ab921216707623fe and 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 boykopovar#24083 (0e6e513f9d16) exposed two conflicts in DepthSurface.cpp. If boykopovar#24083 lands first, replay cleanup must use its per-slice drawnDepths list 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 at 933038b0f34c. 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.

  • Main: 257 passed, 1 capability skip across 258 selected focused CTest executions (205 with real Vulkan, 52 host/mock controls). Candidate: 278 passed, 1 capability skip across 279 selected pass (225 with real Vulkan, 53 host/mock controls). Every shared test runs on both trees. No failures, missing layers, or VUID/SYNC diagnostics; the same agc_driver_stencil_ref_export case initializes Vulkan and validation but skips on both trees because this device lacks VK_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.
  • The selection retains native depth/stencil capture, partial-residency preflight, companion graph/ownership, repeated restoration, recorder exclusion, rewind/reset, cold pipelines, and the matched current depth/stencil/storage regressions.
  • On the candidate's Linux binaries with ICD discovery hidden, all 14 existing review cases skip when Vulkan is optional and all 14 fail when Vulkan is required. These are deliberate no-device controls, separate from the zero-skip hardware runs.
  • Strict replay restores all nine native surfaces from each of the three retained captures: the prior writer and both residency-flag encodings. A freshly compiled Win64 CPU codec passes under Wine; this does not establish native Windows Vulkan behavior.
  • A separate disposable merge 35fa6270ab23a8edc09fd717186ba543e6cca69a of this candidate with subsequent main 1cd6df7381c6537f7efb2e90913c1a708e5ab140 passes 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.
  • 7 current skip/public-header CTests pass, and 11 AGC public headers compile independently. Current conventions, debt/whitespace checks, merge/history and feature-equivalence proofs pass. Original source checkouts, module worktrees and build caches stayed unchanged.

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 e4e558cda704 on main 70cca973b49f.

November 22 tested revisions. Standalone e4e558cda704b9f1fcf258d27081e8c813e5a786 and main 70cca973b49f92baf7e731f85f6b6c3fed775a25.

Residency regression at 1ef12611dbb5, compared with main 7d2270cb862e. 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: boykopovar#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. boykopovar#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 boykopovar#22028 write-watch baseline/race, boykopovar#22029/boykopovar#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: 44973024f9a5269062da6baf4bf79735e12991c4 against main 050cdf95addcb05b1c663587ab921216707623fe.

  • 229/229 selected candidate CTests pass. 170 real-Vulkan cases, 51 host controls, one explicit cache-on cold-pipeline contract and 7 tooling/header CTests pass. The 222 runtime cases retain all 153 previously selected cases and add 69 current-main controls; 139 GPU, 46 host and the cache/tooling groups match main directly.
  • Aggregate main baseline: 146 Vulkan cases, 49 host controls, one cache contract and 7 tooling checks pass. Shared per-test environments were compared; no selected skips, missing validation layers or new VUID-/SYNC- diagnostics. Raw logs contain no such validation errors on either side, and every selected case finishes below 30 seconds.
  • NVIDIA GeForce RTX3070Ti / driver620.70.06, CachyOS Linux7.3.4, GCC16.2.1, Khronos validation1.4.363 actually inserted. Real Vulkan is required; shader cache is off except the explicit cold-pipeline contract on both pins. Host cohorts create no Vulkan contexts.
  • Affected AGC headers compile independently; conventions, whitespace and scoped/global debt checks pass. Independent integration review found no required source changes. Original checkout and all 47 initialized module worktrees were restored exactly.

Exact pins, matched controls, per-test results and full verbose validation logs.

Keep Draft for boykopovar#17338 and the recorded replay/capture/ownership peer-composition gates. The November 20 run covers the current boykopovar#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, main d7e14b62b5bc826d761e418d79cf06fad54a752b. 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 dcf3d15978c8334342ed2f65faa4bc0e3b436198 is 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 main 4de1f9cd83fbdf92c4ff8a1cac5d55e9244a1008. 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 boykopovar#17338 prerequisite 0523b51913c421ea7ba8bae6393c6e22ae692bee retain 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.

  • Fresh main 119/119, candidate 155/155, and tooling 7/7 pass: 281 selected executions. Candidate has 72 matched and 31 native-specific cache-off real-Vulkan cases, 51 host/mock/codec controls and one real-Vulkan cache-contract case. The explicit cache contract enables caching on each pin; all other GPU cases disable it.
  • NVIDIA GeForce RTX 3070 Ti / 620.70.06 / CachyOS Linux 7.3.4-1-cachyos / GCC 16.2.1 Release / Khronos validation 1.4.363. Every real-GPU case actually inserts the requested layer; no selected skips, missing layers or VUID/SYNC diagnostics. fifo_latest_ready requested. Every selected case finishes below 30 s; maximum 9.82569 s in public_headers. This is correctness/timeout evidence, not FPS.
  • Thirteen additional matched regressions cover pending collect, carried shadow, changed-copy modes, input mirrors, native color readback/snapshots, GPU waiter yields and imported sampled-texture upload. The specific agc_copied_direct_ordering case executes its required uploaded from its host import without a wait marker on both pins; an internal early-return pass is not accepted. Full per-test ctest -V logs are compared against main.
  • Fresh whole-contribution review found no concrete source blocker. Its missing imported-upload qualification was completed, and stale provenance fields were reconciled; dispositions are attached. Conventions against fresh origin/main, debt-fold and whitespace pass. Later main fe172a971f7dccbe70e17b2b2a5100c724eabbcd merges 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.
  • Depth-plane CPU-store coverage executes; native multisample unavailable counters are 0. Host mapping-history heap-mirror subcases remain unexecuted. Component-level partial-upload injection is not full-CLI rollback coverage. Dedicated actual GPU-only HTILE/MS serialized-refusal coverage and a second provenance-specific reset remain gaps. Native Windows/macOS AGC, other GPUs, device loss/OOM/destructive rollback, console/title behavior and performance are not newly established. Historical external and hosted results below retain their older exact pins and were not rerun on this head. Automatic hosted checks for this head are tracked separately.

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 boykopovar#20523 — exact submitted head a7bbeeeec01c34f25f762bfce658f1180e156fb8, matched tested main b5bd8ceda003f0a42ebffebf4ed2769c0993f06b. The merge preserves all previously reviewed AGC driver/shader implementation, test and registration bytes from 46ab23733b10b6b8fd8852aea534912a8a278139 and the exact boykopovar#17338 prerequisite 0523b51913c421ea7ba8bae6393c6e22ae692bee with its authorship. Keep Draft and the dependency/integration limits described above.

  • Fresh main 106/106 selected cases pass; fresh candidate 142/142 pass:59 matched plus31 native-specific cache-off Vulkan cases,51 host/mock/codec controls and one real-Vulkan cache-contract case. The single cache-contract intentionally enables caching on each pin; all other GPU cases disable it.
  • NVIDIA RTX3070Ti620.70.06 / CachyOS Linux7.3.4-1-cachyos / GCC16.2.1 Release / Khronos validation1.4.363. Every real GPU case inserts the requested layer, with no selected CTest skips, missing layers or VUID/SYNC diagnostics; fifo_latest_ready requested. All255 selected executions, including main/candidate and tooling, finish below30s; maximum9.315s in public_headers. This is correctness and timeout evidence, not FPS.
  • The six merged skip-audit CTest entries and public_headers pass (7/7). This incorporates the partition addressing the old macOS check_skips timeout; these new local runs do not claim native macOS testing. Automatic hosted CI on this head is tracked separately.
  • Depth-plane CPU-store coverage executes and native multisample counters report unavailable=0. Host mapping-history fixtures still report unexecuted heap-mirror subcases. The controlled upload injection remains component-level; a dedicated actual GPU-only HTILE/MS serialized-refusal fixture and a second provenance-specific reset remain coverage gaps. Native Windows/macOS AGC, other GPUs, OOM/device loss/destructive rollback, console/title behavior and performance are not newly established. Earlier external reports and RED/negative controls retain their older exact pins.
  • Independent whole-contribution review found no Critical/Important source issue; the optional second provenance-reset extension remains deferred. Conventions, whitespace and debt-fold checks pass. Later main ef6a94fb54e6c3644d0563fbac66eddbf8b29145 merges 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 main def59e9943803f14c8570d5a57eef95d90dab52c. Current boykopovar#17338 dependency is 0523b51913c421ea7ba8bae6393c6e22ae692bee, with original authorship retained. The main refresh preserves all reviewed AGC/shader implementation, test and build bytes from bb3a7b081cf347fb1e04345cfdf25b812a3a1d38 / corrected production ba916e4c926ea6d271e36f69cafc8a56f0f3d883.

  • Fresh main: 106/106 selected cases pass (59 cache-off real Vulkan, 46 host/mock/codec, one real-Vulkan cache contract). Fresh candidate: 142/142 pass (59 matched plus 31 candidate-only cache-off real Vulkan, 51 host/mock/codec, one cache contract). The cache-contract case intentionally enables shader cache; the other GPU cases disable it. Host controls are not GPU evidence.
  • NVIDIA RTX 3070 Ti / 620.70.06 / CachyOS Linux 7.3.4-1-cachyos, GCC 16.2.1 Release, Khronos validation 1.4.363. Every real GPU case actually inserts the requested layer; no selected CTest skips, missing layers or VUID/SYNC errors. fifo_latest_ready requested. All cases complete below 30 seconds; candidate maximum 9.96 s.
  • All four scoped copy-provenance modes pass. Attached earlier exact-pin test-only RED and global-clear/contained-only negative controls establish why global clearing and contained-only invalidation are insufficient. At source-identical parent bb3a7b081cf347fb1e04345cfdf25b812a3a1d38, 18 optional no-device controls skip and 18 required controls fail intentionally; these are separate from the 142 real-environment passes.
  • Coverage retains pending owners, preflight preservation, one-plane-completed upload failure, held view identity, companion/stencil order, parked-zero REWIND and actual CLI repeat-2/repeat-3. The upload injection is component-level, not a full-CLI injected failure. Host mapping-history fixtures report unavailable heap-mirror subcases; complete heap-mirror coverage is not claimed. Native multisample counters report unavailable=0. No dedicated actual GPU-only HTILE/multisample serialized-capture-refusal fixture, native Windows/macOS, device-loss/rollback/OOM injection, console, title or FPS proof is claimed.
  • Fresh independent corrected-source review has no Critical/Important finding. Canonical overlap scan recorded 1,510 heads at main 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 fix(agc): restore a repeated replay pass from the captured memory boykopovar/AnyPS5#17338 remain.
  • Conventions, whitespace and debt-fold checks pass. Historical external GPU/Windows reports below retain their exact old pins and were not rerun on this head.

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 snapshot 5891d14d99b55999a211613839f9e8dcac31aeff. The merge preserves the exact prerequisite ancestry and changes zero AGC source bytes; the correction then changes only three test files.

  • Reproduced the reported failure on published head 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.
  • Real Vulkan rerun on this machine: published head 28/28, pinned main 5/5 and current candidate 28/28 selected CTests pass. Candidate logs contain 38 actual validation-layer insertions. Full per-test logs are compared against both runs, with matching insertion counts, no skips/missing requested layers and no VUID/SYNC errors. The same cache-off, fifo_latest_ready and explicit validation environment is used. Hardware/software are the Linux NVIDIA configuration recorded below.
  • Fresh independent read-only review of the complete feedback correction found no material issue. Second-device-only absence was reviewed statically, not separately injected. Conventions and whitespace checks pass.
  • Current canonical overlap scan fetches/probes 1,522 open heads and reports 116 peers, failing closed on automatically uncompared conflicts. 114 head/path sets exactly match the earlier manual audit. Updated feat(agc): GPU descriptor heap on VK_EXT_descriptor_heap (APS5_GPU_HEAP) boykopovar/AnyPS5#9508's bindless texture header and new feat(agc): capture and replay frames on macOS boykopovar/AnyPS5#19610's macOS test guards/documentation were inspected at frozen heads; neither duplicates native capture/reset or this skip correction. This is manual scope clearance, not a clean canonical exit, all-peer runtime proof or author agreement. Draft/Depends on fix(agc): restore a repeated replay pass from the captured memory boykopovar/AnyPS5#17338 remain.
  • Native Windows/macOS and the external reviewers' GPU reports were not rerun on this new head. The shared Windows ICU-conversion timeouts and clock-test abort are not claimed fixed. No title-unblock or speed claim.

Latest no-Vulkan controls, matched real-GPU logs, review and overlap qualification.

Earlier qualification of published 435adaa2c9 follows 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, main c76eb6a26433216e2219fa9937e9cd57254be272, exact-dependency baseline ae52fc7af21862cc919b499263db08f80eac0a30.

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 c76eb6a26433216e2219fa9937e9cd57254be272 and git diff --check pass 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 boykopovar#17338 and no agreement claim.

Codex added 26 commits November 27, 2026 15:23
@coderabbitai

coderabbitai Bot commented Dec 2, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs rebase Conflicts with main, rebase needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant