perf(agc): record transfers in the encoder stream without waiting #18029
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/18029"
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-10T05:48:07Z.
What
Stops the drawing thread from waiting for the command encoder (#17943) when a draw records transfers. Ordering comes from the encoder's command stream instead of a drain. It also reports the encoder's posts, commands and waits in the trace summary.
vkCmdCopyBuffer,vkCmdUpdateBuffer,vkCmdCopyBufferToImage,vkCmdCopyImageToBufferandvkCmdClearColorImagecopy their region arrays, update bytes and clear colour into the chunk, like the other deferred calls. Before, they waited for the encoder and then called the driver directly. Vulkan copiesvkCmdUpdateBufferdata at record time, so copying it when the call is appended keeps the same contract.aps5-summary.jsonlline carries"encoder":{"posts","commands","waits","wait_ms_per_frame"}, summed across threads, andtools/trace_digest.pyprints them per interval.Encoder.waitwith the same span it is counted with.-, not zeros.Measured on the rk4 GTA V replay with every wait site tagged (diagnostic build, not in this PR): 840 waits per pass. 757 of them (90%, 94% of the wait time) were the drain before the occlusion segment's
vkCmdBeginQuery, which #17943 now removes. This PR removes the rest of the measured waits: 39vkCmdCopyBufferand 39vkCmdUpdateBufferper pass. Each wait was mostly wake-up latency: the backlog was the single chunk just posted, and the encoder was asleep at 38% of them.Tested
Head
ba4484b523merges #17943's head23b2b44946, which mergesmainat7085a08145a.ba4484b523: run 43755843152 ranmainand this head on the same runners.VK_LAYER_KHRONOS_validation1.4.363.1, layer loaded): 224 tests pass, 0VUID-.mainor come from it:agc_driver_recorderandagc_draw_input_reusefail on both sides. On devices where all memory is device-local (lavapipe, Intel UHD),main's draw-input reuse checks fail until #20831.agc_driver_recorder_record_inline(#17943) inherits that failure on this head.agc_storage_dcc_mip_writebackonce. It is the flaky test #19335 fixes. This PR doesn't touch storage DCC, and the test passed on #17943's run.agc_driver_command_encodergainsTransfersAndQueriesInAWindowNeverWait. With the encoder delayed 5 ms per chunk, four windows record a draw, every packed transfer and both query commands, then clear the input arrays. It requires zero waits and the inline order with the original values.agc_driver_command_encodergainsPackedRecordsSkipAFailedRecording(every packed transfer and query record in a failed recording's window reaches nothing; 42 of 42 commands skipped) andQueriesKeepOrderWithTheirRecording(begin and end queries around nested windows of two recordings stay in program order).agc_driver_command_encodergainsChunkPoolWaitsReachTheTrace. It holds a producer on the chunk pool with overlay totals on, and requires the tracedEncoder.waitcount and time to equal the encoder's ownwaitsandwaitNs. Before the fix it saw 0 traced waits against 2 counted. Two mutants, both killed: dropping the trace call (0 traced against 2), and tracing an empty span (8 traced against 8 counted, but 0 ns against 50 ms). With the fix it passed 3 runs of 3.agc_performance_tracechecks the encoder object: zero when nothing posted, and posts, commands, waits and wait time summed across threads.trace_digest:test_encoder_waits_without_posts_are_showncovers a wait-only interval, a measured-zero interval and an interval without encoder data (rows| 1 | 0 | 0 | 7 | 0.50 |,| 2 | 0 | 0 | 0 | 0.00 |and| 3 | - | - | - | - |). With only the zero and missing intervals there is no table.test_encoder_interval_counts_are_preservednow expects-for an interval without encoder data. Both failed before the fix. All 115 trace_digest tests pass after it.agc_encoded_segments,encodedSegmentFailureTest,discardedSampleTests) are in #17943 with the code they test.vkCmdUpdateBufferin a window (agc_driver_command_encoder); packed records still recorded when the recording failed (PackedRecordsSkipAFailedRecording, 42 of 42 recorded); a query reordered ahead of its recording's window (QueriesKeepOrderWithTheirRecording). With no mutant, the tests pass.The measurements below are history. They were taken before the occlusion-segment query encoding moved to #17943, so they measure that encoding and this PR's packed transfers together, and they were not re-timed on the current split. This PR's own share is the transfer waits: 78 of the 840 waits per pass in the wait-site table above.
Windows 11 (10.0.26320), Ryzen 7 5800X, RTX 3080, driver 621.14. Measured on
47bb8552ba, on #17943's head8e4b102155.Vulkan gate on
47bb8552baand58feec9e9c:ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest -R <#17943 pattern + new tests> -V, plain and withAPS5_DRAW_PIPELINE=1 APS5_PIPELINED_DRAWS=32 APS5_PIPELINE_DISPATCH=1: 67/67 and 67/67, 0VUID-in ctest and in the 6 replay subprocess logs, layer loaded.main(697b66b1e4,fb4fd08eda) ran 63/63 on the same pattern.Replay. The rk4 GTA V capture, #17943 (A) against #17943 plus this change (B), five pairs in A B B A order with split timers, passes 2-5 of
--repeat 5, 7,745 draws per pass. This ran on the change's first commit86ef8c1382ported onto the replay kit.DrawCommandsfell from 1.665 to 0.157 us/draw.APS5_PROFILE_DRAW=1): 669 -> 23 per pass, wait time 6.4 -> 0.66 ms per pass.8e4b102155and on47bb8552ba, each with #12568's headf3170d9611merged in for the capture's GPU-stored words (the only addition). Both: 3 of 3 frames identical to the capture's reference images,max_channel_diff0. The five-pair kit run was also pixel identical in every pass.Live GTA V (save
play1-first-autosave, standing, 3840x2160, windowAPS5_TRACE_SECONDS=235:30, same pipeline settings). One discarded warm-up boot per side, then A B B A, each a fresh boot with a preflight check:Graphics.Drawms/frame8e4b10215547bb8552ba47bb8552ba8e4b102155Pair deltas B minus A: -1.58 and -2.08 ms/frame mean frame time, and -1.70 and -2.31 ms/frame on the drawing thread's
Graphics.Draw. Both sides got faster between the pairs (a1 to a2 -5.8 ms), so the pairs, not the pooled means, carry the comparison. GPU busy is 33.1 to 33.3 ms per present on every run. A's build has no encoder counter, so the A columns are n/a.{"commit":"8e4b102155b6","dirty":false,"env":{"APS5_ADDRESS_COPY_MAX_MIB":"512","APS5_DRAW_PIPELINE":"1","APS5_DUMP_FRAMES":"80","APS5_DUMP_FRAMES_EVERY":"300","APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"","APS5_TRACE_SECONDS":"235:30","APS5_TRACE_SUMMARY_EVERY":"10","APS5_VIDEOOUT_TELEMETRY_DIR":""},"gpu":"NVIDIA GeForce RTX 3080","driver":"NVIDIA 621.14","os":"Windows 10.0.26320","cpu":"AMD Ryzen 7 5800X 8-Core Processor","cpu_threads":16,"memory_mib":32676,"title_id":"PPSA04263","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 235:30","first_present":4238,"ms":30124.099},"presents":242,"frame_ms":{"p50":123.364,"p90":130.708,"p99":147.960,"max":155.284},"gpu_busy_ms_per_present":33.324,"worker_busy_pct":{"queue worker 0x0":94.785},"top_phases_ms_per_frame":{"Driver.Packet":111.656,"Graphics.Draw":94.837,"Driver.Packet.draw":81.583,"Driver.Draw":80.951,"Graphics.Draw.draw_and_resource_release":73.427,"Driver.DrawFinish":70.688,"Driver.Draw.prepare":64.330,"Driver.DrawFinish.draw_enqueued":36.818},"owned_draw_counts":{"OwnedDraw.arm_attempt":726,"OwnedDraw.arm_blocks_requested":726,"OwnedDraw.arm_refused":726,"OwnedDraw.evicted_other":3487},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.973,"events_lost":1074193,"totals_full":false},"draw committer":{"events_full_after_s":11.832,"events_lost":409522,"totals_full":false},"draw finisher":{"events_full_after_s":16.589,"events_lost":210835,"totals_full":false}},"trace":"aps5-trace-8e4b102155b6-25856.json.gz"}
{"commit":"47bb8552bad2","dirty":false,"env":{"APS5_ADDRESS_COPY_MAX_MIB":"512","APS5_DRAW_PIPELINE":"1","APS5_DUMP_FRAMES":"80","APS5_DUMP_FRAMES_EVERY":"300","APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"","APS5_TRACE_SECONDS":"235:30","APS5_TRACE_SUMMARY_EVERY":"10","APS5_VIDEOOUT_TELEMETRY_DIR":""},"gpu":"NVIDIA GeForce RTX 3080","driver":"NVIDIA 621.14","os":"Windows 10.0.26320","cpu":"AMD Ryzen 7 5800X 8-Core Processor","cpu_threads":16,"memory_mib":32676,"title_id":"PPSA04263","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 235:30","first_present":4228,"ms":30109.766},"presents":245,"frame_ms":{"p50":121.889,"p90":127.766,"p99":149.942,"max":151.819},"gpu_busy_ms_per_present":33.186,"worker_busy_pct":{"queue worker 0x0":94.656},"top_phases_ms_per_frame":{"Driver.Packet":109.825,"Graphics.Draw":93.142,"Driver.Packet.draw":80.734,"Driver.Draw":80.115,"Graphics.Draw.draw_and_resource_release":71.980,"Driver.DrawFinish":69.809,"Driver.Draw.prepare":63.708,"Driver.DrawFinish.draw_enqueued":35.911},"owned_draw_counts":{"OwnedDraw.arm_attempt":735,"OwnedDraw.arm_blocks_requested":735,"OwnedDraw.arm_refused":735,"OwnedDraw.evicted_other":2638},"encoder":{"posts":756969,"commands":20469052,"waits":1970,"wait_ms_per_frame":0.073},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.928,"events_lost":1078274,"totals_full":false},"draw committer":{"events_full_after_s":11.500,"events_lost":420017,"totals_full":false},"draw finisher":{"events_full_after_s":16.294,"events_lost":216447,"totals_full":false}},"trace":"aps5-trace-47bb8552bad2-14984.json.gz"}
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-16T17:26:57Z.
Review: COMMENTED
Reviewed — comments
This review examined the command encoder and targeted recorder and trace-digest paths at head
7917c770717d02a92fd9ffb6c8dea7f09f82f8e4; broader coverage is incomplete, so a formal merge decision is not justified.What I ran
No tests or build commands were run. I read the prepared description, commit list, manifest, and diff, then used
repo_read.pytools to inspect selected files at the pinned head.Results
Findings
Blocking
None identified in the inspected code.
Non-blocking
Not verified
At the pinned head, I read all of
Graphics/src/CommandEncoder.cpp, and selected ranges ofGraphics/include/Context.hpp,Graphics/src/Recorder.cpp,Graphics/src/RuntimeSwitches.cpp, andtools/trace_digest.py. I also read the prepared review documents and diff. I did not read every changed file or every changed hunk. In particular, the full text ofExecution/src/VulkanDevice.cppandtests/Recorder.cppwas excluded from the review folder and not read throughrepo_read.py; other changed files and hunks remain unreviewed. No tests, builds, CI runs, or console behavior were verified by me. The author-reported test and performance results in the description were not independently run.To get this to a good state
Nothing is required. Optional: complete inspection of the remaining changed files before making a formal merge decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T03:09:44Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the inspected implementation and tests support merging, and I could not run checks in this read-only review environment.
What I ran
Reviewed head
fff1677881a9cc9ea4f2d9d9516a3726cc7500eeusing the prepared diff andrepo_read.pyat the pinned head. No commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Sources
The review bundle’s
diff.patchand the targeted files listed below; behavior claims are based on those inspected sources.Not verified
Builds, test execution, sanitizers, and physical-console behavior were not verified.
VulkanDevice.cppandtests/Recorder.cppwere excluded from the review folder; targeted changed regions inVulkanDevice.cppwere read throughrepo_read.py, buttests/Recorder.cppwas not read. Other full texts were included in the bundle but were inspected only where needed; no claim is made about uninspected portions.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T16:08:37Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the review found no verified blocking defect in the inspected code.
What I ran
Reviewed head
a6a36b0b70ba14875265f56e9a86cecd4c87241eusing the prepared diff andrepo_read.pyfor targeted source ranges. No build or tests were run in this review.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The full text of
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppandcore/libs/prx/libSceAgcDriver/Graphics/tests/Recorder.cppwas excluded by the review bundle; only the changed VulkanDevice ranges and targeted recorder-test diff were inspected. Other changed files were listed in the manifest but not all were read. No local build, tests, hardware, or console behavior were verified. The prepared diff excludes lockfiles, minified files,dist/,build/, and.svgfiles.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T14:23:59Z.
Review: APPROVED
Reviewed — looks good
The reviewed change at
d161c08eea234e64294a48c581ee9733414b97b2is supported by the inspected implementation and reported CI results; no checks were run in this review session.What I ran
Read the prepared description, commit list, manifest, and patch; inspected selected encoder, recorder, dispatch, and trace-digest source ranges at the pinned head. No commands or tests were run.
Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The full text of
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppandcore/libs/prx/libSceAgcDriver/tests/Recorder.cppwas excluded from the review folder; only selected source ranges were inspected where relevant. Other changed-file text inreview/files/was not read in full. No tests were run. CI and performance figures in the PR description were not independently verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T21:45:52Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected encoder and trace changes show no verified blocking defect; the review is incomplete because two changed files were not read in full.
What I ran
4e294b821076eded9b367c5699beaf86dc90d4c7using the prepared diff and pinned reader.Results
Findings
Blocking
None verified in the code inspected.
Non-blocking
None.
Not verified
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppandcore/libs/prx/libSceAgcDriver/tests/Recorder.cppwere not read.review/description.md,review/commits.md,review/manifest.json,review/README.md, portions ofreview/diff.patch,CommandEncoder.hpp,CommandEncoder.cpp,Recorder.cpp,Resources.cpp, andtools/trace_digest.py. Excluded by size: the two files listed above. No other excluded-file list was available.To get this to a good state
Nothing is required. The optional point is to complete review of the uninspected changed files before relying on this review as a complete assessment.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T06:00:50Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the reviewed code and supplied CI results support merging.
What I ran
Reviewed head
291d539c143bf78ef54e49b1102f41a3f24b11ecusingrepo_read.pyagainst the prepared diff and pinned repository files. No tests or builds were run in this review.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The full review was incomplete, so this does not justify approval. The manifest lists 2,718 changed files as reviewed; the full text of 2 was excluded as too large:
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppandcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp. I read only targeted ranges from those files. I did not read all other reviewed files or every changed hunk, run the reported CI checks, or verify the author-reported performance measurements and console behavior.To get this to a good state
Nothing is required. Optional: complete review of the remaining changed files and run the relevant checks on this head before relying on the reported results.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T18:36:06Z.
Review: COMMENTED
Reviewed — comments
The review is incomplete because I did not inspect every changed file or run the reported checks on this head.
What I ran
Read the prepared review bundle for head
71dd144e9f4fac6e8f2889f72cbee0952e7d9ba6and used the pinned repository reader for targeted source ranges. No shell commands or tests were run.Results
Findings
Blocking
None verified in the code inspected.
Non-blocking
The review does not support a formal decision yet: the change is broad, and the targeted inspection did not cover every changed file. The patch adds encoder recording and tracing paths (for example,
core/libs/prx/libSceAgcDriver/Graphics/src/CommandEncoder.cpp:319andcore/libs/prx/libSceAgcDriver/Execution/include/PerformanceTrace.hpp:792), but I did not complete a full audit of their callers and tests.Not verified
Read the bundle files
review/description.md,review/commits.md,review/manifest.json, andreview/diff.patch. Read targeted ranges fromCommandEncoder.cpp,Context.hpp,Recorder.hpp,Recorder.cpp,Resources.cpp,PerformanceTrace.hpp,trace_digest.py, andtest_trace_digest.py.The full texts of
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppandcore/libs/prx/libSceAgcDriver/tests/Recorder.cppwere excluded from the bundle as too large; I did not read them through the repository reader. I also did not read the full text of the other changed files. No tests were run, and the stated CI, mutant, replay, and console results were not independently confirmed.To get this to a good state
Nothing is required. Optional: complete review of the unread changed-file portions and run the relevant checks on this exact head before making a formal approval decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T12:22:45Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
fb057ec00c32a271356979d42fe1bc98ba0c1743with the prepared diff andrepo_read.py; no tests or builds were run.Results
Findings
Blocking
None in the code inspected.
Non-blocking
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppandcore/libs/prx/libSceAgcDriver/tests/Recorder.cppfrom the prepared file bundle. I inspected relevantRecorder.cppranges through the reader, but did not read either file in full.Not verified
To get this to a good state
Nothing is required. Optional: include the oversized changed files in a reviewable form so their full changes can be inspected.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-26T17:54:47Z.
Review: COMMENTED
Actionable comments posted: 3
cd4c488d-a9f6-4e2f-b844-b12af57c1cb4Reviewing files that changed from the base of the PR and between
9f52918eb0and8b29d057c7..github/workflows/sanitizers.ymlcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/PerformanceTrace.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/CommandEncoder.hppcore/libs/prx/libSceAgcDriver/Graphics/include/Context.hppcore/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hppcore/libs/prx/libSceAgcDriver/Graphics/include/RuntimeSwitches.hppcore/libs/prx/libSceAgcDriver/Graphics/src/CommandEncoder.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Resources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cppcore/libs/prx/libSceAgcDriver/tests/AllocationFailure.cppcore/libs/prx/libSceAgcDriver/tests/EncoderGuards.cppcore/libs/prx/libSceAgcDriver/tests/PerformanceTrace.cppcore/libs/prx/libSceAgcDriver/tests/PipelineCacheFailures.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmakecore/libs/prx/libSceAgcDriver/tests/execution/CommandEncoder.cppcore/libs/prx/libSceAgcDriver/tests/execution/EncodedMeshArguments.cppcore/libs/prx/libSceAgcDriver/tests/test_encoder_bypass_sites.pydocs/dev/ARCHITECTURE.mddocs/dev/ENVIRONMENT.mddocs/dev/debt/libSceAgcDriver.mdtools/tests/test_trace_digest.pytools/trace_digest.pyIncluded 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-26T18:09:50Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the review covers the encoder, trace reporting, recorder integration, and build wiring, but does not cover every changed file or run tests.
What I ran
Reviewed head
8b29d057c7da4874c2ed661b83e9a7928da04b34. Read the prepared description, commits, manifest and diff; usedrepo_read.pyto inspect targeted repository code. No commands or tests were run.Results
Findings
Blocking
None identified in the code inspected.
Non-blocking
None.
Not verified
The complete changed-file set was not read. In particular, the changed
Graphics/src/Recorder.cpptest file andtests/Recorder.cppwere too large for the review bundle; only targeted portions ofGraphics/src/Recorder.cppwere read through the reader. The changedExecution/src/VulkanDevice.cppwas also excluded from the bundle; only its state declaration was inspected through the reader. Other changed files were not read in full. Tests and hardware behavior were not independently verified. The PR description reports CI and performance measurements; those are author-reported, not runs performed for this review.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-26T20:00:57Z.
Review: COMMENTED
Actionable comments posted: 4
45862929-8297-49aa-a429-4c72e60f1482Reviewing files that changed from the base of the PR and between
8b29d057c7and538b73bd79.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/Context.hppcore/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/PerformanceTrace.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppdocs/dev/ENVIRONMENT.mddocs/dev/debt/libSceAgcDriver.mdtools/tests/test_trace_digest.pyIncluded 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-11-26T20:09:20Z.
Review: COMMENTED
Reviewed — comments
The reviewed code has no verified blocking defect, but two changed files were excluded and no checks were run here, so a formal decision is not justified.
What I ran
Read the prepared diff for head
538b73bd79433124ef86feaf5d37079dc82671a2, plus targeted code at that head through the pinned reader. No build or tests were run; CI and replay results in the PR description are author-reported.Results
Findings
Blocking
None verified in the code read.
Non-blocking
None.
Not verified
The full contents of
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppandcore/libs/prx/libSceAgcDriver/tests/Recorder.cppwere excluded as too large for the review folder and were not read through the reader. The remaining changed files were included, but not all were read in full. Build, test, sanitizer, and physical-console behavior were not independently verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T21:48:12Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the implementation and targeted context inspected support the stated encoder ordering and trace reporting behavior.
What I ran
No commands or tests were run. Review artifacts were inspected for head
3bbc909092a8651d1f9f1abdb4963bbc1bb1d221; no merged-preview check was performed.Results
Findings
Blocking
None identified in the code inspected.
Non-blocking
None.
Not verified
The change spans many files. I read the description, commits, manifest, patch excerpts,
CommandEncoder.cpplines 200–355 and 500–850,Recorder.cpplines 1420–1540 and 2100–2175, andtrace_digest.pylines 630–645. I did not read every file listed as reviewed in the manifest, so this is not a complete verification of the patch. In particular, full contents ofVulkanDevice.cppwere excluded from the review folder and were not read through the repository reader. Tests and CI results in the description are author-reported, not runs performed here.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-26T22:29:30Z.
Review: COMMENTED
Actionable comments posted: 1
5db55877-47cc-4508-a9e8-86bd93c8c0b4Reviewing files that changed from the base of the PR and between
3bbc909092andfd7d915449.core/libs/prx/libSceAgcDriver/tests/Recorder.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-26T22:35:13Z.
Review: COMMENTED
Reviewed — no blocking findings
The reviewed source ranges show no verified blocking defect, but the review is incomplete because many changed files were not read and no checks were run.
What I ran
Read the prepared description, commits, manifest, diff, and targeted source ranges through
repo_read.pyat headfd7d9154494a763be07a7b253d70b2a5427ef009. No tests or builds were run.Results
Findings
Blocking
None verified in the source ranges read.
Non-blocking
None.
Not verified
The review folder lists 24 changed files; I read the description, commits, manifest, diff and targeted ranges of
Graphics/src/CommandEncoder.cppandGraphics/src/Recorder.cpp. I did not read every changed file or every changed hunk.Execution/src/VulkanDevice.cppandtests/Recorder.cppwere excluded from the review folder as too large; their relevant source was not read. Tests, builds, runtime behavior, and the author-reported CI and performance evidence were not independently verified.To get this to a good state
Nothing is required. Optional: complete the review of the remaining changed files and run relevant checks before relying on a formal approval.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T01:03:45Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change based on the runtime paths inspected; several changed files remain unreviewed, so the review is incomplete.
What I ran
Reviewed head
021cb6c528fde4b3941370a3a7c47a2d329efdfbfrom the prepared diff. I ran no build or tests. The description reports CI and test results; those were not run by me.Results
Findings
Blocking
None in the code inspected.
Non-blocking
None.
Not verified
The full text of
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppandcore/libs/prx/libSceAgcDriver/tests/Recorder.cppwas excluded by the review bundle; I read only targeted ranges ofVulkanDevice.cpp. Other changed files were present but not all were read, including parts ofRecorder.cpp, the encoder tests, and documentation. Therefore this review does not establish that every changed file is sound. I did not run commands, build, tests, or console checks.Files read:
review/description.md,review/commits.md,review/manifest.json,review/diff.patch,.github/workflows/sanitizers.yml,core/libs/prx/libSceAgcDriver/CMakeLists.txt,core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp(targeted ranges),core/libs/prx/libSceAgcDriver/Execution/include/PerformanceTrace.hpp,core/libs/prx/libSceAgcDriver/Graphics/include/CommandEncoder.hpp,core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp,core/libs/prx/libSceAgcDriver/Graphics/src/CommandEncoder.cpp,core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp(targeted ranges),core/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cpp,core/libs/prx/libSceAgcDriver/tests/EncoderGuards.cpp,core/libs/prx/libSceAgcDriver/tests/execution/CommandEncoder.cpp, andtools/trace_digest.py. Excluded by the bundle:core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppandcore/libs/prx/libSceAgcDriver/tests/Recorder.cpp(too large for the review folder).To get this to a good state
Nothing is required. Optional: complete review of the remaining changed files and run the relevant checks on this head before relying on the approval.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T20:00:48Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected portions show no verified blocking defect, but the review is incomplete because two changed files were not read in full and tests were not run.
What I ran
Reviewed head
48d0b569a2519f8f4c14d50a973aa0ab22c41fe0usingrepo_read.pyreader operations. No tests or builds were run.Results
Findings
Blocking
None verified in the inspected code.
Non-blocking
Not verified
The changed files
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppandcore/libs/prx/libSceAgcDriver/tests/Recorder.cppwere not read in full. Other large changed files, includingcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp, were only sampled. Files read included the description, commits, manifest, diff, changed-file listing, and targeted ranges inCommandEncoder.hpp,CommandEncoder.cpp,Recorder.cpp, andRuntimeSwitches.cpp. No build, tests, sanitizer run, or console behavior was verified.To get this to a good state
Nothing is required. Optional: complete the review of the unread and partially read changed code, then run the relevant tests.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-28T10:34:26Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the review is incomplete because two changed files were not read in full and no checks were run.
What I ran
Reviewed the prepared diff at head
af8f183a3361659cfb04d9b45c0650f9a5d4383aand inspected targeted source ranges with the repository reader. No build or tests were run.Files read:
review/description.md,review/commits.md,review/manifest.json,review/diff.patch; changed files read in full or by their added-line hunks included.github/workflows/sanitizers.yml,core/libs/prx/libSceAgcDriver/CMakeLists.txt,core/libs/prx/libSceAgcDriver/Execution/include/PerformanceTrace.hpp,core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp(targeted changed ranges),core/libs/prx/libSceAgcDriver/Graphics/include/CommandEncoder.hpp,core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp,core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp,core/libs/prx/libSceAgcDriver/Graphics/include/RuntimeSwitches.hpp,core/libs/prx/libSceAgcDriver/Graphics/src/CommandEncoder.cpp,core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp,core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp(targeted changed ranges),core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp,core/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cpp,core/libs/prx/libSceAgcDriver/tests/EncoderGuards.cpp,core/libs/prx/libSceAgcDriver/tests/PerformanceTrace.cpp,core/libs/prx/libSceAgcDriver/tests/PipelineCacheFailures.cpp,core/libs/prx/libSceAgcDriver/tests/Recorder.cpp(not read),core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake,core/libs/prx/libSceAgcDriver/tests/execution/CommandEncoder.cpp,core/libs/prx/libSceAgcDriver/tests/execution/EncodedMeshArguments.cpp,core/libs/prx/libSceAgcDriver/tests/test_encoder_bypass_sites.py,docs/dev/ARCHITECTURE.md,docs/dev/ENVIRONMENT.md,docs/dev/debt/libSceAgcDriver.md,tools/tests/test_trace_digest.py, andtools/trace_digest.py.Results
Recorder.cpptests were excluded from the review folder and not readFindings
Blocking
None identified in the inspected code.
Non-blocking
None.
Not verified
core/libs/prx/libSceAgcDriver/tests/Recorder.cppwas excluded from the review bundle and not read; thus its added test coverage and interactions are not verified. The complete contents ofcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppandcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppwere not read; only targeted changed ranges were inspected. No build, test suite, sanitizer, or console run was performed. CI and benchmark results in the PR description are author-reported, not independently run here.To get this to a good state
Nothing is required. For a complete review, inspect the excluded recorder tests and remaining changed-file lines, then run the relevant checks on this head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-01T14:23:04Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected command-encoder and trace hunks show no verified blocking defect; the review is incomplete, so I cannot make a formal merge decision.
What I ran
Reviewed head
ba31c870f9bf76a9d912ee506f779d1def4839e9. No merged-preview check or local tests/builds were run. The prepareddescription.md,commits.md,manifest.json,files.json, and targeted hunks indiff.patchwere inspected. Targeted pinned-source reads usedrepo_read.py:The
files/copies ofCommandEncoder.hpp,Context.hpp,Recorder.hpp,Recorder.cpp,Resources.cpp,RuntimeSwitches.cpp,trace_digest.py, andtest_trace_digest.pywere also inspected in targeted sections. No test or build command was run. CI and mutant results in the PR description are author-reported, not independently verified.Results
Negative control
Not run locally. The PR description reports killed mutants; that result was not independently checked.
Findings
Blocking
None in the inspected sections.
Non-blocking
None.
Sources
Not verified
files.jsonlists 26 changed files and no files excluded by its rule. Full head text was supplied for 24 files; the full text ofcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppandcore/libs/prx/libSceAgcDriver/tests/Recorder.cppwas not supplied. I read targeted VulkanDevice context throughrepo_read.py; I did not review the full changed test file or every changed hunk and file. No local tests, builds, sanitizer checks, merged preview, or physical-console behavior were verified.To get this to a good state
Nothing is required. Optional: complete review of the remaining changed files and independently verify the reported CI and mutant results before making a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-03T22:05:34Z.
Review: COMMENTED
Reviewed — no blocking findings
No concrete blocking defect was verified, but I could not complete the source review because the pinned reader failed while trying to write its read log.
What I ran
Reviewed head
e3ab3a688189805ecf30c6adf5297013c1c4d705and the prepared description, commits, manifest, and diff. Inspected targeted bundled code and changed hunks. No build or tests were run.Results
Negative control
Not run; no tests were run.
Findings
Blocking
None verified.
Non-blocking
None.
Sources
Not verified
The reader could not serve repository source because it failed when writing the configured read log. In particular, I could not inspect the full text of
Execution/src/VulkanDevice.cpportests/Recorder.cpp; only their prepared diff hunks were available. I did not independently verify the author-reported CI, performance measurements, or hardware behavior.tests/execution/PixelInterlock.cppwas excluded by the review rule.To get this to a good state
Nothing is required. Optional: rerun the review with a writable reader log so the omitted source context can be inspected.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:35:51Z.
Review: COMMENTED
This head trial-merges cleanly onto
c1601e56d5. A separate trial composition with current #17943 conflicts in the encoder header and implementation, draw path, and fixtures. Please identify the exact encoder base before comparing traces and preserve the delayed-encoder check for transfer payload copying. A preserved region array andvkCmdUpdateBufferdata are independent lifetime requirements. Local paired execution is pending.AI-assisted: yes.
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.