fix(agc): keep a submitted batch owned until a wait proves it complete #28290
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/28290"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by chitters2004 on 2026-11-29T19:27:27Z.
What
A batch the recorder has handed to the GPU must stay owned until a wait proves it complete, but the bookkeeping around
Recorder::Submit,finish()and the recorder teardown allocated, and astd::bad_alloc(or a failed wait) leaving any of those paths destroyed a batch the GPU could still be executing: its kept objects were released and its fence and command buffer abandoned, or its completions (guest write-backs, label stores) never ran. This PR moves every such allocation or throwing step to before the point of no return, or makes it non-throwing, so a batch is either rejected before it reaches the GPU or stays tracked until it is proven complete.8e2847d01c).FailAllocationsAfter(n),AllocationFailurePending()andStopAllocationFailures()make the n-th allocation of the driver'soperator newon the calling thread throwstd::bad_alloc, once. Counting and failing share one thread-local state, so the hook is still one thread-local load and compare when nothing is armed. Linux x86-64 test builds now wrap the driver'soperator newtoo (--wrap=_Znwm) and keep the driver'sstd::template instances out of its dynamic symbols, as MinGW builds do through their export script; otherwise the Vulkan driver's own C++ code bound to those instances, and on lavapipe a failure meant for the driver was thrown inside LLVM's pipeline compile.5e04cd1ca7). The progress watcher is created and theinFlightslot appended empty beforevkQueueSubmit; a guard removes the slot again if the submit does not happen or fails. Once the submit succeeds the batch is moved into its slot (cannot throw) and the guard is disarmed before the remaining bookkeeping runs on the tracked batch.e58dd4091d). Thefinishingvector is replaced by an intrusive list linked through the batches:finish()pushes with two pointer stores, and the guard that already runs on every exit unlinks it. The pending-write snapshot rebuild walks the list.ca49aef00c).Recorder::ReserveKeptopens the batch and makes room in its kept list;releaseRetiredcalls it before it touches the surface, so theKeepafter the erase neither opens a batch nor allocates.ReserveRetentioncallsReserveKeptand then prepares its lookup table; the growth refuses a count past the vector's maximum and grows geometrically without overflowing.38dfc558e2). Objects released into the open batch belong to work submitted before it, sodiscard()no longer destroys them. The discarded batch is parked on the newest in-flight batch (two pointer moves) and destroyed when that batch finishes; the recorder submits to one queue and retires in order, so the wait for that batch covers every earlier submission. With nothing in flight the batch is destroyed at once, as before. The parked batch's bytes count in flight on its host until it finishes, and its completions never run. A host finishing under the GPU mutex hands its parked batches to the deferred release with its own objects.~Batchdetaches each parked batch before destroying it, so a chain as long as the number of failed submits does not recurse down the stack.a21e586bef).finish()waits for the front batch in place (awaitBatch) and pops it only once the wait proved it complete: the fence or timeline wait succeeded, the device was lost, or the device went idle after a failed wait. A throw before that leaves the batch at the front ofinFlightwith its serial, objects, writes, labels and counts, soIdle,CompletedThrough,KeepWithOutstanding, the import and detiler retirement and the pending-write snapshot still see it, and the next drain waits again. A failed wait followed by a successful device idle is logged and counts as complete, so the batch finishes once with its completions, instead of being released with the wait's error and losing them.053630ce6e). WithAPS5_PROFILE_DRAWthe wait report's work moved from theReportdestructor intoReport::publish, called inside a catch-all, so astd::bad_allocin the per-thread table or the periodic report no longer reachesstd::terminate.finish()reads the batch's GPU timestamps into the timing tables inside a catch-all as well.677b47957a). The finishing guard removes the batch's labels and releases its handles itself, before its other bookkeeping, so every exit after the pop runs them.readSamples()reports a failed query read and adds nothing instead of throwing; the GPU timing and theAPS5_FLIP_READ_CHECKring entry are filled in one catch-all, with the reads copied before the ring slot is touched. A completion that throws something other than astd::exceptionis reported like any other failed write-back instead of skipping the later ones. A device loss reported by the wait now also removes the batch's labels.36bbcb5b49).SamplePoolCachereserves its capacity of 256 pools when it is created, on the recording path that may throw, soput()(reached fromrelease(), which isnoexcept) never allocates and isnoexcept. A full or closed cache still destroys the pool.e3efa5c205).~Recordernow settles the batches a failedSync()left ininFlight. It makes one device idle: on success every batch is finished in order without a wait and its completions run; onVK_ERROR_DEVICE_LOSTeach batch is released without its completions; any other result, or a device withoutvkDeviceWaitIdle, ends instd::terminate, asVulkanDevice::State's teardown does when its own idle fails. This also ends the spin of a thread waiting on the timeline without the GPU mutex.8b1f093766). The teardown carries the device loss it saw: a lost device's pending occlusion segments are dropped without a read inSamplesTotal(), and a failed read of the remaining ones is reported and leaves them out of the total. The query pool caches are closed and the sample pipelines destroyed either way. The debt entryagc-recorder-failed-teardown.mdrecords what remains: the teardown policy on a failed drain, and sample reads that fail and leave a total short.570e6602f3). Each completion runs inside a second catch-all that reports, with a fixed string and no allocation, a failure whose own report failed (the unaligned buffer-device-address instruction map,LogCoalescedStderr_nid_no_patch), so the loop always goes on to the next completion.Tests. All new cases live in
RecorderRetention.cppand run as the parts ofagc_driver_recorder_retention(30 s timeout each,SYNC-HAZARD-|VUID-fails the test). They hold batches on the GPU behind a timeline semaphore the test signals, sweep the failing allocation index over the code under test, and check that the failure was reached and reported and that every object a held batch keeps is alive until the hold is released.agc_driver_recorder_retention: the submit sweep (first submit of a recorder, which creates the watcher; the submit that needs a new in-flight block while earlier batches are held), and the park case (a buffer retired into a discarded batch survives the held batch, is destroyed by the deferred release, its bytes are counted and returned, a chain of 64 failed submits keeps every object, a chain of 200000 parked batches is destroyed without a device)._finish: sync of a held batch with each allocation failing in turn (with and without batch fences; the held batch has a label, a completion and kept bytes), nested finish keeping the outer batch's writes in the snapshot, and the completion-report sweeps (astd::runtime_errorand aBdaUnalignedAccessthrown by the first completion; the second must run once)._retire:ReserveKeptrefuses an unholdable reservation without touching the kept objects, keeping as many objects as reserved allocates nothing, and a depth surface created while another is retired under a held batch fails each allocation in turn._wait: failedvkWaitForFences, failedvkDeviceWaitIdle, unresolvablevkWaitSemaphoresKHR, with and without a later batch in flight; the batch must stay in flight and its completion must not run; a failed wait with a successful idle must complete the batch once._profile(APS5_PROFILE_DRAW=1),_flipread(APS5_FLIP_READ_CHECK=1, including a failing occlusion sample read and a non-standard exception from a completion),_samples(per-batch query and pooled occlusion segment paths),_capture(APS5_CAPTURE_TRACE=1, requires at least one failed allocation after the batch reached the GPU; the submit sweeps accept either outcome of a failed allocation)._teardown,_teardown_waiter,_teardown_fails(a child process whose teardown idle fails and must stop),_teardown_samples.agc_recorder_batch_fences:FailedWaitnow covers a lost device, a failed wait whose idle succeeds (no throw, both batches finished, at most one idle per batch), and a failed wait whose idle fails (the sync throws naming the idle, both batches stay in flight); the mock idle completes the queued work when it succeeds.agc_recorder_kept_bytes: a failed submission's objects now stay alive, counted in flight on the earlier batch, until that batch completes.The failed allocations come from the driver's wrapped allocator, which the MinGW and Linux x86-64 test builds link; the profile case reports itself skipped elsewhere.
Tested
Red first, on the parent of each fix:
5e04cd1ca7): on main the watcher's allocation and the in-flight list's new block both threw after the batch had reached the GPU and released its object (agc_driver_recorder_retention).e58dd4091d): on main the first failed allocation of a sync destroyed the object before the wait (_finish).ReserveKept(ca49aef00c): on main the failed allocation of the open batch'sKeepdestroyed the surface after it had left the list (_retire).38dfc558e2): on maindiscard()destroyed the buffer while the held batch still wrote it (_park); a chain of 200000 parked batches overflowed the stack with the implicit recursive destructor.a21e586bef): on main each case destroyed the object while the batch was held (_wait). Without the idle-success change the sync threw and the completion never ran.053630ce6e): without theReportchange the process terminated at the allocation of the sync table entry; without the timing change the first case lost the completion and left a Vulkan object for the device's destruction (VUID-vkDestroyDevice-device-05137) (_profile).677b47957a): the first allocation of the sweep ran the completion 0 times and left 1 label entry; the sample read case failed the sync (vkGetQueryPoolResults occlusion: Vulkan result -1), never ran the completion, kept the label entry and left a fence for the device's destruction (VUID-vkDestroyDevice-device-05137) (_flipread).36bbcb5b49): without the change the sweep terminated the process withstd::bad_alloc(_samples).e3efa5c205):_teardown_failssaw the teardown return after its failed device idle ("the recorder teardown returned after 1 failed device idles"); the teardown cases hit the 30 s timeout with the batch still reported running; with only the settling removed, the fence cases left the batch's fence to the device's destruction (VUID-vkDestroyDevice-device-05137) and the waiter case timed out.9b3fbb842e): with the old sweep theAPS5_CAPTURE_TRACE=1configuration failed ("3 failed allocations threw after the batch reached the GPU").a217e09e3f): before the changeFailedWaitfailed in every mode on RTX 3080 and lavapipe ("a failed wait did not report its Vulkan failure", "a failed wait left 0 batches in flight", "settled the device 2 times"); turning the idle's proof into a failure or dropping the idle'sCheckfails the new cases.570e6602f3): without the change the string sweep skipped the second completion when allocation 5 failed, and the unaligned-access sweep when allocation 0 or 1 failed ("the later completion ran 0 times"), on RTX 3080 and lavapipe.8b1f093766): without the change the first_teardown_samplescase terminated the process ("terminate called without an active exception", exit 0xc0000409) on RTX 3080 and lavapipe; without only the drop of a lost device's segments, the second case reported "the teardown read the occlusion samples of a lost device".ce879924c3): afinish()that allocates once more after the batch leftinFlightfails with "a sync finishing a batch held on the GPU, failing allocation 0: the completion ran 0 times", on RTX 3080 and lavapipe.Local gate (Windows 11, RTX 3080, under a GPU claim) on the A to D integration 901ada780ff: A, B and C merged with D on main
6f6f6c8e6b(the later integration head 1ca50acf71a only changes debt wording). Of the 2411^agc_andwindows_mappings_releasetests on the RTX 3080, none fails (2384 pass, 27 skip). On lavapipe 26.2.6, of the 200 tests in the series' set 169 pass and 28 skip; the other 3 (agc_driver_depth_fewer_samples,agc_driver_native_depth_fill_over_pending_import,agc_driver_recorder) fail on main6f6f6c8e6bas well.Fork CI 46289914386 built and ran the same integration 901ada780ff and main
6f6f6c8e6bside by side, with the same test selection:agc_driver_pipeline_journal,agc_driver_alpha_to_coverage_sample_mask_export,agc_driver_runtime_formatted_store_x1,_x2,_x3_d16) andagc_driver_storage_read_during_idle_store, which has failed on main in earlier runs.agc_linked_code_dependencies_data-hit-verify-stale-datareached its expected verifier abort and then hit its 30 s timeout. All 7 pass 5 of 5 times on lavapipe 26.2.6 locally at this head.agc_driver_host_import_settle_retireskips on lavapipe on both platforms, and the report counts a new test that skips as not passing. It needs the MinGW production device; it passes in the local RTX 3080 gate.python3 tools/check_conventions.py --base origin/mainandpython3 tools/debt_fold.py --checkpass.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-29T19:36:30Z.
Review: APPROVED
Reviewed — looks good
Nothing in the inspected source shows a verified blocking defect; the author-reported checks support the change, but I did not run them.
What I ran
Reviewed head
ce879924c34401cc27e857f819e1b3e58ca7e811. No commands or tests were run. Read the prepared description, commits, diff, manifest, all included changed files, and targeted repository context forRecorder.cppandRecorder.hpp. No changed files were excluded by the manifest.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Runtime behavior and the reported RTX 3080, lavapipe, and CI results were not independently verified. No changed files were excluded; all files marked included in the manifest were read.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-29T19:39:18Z.
Review: COMMENTED
Actionable comments posted: 5
c263f443-fe07-4487-948b-70e607dcdeb8Reviewing files that changed from the base of the PR and between
1f27e2abfaandce879924c3.core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hppcore/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/AllocationCounter.cppcore/libs/prx/libSceAgcDriver/tests/AllocationCounter.hppcore/libs/prx/libSceAgcDriver/tests/RecorderBatchFences.cppcore/libs/prx/libSceAgcDriver/tests/RecorderKeptBytes.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_graphics_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_retention_tests.cmakecore/libs/prx/libSceAgcDriver/tests/execution/RecorderRetention.cppdocs/dev/debt/changes/agc-recorder-failed-teardown.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T07:17:06Z.
Review: COMMENTED
Reviewed — comments
The review covered the prepared change and selected recorder code at head
b8b328dd2717aa586ab4a586b88442aad5e2460d; substantial changed code was not inspected, so a formal approval or request for changes is not justified.What I ran
No tests or build commands were run. I inspected the prepared description, commit list, manifest and diff, and read selected ranges of
Recorder.cppthrough the pinned reader.Results
Findings
Blocking
None verified in the code inspected.
Non-blocking
None.
Not verified
The full text of most changed files was not read, including the 1,390-line
RecorderRetention.cppchange.VulkanDevice.cppwas excluded from the review folder; its changed lines were visible in the diff but its surrounding repository code was not inspected. The description’s reported tests and CI results were not independently run or verified. No specific defect is claimed for code not inspected.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-30T07:18:55Z.
Review: COMMENTED
Actionable comments posted: 3
Architecture findings (1)
Advisory architecture findings (1)
9504e179-e575-4024-aaa1-e5f766810ac7Reviewing files that changed from the base of the PR and between
ce879924c3andb8b328dd27.core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/DeferredDestruction.hppcore/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hppcore/libs/prx/libSceAgcDriver/Graphics/src/DeferredDestruction.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Resources.cppcore/libs/prx/libSceAgcDriver/tests/DeferredDestruction.cppcore/libs/prx/libSceAgcDriver/tests/RecorderBatchFences.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_recorder_batch_fences_tests.cmakecore/libs/prx/libSceAgcDriver/tests/execution/RecorderRetention.cppdocs/dev/debt/changes/agc-recorder-failed-teardown.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T10:00:17Z.
Review: COMMENTED
Reviewed — comments
The review is incomplete because most changed files and several changed hunks were not inspected, so a formal approval or change request is not justified.
What I ran
Reviewed head
eaee4d6a041ccacbe77c4cb91a45595e23e22358using the prepared review bundle and repository reader. No tests or build commands were run.Results
Findings
Blocking
None verified.
Non-blocking
None.
Sources
Inspected selected ranges in
Recorder.cpp,Resources.cpp, andVulkanDevice.cppat the pinned head. The prepareddiff.patchandmanifest.jsonwere also inspected.Not verified
The manifest lists 18 changed files. Repository source ranges were read from 3 files:
Recorder.cpp,Resources.cpp, andVulkanDevice.cpp. The other 15 changed files were not read.VulkanDevice.cppwas excluded from the prepared full-text bundle; only targeted ranges were read through the reader. Most hunks in the diff and much of the added test code were not inspected. No tests, build, CI results, or console behavior were independently verified.To get this to a good state
Nothing is required. Optional: complete the review of the unread changed files and run the relevant checks before making a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-30T10:05:56Z.
Review: COMMENTED
Architecture findings (1)
Advisory architecture findings (1)
6d8d0e6c-42f1-4a4c-8223-a7406c604d96Reviewing files that changed from the base of the PR and between
b8b328dd27andeaee4d6a04.core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/RecorderBatchFences.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_retention_tests.cmakecore/libs/prx/libSceAgcDriver/tests/execution/RecorderRetention.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T16:29:24Z.
Review: COMMENTED
Reviewed — comments
The review is incomplete because only selected changed hunks were inspected, so approval is not justified.
What I ran
Static review of head
acc7a5e8653a5fc6332736cca45cdb4341cd6fa8. No commands, builds, or tests were run.Results
Negative control
Not run; this static review did not run tests.
Findings
Blocking
None identified in the inspected hunks.
Non-blocking
None identified in the inspected hunks.
Sources
Inspected selected hunks in
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp,core/libs/prx/libSceAgcDriver/Graphics/include/DeferredDestruction.hpp,core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp,core/libs/prx/libSceAgcDriver/Graphics/src/DeferredDestruction.cpp,core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp, andcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp.Not verified
Read the review description, commit list, manifest, README, and selected portions of the diff. The manifest lists 18 changed files; only hunks from the six source/header files named above were inspected. The rest of the changed hunks and files were not read, including the full
VulkanDevice.cppand the added test files. Author-reported and CI test results were not independently verified.To get this to a good state
Nothing is required for the inspected hunks. Complete review of the remaining changed files and hunks before making a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-30T16:37:12Z.
Review: COMMENTED
Actionable comments posted: 4
Architecture findings (1)
Advisory architecture findings (1)
342cfb5d-c44d-44c3-ab0f-66b749d20377Reviewing files that changed from the base of the PR and between
eaee4d6a04andacc7a5e865.core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hppcore/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-01T02:43:37Z.
Review: COMMENTED
Reviewed — comments
The change targets batch lifetime across allocation failures, failed waits, and teardown; I found no verified blocking defect in the portions inspected, but could not complete review of every changed file.
What I ran
Reviewed head
6e260d48720cb1591ac4c9baf810771ec3cbe6ad. I read the PR description, commits, manifest, diff, and selected changed-file hunks. I attempted to userepo_read.pyfor pinned source context, but it could not complete because its read log could not be written. No tests or builds were run.Results
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Sources
The inspected changes include
Recorder::Submit,finish, teardown,discard, and deferred destruction incore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppandcore/libs/prx/libSceAgcDriver/Graphics/src/DeferredDestruction.cppat head6e260d48720cb1591ac4c9baf810771ec3cbe6ad.Not verified
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppwas excluded from the prepared files because it was too large, and the pinned reader could not read it. I did not read every added line across the other changed files; the manifest lists 19 changed files, with 18 included in the prepared folder. Runtime behavior and the author-reported test results were not independently verified.To get this to a good state
Nothing is required to address a verified defect. Optional: complete the review of the excluded file and remaining changed lines, then run relevant non-compiling checks if available.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-12-01T02:53:47Z.
Review: COMMENTED
🏛️ Architecture findings (2)
Advisory architecture findings (2)
💬 Code review
Actionable comments posted (2)
c39d6186-8081-4e0a-b3d7-fc58264ff47dReviewing files that changed from the base of the PR and between
acc7a5e865and6e260d4872.core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Context.hppcore/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hppcore/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/RecorderBatchFences.cppcore/libs/prx/libSceAgcDriver/tests/RecorderKeptBytes.cppdocs/dev/debt/changes/agc-recorder-failed-teardown.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-01T04:01:52Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
e7cab191b880949a87633b15f6de7433e3be2bb8. I inspected the prepared description, commit list, manifest, selected diff sections, and one pinned source range usingrepo_read.py. No tests, builds, or other executable checks were run.Results
Negative control
Not run; no tests were run.
Findings
Blocking
None established in the inspected material.
Non-blocking
None.
Sources
Not verified
The manifest lists 19 reviewed files and no excluded files. Of those repository files, I read only
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpplines 4960–5145. I did not read the other 18 files, the rest ofRecorder.cpp, or the full diff. The reported tests, builds, CI runs, and claimed behavior therefore remain unverified; this review does not establish that the overall change is ready to merge.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-01T14:10:52Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
Reviewed PR head
ab9d886a19e4c25e2b5877d8274cb8ca53bfa737. I inspected prepared review artifacts and targeted source ranges withrepo_read.py; I did not run tests or builds. The description’s test results are author-reported, not results I ran.Results
Negative control
Not run; tests were not executed.
Findings
Blocking
None identified in the inspected changes.
Non-blocking
None.
Sources
Not verified
I read targeted changed ranges in
VulkanDevice.cpp,Recorder.cpp,DepthSurface.cpp,DeferredDestruction.cpp,Resources.cpp,Recorder.hpp, andRecorderRetention.cpp, plus the allocation-counter files, CMake additions, and debt note. I inspected the prepared diff and manifest for all 19 changed files, but did not read every added line inRecorderRetention.cppor the test changes inDeferredDestruction.cpp,RecorderBatchFences.cpp, andRecorderKeptBytes.cpp. Runtime behavior, CI results, and physical-console behavior were not verified.To get this to a good state
Nothing is required. Optional: complete review of the uninspected test additions before treating this as a full-file review.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T15:27:10Z.
Review: COMMENTED
The recorder batch-fence and GCN scalar-buffer tests passed on main and the patched tree. The added recorder retention wait, failed teardown, and device-lost teardown cases also passed on the patched tree. All Vulkan runs used the same Linux lavapipe device with Vulkan required, shader cache disabled, and validation layer 1.4.369. The logs show layer insertion and contain no missing-layer diagnostic,
VUID-, orSYNC-HAZARD-entry.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-03T21:28:30Z.
Review: COMMENTED
Reviewed — no blocking findings
I reviewed PR #28290 at head
2e7f8c40b2edbb783dc39f3ad56c42da3e659751, but incomplete source-context and test-harness review prevents a formal approval.What I ran
Inspected the prepared review materials and selected changed-file snapshots. No tests, builds, or compilation were run.
Results
Negative control
Not run; no tests were executed.
Findings
Blocking
None verified.
Non-blocking
None.
Not verified
files.jsonlists 19 reviewed files and no rule-excluded files. I inspected the diff and selected snapshots forRecorder.cpp,DepthSurface.cpp,DeferredDestruction.cpp,Resources.cpp,AllocationCounter.cpp, and related headers and test configuration. The fullExecution/src/VulkanDevice.cppsnapshot was unavailable; I saw only its diff. The newRecorderRetention.cppandRecorderBatchFences.cppchanges were only partially inspected. I did not verify the full contents of all 19 reviewed files or run the reported tests.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:05:05Z.
Review: COMMENTED
I built the exact revised allocation-hook sources on Linux and exercised threads exiting with counting armed, failure injection armed, and both armed. The global armed count returned to zero, and the next explicit counting check observed one allocation. This checks the Linux host TLS change independently of Vulkan. The current head's paired recorder-fence and retention fixtures are queued.
AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-03T22:23:15Z.
Review: COMMENTED
Reviewed — comments
The diff and prepared metadata were inspected, but the pinned reader could not run because its read log is on a read-only filesystem, so the review is incomplete and does not justify a formal decision.
What I ran
Head:
768f5ad354f2417652c0a549d59406b364d832f3. I inspected the prepared description, commits, manifest, diff, and files list, plus selected included file contents. I attempted targetedrepo_read.py searchcalls; the reader failed while writing its read log. No tests or builds were run.Results
Findings
Blocking
None identified in the portions inspected. This is not a complete finding audit.
Non-blocking
Recorder.cppbehavior and much of the new retention test file were not fully inspected.Sources
Inspected the prepared diff and selected full included contents for
HostThreadLocal.hpp,AllocationCounter.cpp,DeferredDestruction.cpp, andagc_driver_recorder_retention_tests.cmake. Also inspected selected hunks forRecorder.cpp,VulkanDevice.cpp,DepthSurface.cpp, andRecorder.hpp.Not verified
The manifest lists 20 reviewed files and no excluded files. The review did not read every listed file in full; several test files, the complete
Recorder.cppchanges, and other changed code were not verified. No runtime, platform, or hardware behavior was confirmed.To get this to a good state
Nothing is required for this comment. Optional next step: rerun the targeted source review with a writable reader log and share any resulting findings.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T14:18:37Z.
Review: COMMENTED
Reviewed — no blocking findings
The prepared diff and selected source ranges do not establish a blocking defect; the review is incomplete because the pinned reader could not run.
What I ran
Head reviewed:
ab943d2b102b186f973a6a41d042b131366fa4ec. I inspected the prepared description, commits, manifest, diff, and selected included source ranges. No tests or build checks were run.The reader returned no matches and then failed while trying to append its log because the run folder is read-only.
Results
Negative control
Not run; no tests were run.
Findings
Blocking
None verified in the inspected ranges.
Non-blocking
The review is incomplete: most changed-file contents and call sites were not inspected, so the available evidence does not justify approval.
Sources
The prepared diff and included source text for
Recorder.cppandDeferredDestruction.cppwere inspected. No behavior claims beyond those ranges are made.Not verified
files.jsonlists 20 reviewed files and no excluded files. The full contents of most listed files, includingVulkanDevice.cpp,DepthSurface.cpp,Resources.cpp, the tests, build configuration,HostThreadLocal.hpp, and the debt note, were not inspected. Repository source context at the pinned head was not verified becauserepo_read.pycould not log its read attempt.To get this to a good state
Nothing is required to address a verified defect. Complete the source review before treating this as an approval.
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.