feat(agc): record graphics batches into sealed command streams #22697
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/22697"
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-18T03:29:31Z.
What
Records a graphics batch into a command stream and replays it into a command buffer at
Submit, replacing the per-window command encoder. This is row 4 of the sealed-batch design.It claims two things and no speed:
Submitstill replays and then waits for that replay before it submits, on either executor.It does not claim parallel encoding pays. A replay bench on an RTX 3080 with 3,000-draw batches bounds what moving
vkCmd*recording off the drawing thread can save at 0.35 us/draw (direct 0.63, append 0.28).Every
vkCmd*resolution (the device table,Context::Function,deviceProcinVulkanDevice.cpp, the AMD marker and NV checkpoint lookups) returns the thunk for that name from one list (APS5_COMMANDSinCommandList.hpp). A thunk given an untagged handle calls the driver; given the open stream's tagged handle it copies the call and its arrays into the stream.tests/test_command_resolver_sites.pyfails on avkCmdname outside the list or a resolution that skips the thunk.Every command in
APS5_COMMANDShas a streamer that copies its arrays and structs into the stream (CommandStreams(id)is true for all 69, includingvkCmdPushDescriptorSetKHR,vkCmdExecuteCommands,vkCmdSetCheckpointNV,vkCmdSetDepthBias2EXTandvkCmdBindShadersEXT). Push descriptor writes are deep-copied by descriptor type: image infos, buffer infos and texel buffer views, each array copied into the record and the write's pointer redirected to it.vkCmdExecuteCommandscopies the secondary handles: its only caller, the pooled depth-only path behindAPS5_PARALLEL_ATLAS, executesRecordingPoolsecondaries that are recorded and ended before the call and kept with the batch until it retires, so replay records the same execute into the replay primary inside the replayedvkCmdBeginRenderingKHR(withVK_RENDERING_CONTENTS_SECONDARY_COMMAND_BUFFERS_BIT). A stream handle passed as a secondary is refused with alogic_erroron a streamed or demoted stream (agc_command_thunks), andagc_driver_depth_plane_sampling_streamed_secondariesrecords four pooled depth-only draws into separate surfaces, requires each to land in a streamed batch that is replayed with no direct, demoted or failed batch, and reads every surface back.A batch demotes only for what cannot be copied by value: a
pNextchain on any streamed struct (inline uniform blocks and acceleration structures carry their data that way), a descriptor type with no array to copy, or a command that would take its stream past its byte cap. The prefix replays in order into a real command buffer and later calls record there. The profile line counts demotions by command andsType(the cap counts asstream byte cap).APS5_NO_STREAMED_PUSH_DESCRIPTORS(a RuntimeSwitch, toggled byAPS5_AB) demotes a batch at its first push descriptor instead, for an in-boot A/B.Per-stream byte cap: the budget's outstanding bytes divided by its outstanding batches, 64 MiB / 16 = 4 MiB by default, so outstanding stream memory is bounded at 16 × 4 MiB. The check comes before a new chunk is allocated or charged, in the chunk-growth branch of
reserve: a command that does not fit demotes the stream, is built in scratch storage and runs on the command buffer, so a stream is never charged more than its cap. An append that fits in its chunk does no extra work. The batch demotes rather than ends because the cap is reached inside avkCmd*call: a render pass may be open and a draw half recorded, so there is no point at which the recorder could end the batch and start the next one. Demotion keeps every command in order and frees the stream's chunks. A stream with no way to demote (none in the recorder) is poisoned instead, so the batch is refused rather than growing.Entry points have no fixed global limit. Each command keeps 8 thunk slots as its fast path. When a command sees a ninth distinct driver entry point,
CommandThunk(name, real, device)returns that command's keyed thunk and records the entry point under the device's loader dispatch key, in a registry owned per device (ForgetCommandDevicedrops it beforevkDestroyDevice). For a real command buffer, the keyed thunk reads the buffer's dispatch key and calls that device's entry point.ForgetCommandDeviceclears a node and a later device reuses it, so the storage is bounded by the peak number of devices registered at once, not by how many were ever created.Submitseals the stream as aSealedBatch, replays it (inline on the submitting thread by default;APS5_ENCODE_THREAD=1uses one worker with its own pool), then submits the replayed buffer. A replay failure is latched for the life of the recorder: that batch is not submitted, its completions do not run, and every laterSubmitthrows the stored error without submitting. A replay fails only when the driver refuses to record or end a command buffer, so the recorder treats the device's graphics work as ended rather than retrying on a state it cannot verify.A draw that throws while recording poisons the open stream (
Recorder::UnwindGuard);Submitthrows instead of submitting part of a draw. Direct batches keepmain's behaviour.Failure paths:
Syncstops at the first failed wait, as #20066 has it onmain: the batch it did not reach stays in flight and unsettled, and the device is idled once (not at all on device loss). A failed submit saved before the waits is still reported first.~RecorderrepeatsSyncuntil nothing is in flight, so teardown no longer destroys batches the GPU still holds;vkQueueSubmitthat loses the device latches the loss, and after itSubmitrefuses direct batches as well as streamed ones. Any othervkQueueSubmitfailure queued nothing: the batch goes throughunqueued(), gives its serial and hold back, and the recorder carries on, unless a newer batch was already sealed behind it, which latches the failed serial. This reverses the earlier choice that every laterSubmitthrows, becausemain'sagc_driver_host_import_lifetimeexpects the next copy to submit;Direct batches no longer pay the thunk's handle test. Each batch picks its command table once, when it opens:
StreamedCommands(), whose entries append to the stream without the thunk's handle test.The draw state (
CommandState) and the per-draw bind and draw calls inDraw.cpprecord through that table. Other sites keep the thunk, which is correct in both modes.Release, 4 vCPU, medians of 21 interleaved rounds, each variant called through the same table load, ns per command:
At -O3 the typed call is not free: it keeps two predictable null checks (the batch has a table, the table has the entry). With the checks removed it measures +0.00 ns, so they are the whole cost. That is about half the thunk's cost, which matches the fork CI's Release figure (typed +0.35 ns, thunk +0.70 ns). Under ASan: raw 1.83, thunk +15.9, typed +0.47. A keyed lookup (past the 8 slots) costs 3.8–3.9 ns at the first node and 6.1–6.3 ns at the fourth (Release -O2, 3 runs).
Serial waits end when the waited batch can no longer complete.
WaitSerial,WaitSerialForandSyncwait in 100 ms slices and check the failure latch each time, so a waiter on a batch whose replay failed, or that the device lost, gets the stored error instead of waiting forever.Admission:
WorkBudget::TryOpenrecords the batch directly instead of waiting when too many streams are encoding or outstanding, and counts the refusals.Removed:
CommandEncoder, the encoding window inDraw.cpp, the adaptive policy, the drain at by-name lookups and table calls,APS5_NO_RECORD_ENCODER,APS5_NO_ADAPTIVE_ENCODER,APS5_QUIESCED_SEGMENTS,APS5_ENCODER_IDLE_SPIN_USandAPS5_PROFILE_ENCODER.APS5_DIRECT_BATCHES=1andAPS5_RECORD_INLINE=1record every batch directly.API points a parallel encoder will need, found while scoping async submit and kept out of this PR:
pendingLabelSince) until it is queued;HoldNextSubmit) must be captured per batch when it is sealed;Each promise from our #18173 reply (issuecomment-6933127916), where it is in the code and what covers it. Tests are in
tests/SealedBatch.cpp(agc_sealed_batch) unless named otherwise.SealedBatch:OutcomepluserrorundererrorMutex;AwaitandErrorrethrow itSealedAndFailedAppendsPoison,InlineReplayFailureReachesTheLatchReplay(stream, target, real)reads only the stream and the table it is given. The one per-thread value is aboolguard (ReplayThreadScope, aHostThreadSlotwith no destructor) that refuses appends from a replay threadSingleExecutorOwnsItsPoolAndThreadreplays on the executor's own thread; theappendOnReplayThreaddeath test;agc_driver_recorderwithAPS5_ENCODE_THREAD=1releaseReplaysetsReplayReleasedapart fromOutcome;Retirableneeds replay released, submit returned and GPU releasedRetirementOutlivesTheStream,FenceBeforeReturnStaysHeld,CancelDoesNotImpersonateTheWorker, thedestroyUnretireddeath testCommandStreamhas its own tagged handle, and the thunks find the stream from the handle, with no shared open-batch state. The budget's counters are atomic. The recorder itself keeps one batch open, and up to 16 sealedTwoThreadsAppendToTwoStreams: two threads append 20,000 records each to two open streams sharing one budget, throughEmplaceand the streamedvkCmdSetCheckpointNV; each stream replays exactly its thread's sequence and the budget holds both charges.TwoThreadsChargeOneBudgetAtOnce: each thread keeps charging (up to 16 × 20,000 streams, failing after 60 s) until both have charged 20,000, so their charges certainly overlap; the budget must hold the sum. A non-atomicChargemutant is caught in 10 of 10 runs. Also run under TSan (standalone build, 3 runs, no reports)CommandBufferPool,CreateReplayPool,BorrowReplayPool;EncodedandRetirecarry the worker index.SingleExecutorcreates its pool on its own threadSingleExecutorOwnsItsPoolAndThread,ReplayPoolCreationDoesNotLeakFailureLatch,WaitObservingFailure;WaitSerial,WaitSerialForandSynccheck the latch every 100 ms slice. A submit that loses the device latches; any other refused submit gives its serial back to the next batch and the recorder carries on, unless a newer batch was already sealed behind it, which latchesFailureReachesSerialWaiters;agc_driver_recorder(deferredBatchTests: the waiter on a failed replay; the waiter on a refused submit, which ends when the next batch completes that serial; the waiter on a refused batch with a newer one sealed behind it, which sees the failure)VK_ERROR_DEVICE_LOSTthe recorder waits for the device to go idle, then callsDeviceIdleAfterLoss;GpuDoneis ignored after a loss, so nothing is recycled before the idleDeviceLossHoldsResourcesUntilTheDeviceIsIdle;agc_driver_recorder(sealed and direct device loss)WorkBudget: admission refuses at 16 outstanding deferred batches (open to retirement) or at 64 MiB charged, and the recorder opens a direct batch instead; at 4 batches encodingChoosesays direct. Each stream is capped at outstanding bytes / outstanding batches (4 MiB), checked before a chunk is charged; a command that would pass it demotes the streamBudgetBoundsWorkThroughRetirement,AdmissionOpensDirectInsteadOfWaiting,StreamByteCapDemotesTheBatch: charged bytes stay at or under the cap after every append, and one command larger than the remaining cap demotes with nothing charged for it, with and without a prefix. Mutants caught: no cap check, no pre-check, and a check after chargingrealCommandsbelong to each recorder. Thunks keep 8 slots per command; past them, the keyed thunk resolves through a registry owned per device and keyed by the loader dispatch keyEntryPointsBeyondTheSlotsAreKeyedByDevice: two devices past the slots route to their own entry points, an unregistered device's buffer throws, a conflicting entry point on one device throws, a forgotten device's key can be reused, a stream handle still streams, and 200 create and destroy cycles of distinct devices leave the storage at the peak of 2 live devices. A reader on device A's buffer races a writer cycling forget A, register B, forget B, register A on the same node for 2 s: no call reaches B and storage stays at the peak. Mutants caught: keyed thunk replaced by slot 0,ForgetCommandDevicekeeping entries, a conflict accepted, no node reuse, and no version recheck (10 of 10 runs)Submit; moving it off the drawing thread is Nesyth's #22190Streamer<CmdPushDescriptorSetKHR>deep-copies eachVkWriteDescriptorSetand its image, buffer or texel-view array by descriptor type; demotes onpNext(inline uniform blocks, acceleration structures) or an uncopyable type; behindAPS5_NO_STREAMED_PUSH_DESCRIPTORS, on by defaultSpecializedStreamersKeepEveryArgument(5 writes over all three array kinds, with garbage in the ignored pointers, every caller struct overwritten with 0xA5 before replay),PushDescriptorsDemoteOnlyWhatTheyCannotCopy(inline uniform block, acceleration structure, mutable type, switch off). Mutant: buffer infos not copied is caught atCmdPushDescriptorSetKHRagc_command_resolver_sitesfails on avkCmdname outside the list, andEveryListedCommandStreamsfails on a listed command without a streamerEveryListedCommandStreams; fidelity covers 27 specialized streamers in 31 calls. Mutant: thevkCmdBindShadersEXTstreamer removed fails with "vkCmdBindShadersEXT is listed but has no streamer"This is the complete stream API for the encoder pool: every recorded command streams, demotion is limited to
pNextchains, uncopyable descriptor types and the byte cap, outstanding work is bounded in batches and bytes, and the resolver has no fixed global limit. No further stream work is needed for batch encoding. Order: #17943, #18029, this PR, then Nesyth's batch encoding on #22190.Credit: the deferred batch encoding, async submit and stream-handle thunk design is Nesyth's (#18173).
Tested
The runs below are on
055f2959feeor a commit with the same tree, unless marked as on the head. Since then,94af04a7baachanged only test mocks (fake command-buffer handles no longer carryCommandStream's tag bit), and the head4c5b2394f72splitsRecorder::SubmitintoSealand a queue step; its runs are under "Seal and queue split" below.Linux, llvmpipe:
agc_command_thunks,agc_command_thunks_direct_cost,agc_command_resolver_sites,agc_sealed_batch,agc_driver_recorder,agc_driver_recorder_record_inline,agc_streamed_segments,agc_driver_streamed_mesh_arguments,agc_runtime_switches, the threeagc_stream_guard_*death tests and the fiveagc_pipeline_cache_allocation_*. Everything else passes in every job (agc_driver_streamed_mesh_argumentsskips on the sanitizer runners), andagc_driver_recorderandagc_driver_recorder_record_inlinefail, with no sanitizer reports. On the Linux gate and under ASan and TSan both stop atvertexWindowMirrorTests("a kept vertex window was not mirrored"), before their encoder cases; on Windows both stop at "an unchanged draw input was copied again", asagc_driver_recorderdoes on base. This ismain's failure: fork CI failsagc_driver_recorderthe same way on baseb412486d3e, and #20831 fixes it.ASAN_OPTIONS=detect_leaks=0) withAPS5_NO_INPUT_MIRRORS=1, both recorder tests run to the end and pass, and so doesagc_driver_recorderwithAPS5_ENCODE_THREAD=1.agc_sealed_batchandagc_command_thunks, 3 runs each, no reports (about 870k racing keyed lookups per run).ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation) ran onef9e679b761, the commit that adds the last streamers; the commits after it change only the byte-cap check, the resolver registry and tests. The layer loads in every run, andagc_driver_recorder,agc_driver_recorder_record_inline,agc_streamed_segmentsandagc_driver_streamed_mesh_argumentsreport no VUID. Against basefff1677881a(run on80d642ce25a), this PR adds no VUID: both show the same device-creationVUID-VkDeviceCreateInfo-pNext-pNext, andagc_driver_native_depth_clearsthe same 6VUID-vkCmdDraw-None-07629on both.Each fix below has a test that failed before it:
VK_ERROR_DEVICE_LOSTfollowed by a demoted batch: "a direct batch reached vkQueueSubmit after the device was lost";WaitSerialon the serial of a batch whose replay fails, on a real timeline semaphore: "a wait on the serial of a batch whose replay failed did not end";Syncafter a failed fence wait now expects #20066's behaviour (agc_recorder_batch_fencesFailedWait: the batch it did not reach stays in flight and unsettled, one device idle, none on device loss); draining every batch instead fails it in all three modes. Teardown with a wait that fails inside~Recorder: with oneSyncthere, "a sealed batch was destroyed before the GPU released it";agc_driver_host_import_lifetime): with the old latch the next copy inherits the error;GpuDonegives "a sealed batch was destroyed before the GPU released it". UnderAPS5_RECORD_INLINEthe deferred case does not run and says so;Other tests and the mutants they catch:
resolveImageView, zeroed barrier dependency flags;APS5_DIRECT_BATCHESgives a direct batch and the next batch defers again; a throw underUnwindGuardpoisons the batch,Submitrethrows it and the next batch replays; apNext-chained barrier demotes, later calls record directly and the demotion is counted by name; a failed replay is not submitted, its completion does not run, and the nextSubmitalso throws without submitting; a failed prefix replay during demotion refuses the batch with no submit and frees every command buffer (mutant: no free of the poisoned stream's buffer gives "1 still allocated");Submit: removing the poison checks fails with "the poisoned batch was replayed", removing the latch check with "a batch after a failed replay was submitted", and swallowing the replay error with "a batch whose replay failed reached vkQueueSubmit" (the test's submit wrapper refuses to reach the driver while no submit is expected); aTryOpenthat never refuses times outagc_sealed_batch; a direct batch withoutlatch.Failleaves a wait on the failed serial running forever;StreamedCommands()(mutant: a direct batch without its table, "did not take the driver's command table");agc_command_thunks_direct_costis a gate: it times productionContext::ForBatch(typed) andContext::Resolved(thunk) against a raw table call, in rotating order over 21 rounds, and fails when the typed overhead is more than three quarters of the thunk's where the thunk adds at least 0.5 ns, and more than the thunk's own plus 0.1 ns where it adds less (skipping when the thunk adds under 0.2 ns, and only reporting under ASan and TSan). On fork CI's EPYC 7763 the thunk adds about one cycle (+0.27 to +0.32 ns) and the typed call the same, so only the second limit applies there. Mutant (ForBatchalways takes the fallback): fails 3/3. The check that a batch's table was built against the context's table isContext::BatchFor, made once where a batch is looked up (CommandState::FunctionsForand theCommandStatemethods), soForBatchitself stays a null check. A version that compared tables insideForBatchon every command failed this gate on fork CI's EPYC 7763; withBatchFor, Release g++ -O2 on 4 vCPU, 6 interleaved rounds, typed adds +0.14 to +0.30 ns over raw, against +0.62 to +0.65 ns with the per-command compare and about +0.0 ns before the table check existed. Mutant (BatchForignores the table):agc_command_thunksfails;agc_command_resolver_sitesfails when aCommandStatesetter orrecordDrawCommandsImplresolves a command outside the batch's table or passesForBatchanything butfunctionsorcontext.BatchFor(functions)(mutants: aSetScissorthroughResolved,ForBatch(nullptr, ...), and aCommandStatesite throughBatchFor(nullptr)), and when the thunk is removed from the AMD marker lookup.GTA V (PPSA04263, content 01.011.001), Windows 11 (10.0.26320), RTX 3080 (PCIe Gen4 x16), NVIDIA 621.24, Ryzen 7 5800X, 3840x2160, Defender real-time protection on. city-franklin-house save, standing still; each window is
APS5_TRACE_SECONDS=92:30, 30 s starting 92 s into the boot, after the scene reaches its standing point (86–88 s), with no other trace or profile switch. Warm shader caches, one warm-up per build, and every run passed the machine-quiet check. Both arms carry the same m14561 layer (#20845 and #14561, without which GTA aborts on dithered alpha-to-coverage). The base arm is #18029 merged withmainof 2026-11-17, and the PR arm is that plus exactly this PR's diff (same patch-id).tools/trace_digest.pysummary lines, one boot per arm:**seconds 92:30** from present 2485: 264 presents, frame p50 112.1 / p90 117.8 / p99 151.2 / max 171.4 ms, GPU busy 27.0 ms per present**seconds 92:30** from present 2469: 272 presents, frame p50 106.7 / p90 114.1 / p99 186.3 / max 302.0 ms, GPU busy 26.9 ms per presentAPS5_ENCODE_THREAD=1: frame p50 110.8 / p90 122.4 / p99 189.7 ms, 261 presents.Graphics.Draw119 ms on base, 233 ms here). Our later spikes are frames of 170–256 ms with no large traced slice inside them. One boot per arm cannot tell whether either differs between the arms.APS5_DIRECT_BATCHES: 120.3 ± 2.5 against 125.2 ± 2.1 ms/frame, a difference of +5.0 ± 3.3 ms, so no clear effect;APS5_NO_STREAMED_PUSH_DESCRIPTORS: 116.7 ± 1.6 against 116.3 ± 1.3 ms/frame, −0.4 ± 2.1 ms, no effect.APS5_PROFILE_DRAW=1, untimed boot), per 10 s: about 7.6k deferred and 0.7k direct batches (all opened direct because admission refused them), 0 demoted, 0 poisoned and 0 failed replays. Over the boot:[recorder] batches: 91984 deferred, 8093 direct (8093 refused by admission), 0 demoted (by command/sType: none), 0 poisoned; 91983 replayed, 0 replays failed.Seal and queue split (head
4c5b2394f72):agc_sealed_batch,agc_driver_recorder,agc_driver_recorder_record_inline,agc_driver,agc_command_thunksand the kept-bytes tests. No VUIDs on either side, and every failing test also fails on baseb412486d3e. On the Linux gate and under ASan and TSan, the 2 recorder tests stop atmain's kept-vertex-window failure described above. On Windows they stop at "an unchanged draw input was copied again", which base gives foragc_driver_recordertoo, andagc_driver_storage_flush_orderingfails on both sides.agc_driver_recorder_record_inlineis new, so the run's report counts its failure against the change, but it runs the same cases asagc_driver_recorder. ASan reports nothing. TSan reports 54 races inagc_driver, in its label-polling tests (tests/Submit.cpp) andPm4::WaitSatisfiedUnchecked; the previous head94af04a7baagives the same 54 at the same sites (run).94af04a7baaagainst the head, both with the m14561 layer and neither merged withmain, so their absolute numbers are not comparable with the pair above. The scene reached its standing point at 90.6 s (previous head) and 87.2 s (head), so the92:30window starts 1.4 s and 4.8 s after it.**seconds 92:30** from present 2455: 216 presents, frame p50 130.9 / p90 152.5 / p99 289.0 / max 324.4 ms, GPU busy 28.0 ms per present**seconds 92:30** from present 2459: 217 presents, frame p50 131.0 / p90 145.8 / p99 298.3 / max 305.0 ms, GPU busy 27.3 ms per presentFixes and
mainre-merge (head07c9482420f):vkCmdResolveImageis thunked and streamed, and a submit that queued nothing carries on (above). ThenSyncstops at the first failed wait, the typed-path check moved toContext::BatchFor, and a device-lost finish test.mainof 2026-11-19, which brings #22465:Recorder::foldSamplestakesmain's newblocksparameter and keeps this branch's body (batch.commands, no encoder quiesce). ThreeENVIRONMENT.mdrows that an earlier merge here dropped (APS5_NO_ADAPTIVE_ENCODER,APS5_QUIESCED_SEGMENTS,APS5_NO_RECORD_ENCODER, still read by #18029) are restored.mainmerge (74f5b8692d; the head adds onlymaina4b1bce2a6..711ab41a6e, which touches no AgcDriver file): Linux passes 85 of 85 with no VUIDs. Windows passes 84 of 85, and the one failure,agc_driver_frame_replay_cold_pipelines, also fails on basea4b1bce2a6. TSan fails the same 12 tests (agc_driver_frame_replay_*andagc_driver_host_import_lifetime) asmaina4b1bce2a6does (run), on races inrestoreGroup'smemcpy,Pm4.cpp:690and the test harness.VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation(ASAN_OPTIONS=detect_leaks=0,APS5_NO_INPUT_MIRRORS=1):agc_command_thunks,agc_command_thunks_direct_cost,agc_command_batch_failure,agc_command_batch_fence_failure,agc_driver_recorder,agc_driver_recorder_record_inline,agc_recorder_batch_fences,agc_sealed_batchand the threeagc_driver_pipelined_sample_dumptests pass, and so doesagc_command_resolver_sites. The layer loads; the only VUID is the device-creationVUID-VkDeviceCreateInfo-pNext-pNextin the sample-dump tests, from the same device setup as on #18029.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-20T10:53:40Z.
Review: COMMENTED
Reviewed — comments
The prepared description claims a broad sealed-stream change, but this review did not read every reviewed file or run checks, so the evidence does not support a formal decision.
What I ran
Head:
07c9482420fcd6879dae599c6c10397f3de0fcab. I read the prepared description, commit list, manifest and the first 300 lines of the diff. I also inspectedCommandStream.cpp,SealedBatch.cpp,SealedBatch.hppand the changed-file listing. I did not run commands or tests.Results
Findings
Blocking
None identified in the code inspected.
Non-blocking
No specific code finding. The review is incomplete, so it cannot establish that the change is sound across all changed files.
Not verified
The prepared description and manifest were read;
diff.patchwas read only through line 300 of 8,051. Repository code read:Graphics/src/CommandStream.cpp,Graphics/src/SealedBatch.cpp, andGraphics/include/SealedBatch.hpp. The changed-file listing also showedExecution/src/VulkanDevice.cpp,Graphics/src/GuestBufferMemory.cpp,tests/Graphics.cpp, andtests/Recorder.cppexcluded from the review folder; those files were not read through the reader. Most other listed changed files were not read. No tests or checks were run, and the stated CI and local test results were not independently verified.To get this to a good state
Nothing is required. Optional: complete the review of the remaining changed code and run the relevant checks before making a formal review decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T21:46:50Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the review evidence supports merging, with one optional note below.
What I ran
Reviewed head
5f39dbee426169ed7ea9df8d6e24e8e28da87fd5. No build or tests were run in this review.Results
Findings
Blocking
None.
Non-blocking
Recorder::Submitqueues and waits for every sealed batch before returning. The stream and replay API can support later asynchronous submission, as described, but this change does not yet remove the submit-side replay wait. This is consistent with the stated scope; consider keeping the API limitation prominent for callers planning to use it for asynchronous submission.Recorder.cpp:5002.Not verified
The full changed-file set was not read. Specifically, files reviewed in the manifest but excluded from this review include
Execution/src/VulkanDevice.cpp,Graphics/src/GuestBufferMemory.cpp,tests/Graphics.cpp, andtests/Recorder.cpp. I also did not inspect every included changed file or rerun any author-reported tests, sanitizer jobs, benchmarks, or validation-layer runs. Findings are limited to the inspected code. The review bundle’sfiles.jsonwas not available; excluded files were checked using the review directory listing.To get this to a good state
Nothing is required. The async submission limitation is an optional scope note.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T03:24:26Z.
Review: COMMENTED
Reviewed — comments
The review is incomplete because several changed files and added lines were not read, so a formal merge decision is not justified.
What I ran
Reviewed PR head
57bd01b6ae1a9fc03344a8bffd4c3229e8f2202busingrepo_read.pyfor the prepared artifacts and selected source ranges. No tests or build commands were run.Results
Findings
Blocking
None verified in the code inspected.
Non-blocking
None.
Not verified
The description and commits were read, along with selected ranges from
CommandStream.hpp,CommandStream.cpp,SealedBatch.hpp, andSealedBatch.cpp, and the beginning ofdiff.patch. The changed lines in the remaining files were not reviewed. In particular,VulkanDevice.cpp,GuestBufferMemory.cpp,Graphics.cpp, andtests/Recorder.cppwere excluded from the prepared folder and not read through the repository reader. No tests, builds, or runtime checks were performed. The claims in the PR description therefore remain unverified.To get this to a good state
Nothing is required. Complete the changed-line review and run the relevant checks before making a formal merge decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T13:42:01Z.
Review: COMMENTED
Reviewed — comments
The review is incomplete, so I cannot make a formal merge decision; the author should address the review gaps before relying on it for approval.
What I ran
No commands or tests were run. I inspected the prepared diff and selected source ranges at head
9bb137b51439a74834686f023f69e3170a9e1441; no merged preview was checked.Results
Findings
Blocking
None verified.
Non-blocking
No code finding established from the limited inspection.
Not verified
I read
review/description.md,review/commits.md,review/manifest.json, the first 300 lines ofreview/diff.patch, and selected ranges ofGraphics/src/CommandStream.cpp,Graphics/src/SealedBatch.cpp, andGraphics/src/Recorder.cpp. I also searchedGraphics/src/CommandThunks.cppandreview/diff.patchfor relevant symbols and changed-file entries. I did not read every file listed as reviewed in the manifest; notably, the full contents ofExecution/src/VulkanDevice.cpp,Graphics/src/GuestBufferMemory.cpp,tests/Graphics.cpp, andtests/Recorder.cppwere not read. Most changed files and most diff hunks were not inspected. No tests or CI claims were independently verified.To get this to a good state
Nothing is required for the inspected portions; the review needs broader source inspection and verification before a formal decision is justified.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T06:07:11Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this; the points below are optional.
What I ran
Inspected the prepared diff and targeted code at head
91a978c351b91ba17b95e617a179d04f78df976b. No build or test commands were run; the author-reported CI and local runs were not independently verified.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Read:
CMakeLists.txt,PerformanceTrace.hpp,VulkanDevice.cppat changed ranges,CommandList.hpp,CommandStream.hpp(read attempt returned no lines),Context.hpp,Recorder.hpp(via diff),SealedBatch.hpp,CommandStream.cpp,CommandThunks.cpp,Draw.cpp(via diff),Recorder.cpptargeted ranges,RuntimeSwitches.cpp,SealedBatch.cpp,CommandThunks.cpptests,SealedBatch.cpptests,test_command_resolver_sites.py,trace_digest.py,ARCHITECTURE.md, andENVIRONMENT.md(via diff). The prepared folder listedVulkanDevice.cpp,GuestBufferMemory.cpp,Graphics.cpp, andtests/Recorder.cppas excluded for size; they were only partially inspected where applicable. Other changed files and unreviewed ranges were not read. Build, tests, sanitizers, Vulkan validation, and console behavior were not run or independently confirmed.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T18:34:27Z.
Review: COMMENTED
Reviewed — no blocking findings
The core sealed stream and replay paths inspected at head
83e48d46d0f6aa5a813a1eccfea105603cd8a81eshow no verified blocking defect; review coverage is incomplete because several changed files were excluded by size.What I ran
repo_read.py.Results
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Not verified
Execution/src/VulkanDevice.cpp,Graphics/src/GuestBufferMemory.cpp,tests/Graphics.cpp, andtests/Recorder.cpp. Their changed hunks were visible in the prepared diff, but their complete changed-line sets were not read.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T08:55:36Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected code shows no verified blocking defect, but the review is incomplete because several changed files were not read and no checks were run.
What I ran
No commands or tests were run. I read the prepared description, commit list, manifest and diff, and inspected selected source ranges at head
44b170bac1bb298a7e70f86a0f234c0577e4f431through the repository reader.Results
Negative control
Not run; no tests were run.
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Sources
Inspected
CommandStream.cpp,CommandStream.hpp,CommandThunks.cpp(lines 1–360),Recorder.cpp(selected ranges includingSubmitandSeal),Recorder.hpp(lines 1–200),SealedBatch.cpp, andSealedBatch.hpp(lines 1–200), along with the prepared review documents and diff.Not verified
The full text of
VulkanDevice.cpp,GuestBufferMemory.cpp,Graphics.cpp, andtests/Recorder.cppwas excluded from the review folder and not read. Many other changed files were listed in the manifest but not inspected in full. No build or test results were independently confirmed.To get this to a good state
Nothing is required. Optional: complete inspection of the changed files not covered above and rerun the relevant checks on this head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T14:18:35Z.
Review: COMMENTED
Reviewed — comments
The prepared change is broad and material implementation paths and changed files were not fully inspected, so a formal approval or change request is not justified.
What I ran
No tests or build commands were run. I read the prepared description, commit summary, diff excerpts, and targeted repository code through the reader pinned to
1c1ecb68bec14d289809d6e4b753697488bb4058.Results
Findings
Blocking
None verified.
Non-blocking
None.
Not verified
The change spans 8,064 diff lines. I inspected excerpts covering stream allocation and replay, command thunk lookup, recorder sealing and submission, and Vulkan device registration. I did not inspect every changed hunk or every changed file. In particular, the prepared bundle marks
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp,core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp,core/libs/prx/libSceAgcDriver/tests/Graphics.cpp, and one additional changed file as excluded for size; only targeted lines ofVulkanDevice.cppwere read through the repository reader. No tests, builds, negative controls, hardware, or console behavior were verified here.To get this to a good state
Nothing is required. The review remains incomplete; inspect the unreviewed changed files and hunks before making a formal merge decision.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-26T14:23:27Z.
Review: COMMENTED
Actionable comments posted: 6
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-26T17:40:24Z.
Review: COMMENTED
Actionable comments posted: 7
33e95a66-18fe-4014-9715-91a79d723ed7Reviewing files that changed from the base of the PR and between
1c1ecb68beandcfedbb0edc.core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppIncluded 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-26T18:34:00Z.
Review: COMMENTED
Reviewed — comments
The review inspected the prepared patch and selected command stream and sealed batch code at head
cfedbb0edcfc25bbf41df8d730229208c77a945a; the review is incomplete, so a formal merge decision is not justified.What I ran
No repository commands or tests were run. I read the prepared description, commits, manifest, diff excerpt, and the listed repository files through
repo_read.py.Results
Findings
Blocking
None verified in the inspected excerpt.
Non-blocking
None.
Not verified
The full 8,000-line patch and most changed files were not inspected. Repository files read:
Graphics/src/CommandStream.cpp,Graphics/include/CommandStream.hpp,Graphics/src/SealedBatch.cpp(lines 1–300), andGraphics/include/SealedBatch.hpp. Review-folder documents read:description.md,commits.md,manifest.json, anddiff.patch(lines 1–200). The remainder ofSealedBatch.cpp, the remaining diff, and changed files listed inmanifest.jsonwere excluded from inspection, including files whose full text was not included in the review folder. No tests or prechecks were run.To get this to a good state
Nothing is required. Optional: complete inspection of the remaining diff and changed files, then run the relevant checks before making a merge decision.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-26T19:57:21Z.
Review: COMMENTED
Actionable comments posted: 5
56e8986f-31bd-4ac5-83c2-6ca075f6da2aReviewing files that changed from the base of the PR and between
cfedbb0edcand8983b233a5.core/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/PerformanceTrace.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/FrameReplayState.cppcore/libs/prx/libSceAgcDriver/tests/PerformanceTrace.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppdocs/dev/ENVIRONMENT.mddocs/dev/debt/libSceAgcDriver.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-26T20:01:19Z.
Review: COMMENTED
Reviewed — comments
The core stream and replay paths are readable, but several changed files remain unreviewed and no checks were run, so a formal decision is not justified.
What I ran
Reviewed head
8983b233a502a15f65ab9d1f8217f7762c68a532against the prepared diff. No build or tests were run; this environment provided the pinned reader and prepared bundle, not a command runner.Results
Findings
Blocking
None verified in the files read.
Non-blocking
None.
Not verified
Read
review/description.md,review/commits.md,review/manifest.json,review/diff.patch, plus these repository files:core/libs/prx/libSceAgcDriver/Graphics/src/CommandStream.cpp,core/libs/prx/libSceAgcDriver/Graphics/src/CommandThunks.cpp,core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp, andcore/libs/prx/libSceAgcDriver/Graphics/include/CommandStream.hpp.The manifest reports 57 changed files. The following changed files were excluded from
review/files/because they were too large, and were not read through the reader:core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp,core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp,core/libs/prx/libSceAgcDriver/tests/Graphics.cpp, andcore/libs/prx/libSceAgcDriver/tests/Recorder.cpp. The other 53 changed files were not inspected at the source level. The patch and description assert extensive test coverage, but those author-reported runs were not performed by this review.To get this to a good state
Nothing is required. Optional: complete the source review of the remaining changed files and run the relevant build and tests before requesting a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-26T23:34:29Z.
Review: COMMENTED
Actionable comments posted: 1
ec31cb94-bdb2-41e6-9940-745d037b559fReviewing files that changed from the base of the PR and between
8983b233a5andb97ac1e16b.core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hppcore/libs/prx/libSceAgcDriver/Graphics/include/SealedBatch.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppcore/libs/prx/libSceAgcDriver/Graphics/src/SealedBatch.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/SealedBatch.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T23:46:21Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this review; the implementation has one verified non-blocking accounting issue, and the excluded device source limits completeness.
What I ran
Reviewed head
b97ac1e16b84f0cb350c88437f1bbf462359ceb4using the prepared diff andrepo_read.py. No commands or tests were run.Results
Findings
Blocking
None identified in the code inspected.
Non-blocking
CommandStream::Demoteclears the chunks but leaveschargedunchanged.SealedBatchlater snapshots that value and only releases that many budget bytes at retirement, so freed stream storage remains charged until the batch retires. This can unnecessarily reduce budget available to other batches while the demoted batch is in flight. Seecore/libs/prx/libSceAgcDriver/Graphics/src/CommandStream.cpp:113andcore/libs/prx/libSceAgcDriver/Graphics/src/SealedBatch.cpp:102.Not verified
The change claims broad behavior and test coverage, but no tests or builds were run here.
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppwas excluded from the review folder; only its diff hunk was inspected. The full contents of that changed file and other changed files outside the targeted core paths were not reviewed. The demotion accounting concern is inferred from the inspected implementation; its runtime impact was not measured.Files read:
review/description.md,review/commits.md,review/manifest.json,review/diff.patch,core/libs/prx/libSceAgcDriver/Graphics/src/CommandStream.cpp,core/libs/prx/libSceAgcDriver/Graphics/src/CommandThunks.cpp,core/libs/prx/libSceAgcDriver/Graphics/src/SealedBatch.cpp, andcore/libs/prx/libSceAgcDriver/Graphics/include/SealedBatch.hpp, plus a targeted range ofcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppandcore/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp.To get this to a good state
Nothing is required. Optional: release or adjust the stream budget charge at demotion so it reflects the chunks that were freed.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T04:35:03Z.
Review: COMMENTED
Reviewed — comments
The review is incomplete: I read five changed files, and the remaining changed files and checks need review before a formal decision is justified.
What I ran
Reviewed the prepared diff for head
3e9e363bd58116adc7f0db1040782de3133b2ca3and read selected files through the pinned reader. I did not run tests or other checks.Results
Findings
Blocking
None verified in the files read.
Non-blocking
None.
Not verified
I read
CommandStream.hpp,CommandStream.cpp,SealedBatch.hpp,SealedBatch.cpp, and the first 280 lines ofRecorder.cpp. Of 43 changed files included in the review folder, the other 38 were not read; three additional changed files were excluded from the folder. The remainingRecorder.cpplines and excluded files were not inspected. No tests were run, so the description’s reported test results were not independently verified.To get this to a good state
Nothing is required for the code based on the files read. Complete review of the unread changed files and run the relevant checks before making a formal approval decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T19:27:47Z.
Review: COMMENTED
Reviewed — comments
The review is incomplete because most changed files were not inspected, so a formal approval or change request is not justified.
What I ran
Head:
a62bc15464153586bd7f3f2b09e1b49ebaa25cb0. No build or tests were run. I read the prepared description, commit list, manifest, diff, and targeted source ranges through the pinned repository reader.Results
Findings
Blocking
None identified in the inspected code.
Non-blocking
No specific code comments. The review is incomplete; most changed files were not inspected.
Not verified
I read
CommandStream.hpp,CommandStream.cpp,SealedBatch.hpp,SealedBatch.cpp, and the beginning ofRecorder.cpp, along with the prepareddescription.md,commits.md,manifest.json, and portions ofdiff.patch. The repository reader supplied the source ranges at the pinned head. The manifest lists many other changed files that I did not inspect, includingCommandThunks.cpp, most ofRecorder.cpp, tests, and documentation. The prepared manifest identifiesVulkanDevice.cpp,GuestBufferMemory.cpp,Graphics.cpp, andtests/Recorder.cppas excluded from the review folder due to size; I did not inspect those files through the reader. Runtime behavior, platform builds, and test results were not verified.To get this to a good state
Nothing is required. Optional: complete a review of the remaining changed files and run the relevant build and tests before relying on a formal merge decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-28T13:09:04Z.
Review: DISMISSED
Reviewed — changes requested
Changes are required before merge: make secondary command buffers recorded into streamed batches valid for replay.
What I ran
Reviewed head
6bc031b4c8084801dccd36e146a9487f2d462512. I read the prepared description, commits, manifest and diff, plus relevant command stream, thunk, recorder, device cleanup, draw and Vulkan source ranges throughrepo_read.py. No tests or builds were run.Results
Findings
Blocking
core/libs/prx/libSceAgcDriver/Graphics/src/CommandThunks.cpp:490streamsvkCmdExecuteCommandswithCountStreamer, which copies the array ofVkCommandBufferhandles and replays them as-is. When the batch is streamed, any secondary command buffer recorded against the tagged stream handle is not part of the replayed primary command buffer; the replayedvkCmdExecuteCommandsinstead refers to the original secondary buffer. Vulkan requires secondary command buffers executed by a primary to be recorded for the same command pool family and compatible render-pass context, and the current stream path does not provide a way to replay those secondary buffers or remap them. Ensure this command demotes before execution, or otherwise provide valid secondary-buffer recording and replay semantics, and cover the streamed path with a regression test.Non-blocking
None.
Not verified
No tests or builds were run. The full text was read for the changed files in the manifest marked included, plus relevant ranges of
VulkanDevice.cppandRecorder.cpp, whose full text was excluded as too large. Other excluded files and unrelated hunks were not read in full; no conclusions are made about them. The prepared description's reported test runs were not independently run.To get this to a good state
Make
vkCmdExecuteCommandsvalid for streamed batches and add a regression test that verifies the chosen handling of secondary command buffers.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-28T16:59:09Z.
Review: COMMENTED
Reviewed — no blocking findings
The change replaces the command encoder with sealed command streams; this review is incomplete because many changed files were not read, and no checks were run.
What I ran
Reviewed head
2dc7fc1ed9e96659e46f0c241ef314f787cc7637using the prepared diff and pinned reader. No commands or tests were run.Results
Negative control
Not run; no tests were run.
Findings
Blocking
None identified in the code read.
Non-blocking
None.
Not verified
Read
CommandStream.cpp,SealedBatch.hpp, the first 400 lines ofRecorder.cpp, the first 400 lines ofCommandThunks.cpp, the listed ranges ofSealedBatch.cpp, and the prepared description, commits, manifest, README and diff. The manifest lists 48 changed files; this review did not read every changed line. The full text was unavailable in the review folder forVulkanDevice.cpp,GuestBufferMemory.cpp,Graphics.cppandRecorder.cpp; the reader was used for portions ofRecorder.cpp. Other changed files and remaining changed ranges were not read. Tests, build results, CI claims and console behavior were not independently verified.To get this to a good state
Nothing is required. Optional: complete review of the unread changed files and run the relevant checks before making a formal merge decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-28T17:43:07Z.
Review: COMMENTED
Reviewed — comments
The prepared bundle and selected recorder, stream, thunk, and sealed batch code were inspected at head
a3096ce4f3099ea0ee6712637bcac0caeca90fbe; material parts of the change remain unread, so a formal decision is not justified.What I ran
CommandStream.cpp,SealedBatch.hpp,SealedBatch.cpp, and the first 180 lines ofCommandThunks.cppand first 260 lines ofRecorder.cpp.Results
Findings
Blocking
None established from the inspected code.
Non-blocking
No specific optional code issue established from the inspected ranges.
Not verified
The review is incomplete. The manifest lists 45 changed files; only the five implementation files/ranges listed above were read. In particular, I did not read the remaining changed lines in
CommandThunks.cpporRecorder.cpp, the changed lines in other included files, or any of the four changed files excluded from the review folder:VulkanDevice.cpp,GuestBufferMemory.cpp,Graphics.cpp,tests/Recorder.cpp, andtools/trace_digest.py. The description’s reported test and benchmark results were not independently run or verified. No claims are made about these unread changes.To get this to a good state
Nothing is required based on a verified defect. The author may treat this as feedback only; a formal approval requires completing review of the changed lines and relevant checks.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-01T02:16:09Z.
Review: COMMENTED
Reviewed — comments
I inspected targeted ranges at head
3a11863166b2e309d4bf9bb53fba34465c762aa3; the review is incomplete, so I cannot make an approval or request-changes decision.What I ran
Static source inspection only. No build, test, or merged-preview check was run.
The reader returned source ranges, but its audit-log write failed because the run is read-only.
Results
Negative control
Not run; no tests were run.
Findings
Blocking
No verified blocking defect in the portions inspected.
Non-blocking
None identified in the portions inspected.
Sources
Targeted source ranges were read from the pinned head, including CommandThunks.cpp, Recorder.cpp, and SealedBatch.cpp.
Read ranges also covered
CommandList.hpp,CommandStream.hpp,CommandStream.cpp,Context.hpp,Recorder.hpp,Draw.cpp,RuntimeSwitches.cpp,CMakeLists.txt,PerformanceTrace.hpp,PerformanceTrace.cpp,trace_digest.py, andtest_command_resolver_sites.py, plus changed ranges inVulkanDevice.cppandGuestBufferMemory.cpp.Not verified
files.jsonlists 48 changed files for review. I inspected only selected ranges; I did not read every changed line or inspect every listed file.VulkanDevice.cpp,GuestBufferMemory.cpp,tests/Graphics.cpp,tests/Recorder.cpp, andtools/tests/test_trace_digest.pywere unavailable infiles/; only changed ranges from the first two were returned by the reader. Behavior and coverage in the remaining uninspected files are not verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-01T14:03:58Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
34ddf73d353bae7aa277105d7beab592694a6dc1using the prepared review materials and selected head-file excerpts. I ran no tests or builds.Results
Negative control
Not run; no tests were executed.
Findings
Blocking
None identified in the inspected excerpts.
Non-blocking
core/libs/prx/libSceAgcDriver/Graphics/src/SealedBatch.cpp:28: If failures arrive out of order,FailureLatch::FailupdatesfailedSerialto the lower serial but keeps the prior error. For example, a replay failure at serial 2 followed by a submit failure at serial 1 leaves waiters receiving the serial 2 exception. Store the reason when the lower serial replaces the current failure. Pinned sourceSources
The failure-latch behavior above is based on the pinned source. The prepared description and test excerpts were also consulted; author-reported test results were not independently run.
Not verified
Of the 48 changed files listed as reviewed in
files.json, I read excerpts from 8:CommandStream.cpp,CommandStream.hpp,CommandThunks.cpp,Recorder.cpp,Recorder.hpp,SealedBatch.cpp,SealedBatch.hpp, andtests/SealedBatch.cpp. The other 40 changed files were not read. Full text was unavailable in the review folder forExecution/src/VulkanDevice.cpp,Graphics/src/GuestBufferMemory.cpp,tests/Graphics.cpp,tests/Recorder.cpp, andtools/tests/test_trace_digest.py; their changed hunks were not inspected. No tests, builds, or runtime behavior were verified.To get this to a good state
Nothing is required. The error-latch note above is optional follow-up.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-03T21:33:45Z.
Review: COMMENTED
Reviewed — no blocking findings
The prepared diff and selected stream and replay code were inspected at head
8fa09f381b577c20ef607703b0011d4258b7675b; the review is incomplete because full text for five reviewed files was not bundled and the pinned reader could not write its read log in this read-only run.What I ran
Inspected the prepared description, commits, manifest, diff, and selected bundled source text. The attempted
repo_read.pysource read could not complete because it tried to writereads.jsonl; no tests or negative controls were run.Results
Negative control
Not run; no tests were executed.
Findings
Blocking
None identified in the inspected portions.
Non-blocking
None.
Sources
Not verified
The files listed as reviewed total 48. Full bundled text was read for 3 repository files, with targeted excerpts inspected from
CommandThunks.cppandRecorder.cpp. Full text was unavailable forVulkanDevice.cpp,GuestBufferMemory.cpp,Graphics.cpp,tests/Recorder.cpp, andtools/tests/test_trace_digest.py; other reviewed files and the remaining changed code were not read. No behavior, test results, or author-reported runs were independently verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:01:04Z.
Review: COMMENTED
I followed the copies for push-descriptor image, buffer and view arrays through replay. The code only demotes the unsupported or chained push variants, while the debt fragment lists
vkCmdPushDescriptorSetKHRas a command that demotes. Please make the documented boundary match this head and keep the demotion-path fixture alongside the worker replay and poisoned-stream checks. The paired recorder and new sealed-batch tests are queued. I did not repeat the recording benchmark.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T10:10:42Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
45c9ad4aaa30209084f1cc4d75fc4c4b2fde419eusing the pinnedrepo_read.pyreader and the prepared review files. No tests or builds were run.Results
Negative control
Not run; a negative-control test would require compiling the changed C++ code.
Findings
Blocking
None identified in the inspected portions.
Non-blocking
None.
Sources
The targeted inspection covered the command stream, command thunks, sealed-batch replay, recorder submit path, and Vulkan device thunk registration at the pinned head: CommandStream.cpp, CommandThunks.cpp, SealedBatch.cpp, Recorder.cpp, and VulkanDevice.cpp.
Not verified
This was not a complete review of all 48 changed files. The following changed files were excluded from the prepared
files/folder because they exceeded its size limit:core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp,core/libs/prx/libSceAgcDriver/tests/Graphics.cpp,core/libs/prx/libSceAgcDriver/tests/Recorder.cpp, andtools/tests/test_trace_digest.py; only targeted VulkanDevice.cpp hunks were read through the pinned reader. Other changed tests and documentation were not fully inspected. Runtime behavior on a physical console and CI results were not verified.To get this to a good state
Nothing is required. Optional: complete review of the remaining changed files before treating this as a full review.
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.