fix(agc): clean up what a discarded batch leaves behind #20186

Merged
chitters2004 merged 14 commits from upstream-pr/20186 into main 2026-11-26 16:06:15 +00:00
chitters2004 commented 2026-11-14 19:42:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by chitters2004 on 2026-11-14T19:42:33Z.


What

A recorder batch whose submission fails (vkEndCommandBuffer or vkQueueSubmit fails, or anything throws between closing the batch and the submit) is discarded: its labels, completion counters and resources are released, and its completion actions never run. Three pieces of state lived only in those completions or were moved into the batch, so a discard left them stale. Each commit fixes one and adds a test that fails without the fix.

  1. Copied writers stay listed (fix(agc): delist a discarded batch's copied writers). A draw (keepRecordedDraw) or dispatch whose stores go through a copied buffer is listed in DrawCopiedWriters() / the device's copiedWriters until its completion delists it and writes the buffer back. After a discard it stayed listed for good:

    • AnyPendingCpuWrites stayed true;
    • in-place draw inputs over that range were refused;
    • the guest lease stayed pinned, so freeing the allocation waited APS5_PIN_WAIT_MS (60 s) and threw.

    Recorder::OnDiscard(action) adds per-batch discard actions. discard() runs each one under try/catch: a failure is logged and the remaining actions still run. Both sites register a delist action next to their completion.

  2. Folded occlusion samples are lost (fix(agc): restore occlusion samples a discarded batch folded and drop its own).

    • Lost samples: a batch that folds earlier batches' pending occlusion segments (a GPU sample dump, a queued dump at a store flush, or a fold at capacity) removed them from the pending list. If that batch was discarded, the earlier batches' samples (their queries did run) disappeared from every later total.
    • Never-run queries: the discarded batch's own ended segments stayed pending, so a later fold would copy queries that never ran.
    • The fix: each batch keeps what it folded (foldedSamples). Discard drops the batch's own segments and returns the rest to the front of the pending list. Capacity for that return is reserved whenever a segment is pushed (reserveSampleRestore), so discard (noexcept) never allocates. If it ever cannot restore them, it logs the loss.
  3. An HTILE clear completion is dropped (fix(agc): refuse native depth sampling after a discarded HTILE clear).

    • The state left behind: an HTILE mask clear dispatch arms the native depth surface's clear and queues the completion that marks the metadata written. After a discard the surface kept a queued completion and an armed clear for a dispatch that never ran. The next sample failed on a missing HTILE store, and every later clear was refused as overlapping.
    • The fix: the dispatch registers a discard action that clears the queued completion and refuses sampling of that surface with the reason. The transition is not undone; docs/dev/debt/libSceAgcDriver.md says so.
  4. A failed submit is completed before it is reported (fix(agc): latch a deferred completion's submit failure before waking idle waiters).

    • The race: in Driver::completeSubmission, the Complete guard's destructor marks the serial completed and wakes idle waiters while the submit failure is still unwinding. The draw pipeline reports the failure only after that. So AgcDriverWaitIdle can wake, see completed ≥ accepted and no failure, and return cleanly after a failed submit.
    • The fix: report the failure (ReportFailure) before the guard runs. ProcessShutdown still passes through unreported.
    • Why it's in this PR: its reproducer is commit 3's agc_driver_native_depth_discarded_clear. Windows CI showed it as that test's red, and on Linux unfixed it fails 1/40 serial runs and 28/64 runs with 8 in parallel, against 0/64 fixed. Without commit 4, commit 3's test is flaky.

Tested

Refresh on main 6786420207, ASAN gcc RelWithDebInfo, llvmpipe (LLVM 20.1.2), detect_leaks=0 (llvmpipe threads leak 112 B):

  • 11/11 pass: agc_driver_recorder, agc_driver_discarded_copied_writer, agc_driver_native_depth_discarded_clear, agc_driver_native_depth_clears, agc_driver_native_multisample_depth, and the four kept-bytes tests.
  • Failing first, on this main: with the discard actions not run (fix 1's runner, which fixes 1 and 3 depend on), all three fail:
    • "a discarded batch ran 0 of its 2 discard actions";
    • "a discarded dispatch left its copied writer listed";
    • "native multisample depth clear has no complete tracked HTILE store".
  • The per-fix table below is from the original base 1d1ff1118d.
  • tools/check_conventions.py --base origin/main: passes.

Original run (base 1d1ff1118d), Linux, llvmpipe (Mesa 25.2.8, LLVM 20.1.2). No title; these paths are only reachable through a failed submission, which Recorder::FailNextSubmitsForTest injects.

  • New agc_driver_discarded_copied_writer_tests:

    • a dispatch and a draw (pixel shader storing through a V# to a copied buffer, recorded through VulkanDevice::Draw) are each completed, discarded and repeated;
    • checked after each: the lists, AnyPendingCpuWrites, and that the discarded one stored nothing.
  • agc_driver_recorder_tests:

    • discard actions: two counting ones around a throwing one;
    • a completed batch runs no discard actions;
    • discarded occlusion segments: a batch's own ended segment, and a batch that folded an earlier batch through a GPU dump, both through an injected submit failure. Totals are exact when occlusionQueryPrecise.
  • agc_driver_native_depth_discarded_clear (new ctest):

    • an armed HTILE clear in a discarded batch refuses sampling with the reason, and leaves no pending write;
    • a driver PM4 clear dispatch in a discarded batch: on llvmpipe this case skips (as the existing driver dispatch case does), because the imported HTILE range is not write-tracked there, so no clear is armed.
  • Fail-without-fix (each fix removed with the tests kept):

    Fix removed Result
    dispatch delist fails: "a discarded dispatch left its copied writer listed"
    draw delist fails: "a discarded draw left its copied writer listed"
    discard actions run fails: "a discarded batch ran 0 of its 2 discard actions"
    folded segments restored fails: "the samples of a submitted batch folded by a discarded batch were lost (64 after 64)"
    own segments dropped fails: vkGetQueryPoolResults occlusion: Vulkan result 1 (a fold of queries that never ran)
    HTILE clear refused on discard fails: "native multisample depth clear has no complete tracked HTILE store", which is main's behaviour
    HTILE discard action registered by the dispatch passes: only the driver case covers the registration, and it skips on llvmpipe

    The writer test also runs against main's own sources: it fails there on the dispatch check.

  • Commit 4 (the submit-failure race): unfixed, agc_driver_native_depth_discarded_clear fails 1/40 serial and 28/64 with 8 in parallel, with "serials accepted 1 completed 1, failure latched after the wait: 'vkQueueSubmit recorder: injected failure'"; fixed, 0/64. The flip, PM4-failure, worker-failure, pipeline-queue-failure and submit-progress tests pass.

  • Validation layers (VVL 1.4.363.1, sync validation on), main 1d1ff1118d vs this branch, same machine, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation.

    Side recorder native depth --clears recorded kept bytes discarded copied writer --discarded-clear VUID SYNC
    main pass pass pass fails (the bug) n/a 0 0
    this branch pass pass pass pass pass 0 0

    The layer loaded on every run, and neither log has "was not found but was requested by env var VK_INSTANCE_LAYERS".

  • python3 tools/check_conventions.py --base 1d1ff1118d (main): passes, no findings.

  • Fork CI on this tree (run 43629859674): the Linux gate, ASan and Windows pass the listed tests on both sides.

    • Its TSan job reports only agc_driver_flip: the volatile guest-label poll race that is on main and that #20185 fixes. None of the reports involves this change.
  • tools/pr_overlap.py --base main: overlaps at file level only. No open pull request touches the discard path.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: llvmpipe (Mesa 25.2.8, LLVM 20.1.2), Linux 6.18. CPU rasterizer only; no hardware GPU run.
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5315474065 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20186). Originally posted by [chitters2004](https://github.com/chitters2004) on 2026-11-14T19:42:33Z. --- ### What A recorder batch whose submission fails (`vkEndCommandBuffer` or `vkQueueSubmit` fails, or anything throws between closing the batch and the submit) is discarded: its labels, completion counters and resources are released, and its completion actions never run. Three pieces of state lived only in those completions or were moved into the batch, so a discard left them stale. Each commit fixes one and adds a test that fails without the fix. 1. **Copied writers stay listed** (`fix(agc): delist a discarded batch's copied writers`). A draw (`keepRecordedDraw`) or dispatch whose stores go through a copied buffer is listed in `DrawCopiedWriters()` / the device's `copiedWriters` until its completion delists it and writes the buffer back. After a discard it stayed listed for good: - `AnyPendingCpuWrites` stayed true; - in-place draw inputs over that range were refused; - the guest lease stayed pinned, so freeing the allocation waited `APS5_PIN_WAIT_MS` (60 s) and threw. `Recorder::OnDiscard(action)` adds per-batch discard actions. `discard()` runs each one under try/catch: a failure is logged and the remaining actions still run. Both sites register a delist action next to their completion. 2. **Folded occlusion samples are lost** (`fix(agc): restore occlusion samples a discarded batch folded and drop its own`). - Lost samples: a batch that folds earlier batches' pending occlusion segments (a GPU sample dump, a queued dump at a store flush, or a fold at capacity) removed them from the pending list. If that batch was discarded, the earlier batches' samples (their queries did run) disappeared from every later total. - Never-run queries: the discarded batch's own ended segments stayed pending, so a later fold would copy queries that never ran. - The fix: each batch keeps what it folded (`foldedSamples`). Discard drops the batch's own segments and returns the rest to the front of the pending list. Capacity for that return is reserved whenever a segment is pushed (`reserveSampleRestore`), so `discard` (noexcept) never allocates. If it ever cannot restore them, it logs the loss. 3. **An HTILE clear completion is dropped** (`fix(agc): refuse native depth sampling after a discarded HTILE clear`). - The state left behind: an HTILE mask clear dispatch arms the native depth surface's clear and queues the completion that marks the metadata written. After a discard the surface kept a queued completion and an armed clear for a dispatch that never ran. The next sample failed on a missing HTILE store, and every later clear was refused as overlapping. - The fix: the dispatch registers a discard action that clears the queued completion and refuses sampling of that surface with the reason. The transition is not undone; `docs/dev/debt/libSceAgcDriver.md` says so. 4. **A failed submit is completed before it is reported** (`fix(agc): latch a deferred completion's submit failure before waking idle waiters`). - The race: in `Driver::completeSubmission`, the `Complete` guard's destructor marks the serial completed and wakes idle waiters while the submit failure is still unwinding. The draw pipeline reports the failure only after that. So `AgcDriverWaitIdle` can wake, see completed ≥ accepted and no failure, and return cleanly after a failed submit. - The fix: report the failure (`ReportFailure`) before the guard runs. `ProcessShutdown` still passes through unreported. - Why it's in this PR: its reproducer is commit 3's `agc_driver_native_depth_discarded_clear`. Windows CI showed it as that test's red, and on Linux unfixed it fails 1/40 serial runs and 28/64 runs with 8 in parallel, against 0/64 fixed. Without commit 4, commit 3's test is flaky. ### Tested **Refresh on main 6786420207**, ASAN gcc RelWithDebInfo, llvmpipe (LLVM 20.1.2), `detect_leaks=0` (llvmpipe threads leak 112 B): - 11/11 pass: `agc_driver_recorder`, `agc_driver_discarded_copied_writer`, `agc_driver_native_depth_discarded_clear`, `agc_driver_native_depth_clears`, `agc_driver_native_multisample_depth`, and the four kept-bytes tests. - Failing first, on this main: with the discard actions not run (fix 1's runner, which fixes 1 and 3 depend on), all three fail: - "a discarded batch ran 0 of its 2 discard actions"; - "a discarded dispatch left its copied writer listed"; - "native multisample depth clear has no complete tracked HTILE store". - The per-fix table below is from the original base 1d1ff1118d. - `tools/check_conventions.py --base origin/main`: passes. **Original run** (base 1d1ff1118d), Linux, llvmpipe (Mesa 25.2.8, LLVM 20.1.2). No title; these paths are only reachable through a failed submission, which `Recorder::FailNextSubmitsForTest` injects. - New `agc_driver_discarded_copied_writer_tests`: - a dispatch and a draw (pixel shader storing through a V# to a copied buffer, recorded through `VulkanDevice::Draw`) are each completed, discarded and repeated; - checked after each: the lists, `AnyPendingCpuWrites`, and that the discarded one stored nothing. - `agc_driver_recorder_tests`: - discard actions: two counting ones around a throwing one; - a completed batch runs no discard actions; - discarded occlusion segments: a batch's own ended segment, and a batch that folded an earlier batch through a GPU dump, both through an injected submit failure. Totals are exact when `occlusionQueryPrecise`. - `agc_driver_native_depth_discarded_clear` (new ctest): - an armed HTILE clear in a discarded batch refuses sampling with the reason, and leaves no pending write; - a driver PM4 clear dispatch in a discarded batch: on llvmpipe this case skips (as the existing driver dispatch case does), because the imported HTILE range is not write-tracked there, so no clear is armed. - Fail-without-fix (each fix removed with the tests kept): | Fix removed | Result | |---|---| | dispatch delist | fails: "a discarded dispatch left its copied writer listed" | | draw delist | fails: "a discarded draw left its copied writer listed" | | discard actions run | fails: "a discarded batch ran 0 of its 2 discard actions" | | folded segments restored | fails: "the samples of a submitted batch folded by a discarded batch were lost (64 after 64)" | | own segments dropped | fails: `vkGetQueryPoolResults occlusion: Vulkan result 1` (a fold of queries that never ran) | | HTILE clear refused on discard | fails: "native multisample depth clear has no complete tracked HTILE store", which is main's behaviour | | HTILE discard action registered by the dispatch | **passes**: only the driver case covers the registration, and it skips on llvmpipe | The writer test also runs against main's own sources: it fails there on the dispatch check. - Commit 4 (the submit-failure race): unfixed, `agc_driver_native_depth_discarded_clear` fails 1/40 serial and 28/64 with 8 in parallel, with "serials accepted 1 completed 1, failure latched after the wait: 'vkQueueSubmit recorder: injected failure'"; fixed, 0/64. The flip, PM4-failure, worker-failure, pipeline-queue-failure and submit-progress tests pass. - Validation layers (VVL 1.4.363.1, sync validation on), main 1d1ff1118d vs this branch, same machine, `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`. | Side | recorder | native depth `--clears` | recorded kept bytes | discarded copied writer | `--discarded-clear` | VUID | SYNC | |---|---|---|---|---|---|---|---| | main | pass | pass | pass | fails (the bug) | n/a | 0 | 0 | | this branch | pass | pass | pass | pass | pass | 0 | 0 | The layer loaded on every run, and neither log has "was not found but was requested by env var VK_INSTANCE_LAYERS". - `python3 tools/check_conventions.py --base 1d1ff1118d` (main): passes, no findings. - Fork CI on this tree (run 43629859674): the Linux gate, ASan and Windows pass the listed tests on both sides. - Its TSan job reports only `agc_driver_flip`: the volatile guest-label poll race that is on `main` and that #20185 fixes. None of the reports involves this change. - `tools/pr_overlap.py --base main`: overlaps at file level only. No open pull request touches the discard path. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: llvmpipe (Mesa 25.2.8, LLVM 20.1.2), Linux 6.18. CPU rasterizer only; no hardware GPU run. - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-11-16 15:49:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T15:49:57Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks merging this change; the code inspected addresses the described discard cleanup paths, and the test evidence supplied in the PR description is consistent with those changes.

What I ran

Inspected the prepared diff and targeted files at head 5bbee1f81d90132f5e859099248148652d87905b using the review reader. No tests or build commands were run. The PR description reports test and CI results; those were not independently run here.

Results

Check Result Note
Targeted code review passed Discard, sample restore, HTILE and submit failure paths inspected
Tests in this review not run PR-reported results only

Findings

Blocking

None.

Non-blocking

None.

Not verified

The full text of core/libs/prx/libSceAgcDriver/tests/Recorder.cpp and core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp was excluded from the review folder; relevant changed ranges in VulkanDevice.cpp were read through the reader, but the changed ranges in the large test file were not. Other files listed as included were not all read in full. Build/test results and console or hardware GPU behavior were not independently verified. Read: review/description.md, review/commits.md, review/manifest.json, review/diff.patch, plus targeted ranges in QueueWorker.cpp, VulkanDevice.cpp, Recorder.hpp, Recorder.cpp, DepthSurface.cpp, Draw.cpp, DeferredCompletionFailure.cpp, DiscardedCopiedWriter.cpp, NativeMultisampleDepth.cpp, and agc_driver_native_multisample_depth_tests.cmake. Excluded by size: tests/Recorder.cpp and VulkanDevice.cpp full texts; the former's changed ranges were not read.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5922916656 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20186#pullrequestreview-5922916656). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T15:49:57Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks merging this change; the code inspected addresses the described discard cleanup paths, and the test evidence supplied in the PR description is consistent with those changes. ## What I ran Inspected the prepared diff and targeted files at head `5bbee1f81d90132f5e859099248148652d87905b` using the review reader. No tests or build commands were run. The PR description reports test and CI results; those were not independently run here. ## Results | Check | Result | Note | |---|---|---| | Targeted code review | passed | Discard, sample restore, HTILE and submit failure paths inspected | | Tests in this review | not run | PR-reported results only | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The full text of `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` and `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` was excluded from the review folder; relevant changed ranges in `VulkanDevice.cpp` were read through the reader, but the changed ranges in the large test file were not. Other files listed as included were not all read in full. Build/test results and console or hardware GPU behavior were not independently verified. Read: `review/description.md`, `review/commits.md`, `review/manifest.json`, `review/diff.patch`, plus targeted ranges in `QueueWorker.cpp`, `VulkanDevice.cpp`, `Recorder.hpp`, `Recorder.cpp`, `DepthSurface.cpp`, `Draw.cpp`, `DeferredCompletionFailure.cpp`, `DiscardedCopiedWriter.cpp`, `NativeMultisampleDepth.cpp`, and `agc_driver_native_multisample_depth_tests.cmake`. Excluded by size: `tests/Recorder.cpp` and `VulkanDevice.cpp` full texts; the former's changed ranges were not read. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-16 17:47:14 +00:00 (Migrated from github.com)

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

Review: APPROVED


Reviewed — looks good

Nothing in the inspected implementation shows a verified blocking defect; the prepared artifacts report focused regression coverage, but I did not run those checks.

What I ran

Reviewed head 7d815d97c84bd0bd3e4edae0832c00fb3146bd9d using the prepared diff and repo_read.py-backed reader. No tests or builds were run in this review.

Results

Check Result Note
Patch and targeted source review passed Discard handling and affected call sites inspected
Build and tests not run Results in the description are author reported

Findings

Blocking

None.

Non-blocking

None.

Not verified

No build, test, validation-layer, or console-hardware checks were run. The description's reported test results were not independently verified. Excluded by the review-folder rules: full text for Execution/src/VulkanDevice.cpp and tests/Recorder.cpp (targeted ranges were read through repo_read.py); files listed in files.json were not available as a reader document. Other changed files read: Execution/src/Driver/Queues/QueueWorker.cpp, Graphics/include/DepthSurface.hpp, Graphics/include/Recorder.hpp, Graphics/src/DepthSurface.cpp, Graphics/src/Draw.cpp, Graphics/src/Recorder.cpp, tests/cmake/agc_driver_native_multisample_depth_tests.cmake, tests/execution/DeferredCompletionFailure.cpp, tests/execution/DiscardedCopiedWriter.cpp, tests/execution/NativeMultisampleDepth.cpp, and docs/dev/debt/libSceAgcDriver.md.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5924694028 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20186#pullrequestreview-5924694028). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T17:47:14Z. **Review:** APPROVED --- # Reviewed — looks good Nothing in the inspected implementation shows a verified blocking defect; the prepared artifacts report focused regression coverage, but I did not run those checks. ## What I ran Reviewed head `7d815d97c84bd0bd3e4edae0832c00fb3146bd9d` using the prepared diff and `repo_read.py`-backed reader. No tests or builds were run in this review. ## Results | Check | Result | Note | |---|---|---| | Patch and targeted source review | passed | Discard handling and affected call sites inspected | | Build and tests | not run | Results in the description are author reported | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified No build, test, validation-layer, or console-hardware checks were run. The description's reported test results were not independently verified. Excluded by the review-folder rules: full text for `Execution/src/VulkanDevice.cpp` and `tests/Recorder.cpp` (targeted ranges were read through `repo_read.py`); files listed in `files.json` were not available as a reader document. Other changed files read: `Execution/src/Driver/Queues/QueueWorker.cpp`, `Graphics/include/DepthSurface.hpp`, `Graphics/include/Recorder.hpp`, `Graphics/src/DepthSurface.cpp`, `Graphics/src/Draw.cpp`, `Graphics/src/Recorder.cpp`, `tests/cmake/agc_driver_native_multisample_depth_tests.cmake`, `tests/execution/DeferredCompletionFailure.cpp`, `tests/execution/DiscardedCopiedWriter.cpp`, `tests/execution/NativeMultisampleDepth.cpp`, and `docs/dev/debt/libSceAgcDriver.md`. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-20 13:10:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T13:10:52Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this change; I reviewed the discard cleanup and its tests at head aa4974be6e39b393cf0810fb17ea19a2b104e110 and found no verified defect.

What I ran

No commands or tests were run. I inspected the prepared diff and targeted source ranges through repo_read.py.

Results

Check Result Note
Diff and changed code passed Targeted review completed
Tests not run Author-reported runs only
Build not run No build performed

Findings

Blocking

None.

Non-blocking

None.

Not verified

I did not read every changed line required for a complete approval: core/libs/prx/libSceAgcDriver/tests/Recorder.cpp was too large for the review folder, and I read only targeted ranges of the other included files. I also did not run the tests or build, and did not verify hardware GPU behavior. Files reviewed: QueueWorker.cpp, VulkanDevice.cpp (targeted range), DepthSurface.hpp, Recorder.hpp, DepthSurface.cpp (targeted ranges), Draw.cpp (targeted range), Recorder.cpp (targeted ranges), DeferredCompletionFailure.cpp, DiscardedCopiedWriter.cpp (diff), NativeMultisampleDepth.cpp (targeted ranges and diff), agc_driver_native_multisample_depth_tests.cmake (diff), and docs/dev/debt/libSceAgcDriver.md (diff). Excluded from full-text review: VulkanDevice.cpp and tests/Recorder.cpp, both marked too large; the remaining included changed files were not read in full.

To get this to a good state

Nothing is required. Optional: run the new regression tests and build on the pinned head, then review the full text of the two excluded files.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5993209826 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20186#pullrequestreview-5993209826). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T13:10:52Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this change; I reviewed the discard cleanup and its tests at head `aa4974be6e39b393cf0810fb17ea19a2b104e110` and found no verified defect. ## What I ran No commands or tests were run. I inspected the prepared diff and targeted source ranges through `repo_read.py`. ## Results | Check | Result | Note | |---|---|---| | Diff and changed code | passed | Targeted review completed | | Tests | not run | Author-reported runs only | | Build | not run | No build performed | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified I did not read every changed line required for a complete approval: `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` was too large for the review folder, and I read only targeted ranges of the other included files. I also did not run the tests or build, and did not verify hardware GPU behavior. Files reviewed: `QueueWorker.cpp`, `VulkanDevice.cpp` (targeted range), `DepthSurface.hpp`, `Recorder.hpp`, `DepthSurface.cpp` (targeted ranges), `Draw.cpp` (targeted range), `Recorder.cpp` (targeted ranges), `DeferredCompletionFailure.cpp`, `DiscardedCopiedWriter.cpp` (diff), `NativeMultisampleDepth.cpp` (targeted ranges and diff), `agc_driver_native_multisample_depth_tests.cmake` (diff), and `docs/dev/debt/libSceAgcDriver.md` (diff). Excluded from full-text review: `VulkanDevice.cpp` and `tests/Recorder.cpp`, both marked too large; the remaining included changed files were not read in full. ## To get this to a good state Nothing is required. Optional: run the new regression tests and build on the pinned head, then review the full text of the two excluded files.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!20186
No description provided.