perf(agc): cut driver CPU work found profiling Black Ops II on macOS #28411
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/28411"
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 atinseau on 2026-11-30T14:16:36Z.
What
CPU work on the AGC driver, the recorder and the macOS write watch, found while profiling Call of Duty: Black Ops II (PPSA34502) under macOS (Rosetta 2, MoltenVK 1.4.2). In Angola the frame is bound by the queue worker and the draw finisher, so most commits cut per-draw and per-dispatch work on those threads. Each commit is self-contained, carries its test and gives its own fixture or in-game measurement in its message. The commits stay in their original order:
DecodeStatevectors sized up front.WrittenSincewithout a block walk when nothing was collected, sixty-four DCC keys compared per step, and the oldest unit generation of a depth mirror kept.mprotectper run, eight clean pages skipped at a time on collect, driver-owned stores without a write fault, and a host import window split inside a 16 KiB host page mapped again as one region (and its shared backing closed).APS5_SUBMIT_AT_END=1restores the old policy), a batch submitted after 256 recorded draws or dispatches (APS5_BATCH_CAPstill overrides), and one dependency to the host per batch, at its end, recorded as buffer barriers over the buffers the host reads. MoltenVK 1.4.2 applies every global barrier with host access by walking every buffer and image of the device under its resource lock (MVKDevice::applyMemoryBarrier), which took about three quarters of command encoding in Angola.APS5_GPU_BREAKDOWN(GPU time per render pass),APS5_SUBMIT_STATS(submits, GPU waits, CPU-stored labels and host barriers by cause) and draw cache counters without diagnostics, documented indocs/dev/ENVIRONMENT.mdanddocs/dev/BUILD.md.const, and the page block tests run on macOS.Tested
macOS 27.0.1 (26A434), Apple M3 Max, MoltenVK 1.4.2 from Vulkan SDK 1.4.363.0 (validation layer 1.4.363), Release build with
-DBUILD_TESTING=ON, x86_64 under Rosetta 2.maindoes not build on macOS without #26739 and #17425 and the four macOS build commits of this PR (the exception fault test labels, the mapped compare page end and the codecvt test), so the reference side ismain2af8e79edwith those six changes, and the change side is this branch with #26739 and #17425.Focused set, 1,010 tests: the AGC driver set of the earlier macOS validation plus every test whose source or registration this PR changes, run serially on both sides with
ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validationandVK_LOADER_DEBUG=layer(ctest --test-dir build-macos -R '<1,010 test names>' -V). Reference: 878 pass, 87 skip, 17 fail, 1 aborts (983 tests). This PR: 900 pass, 92 skip, 17 fail, 1 aborts (1,010 tests). No test present on both sides changes status. The failures and the abort are those ofmainon this Mac (the twelveimage_table_packedmodes,f32_denormal_flush,image_sample_lod_bias_sum,label_after_import_copy,native_depth_publication,relative_dpp, andguest_memory, whose fixed guest mapping overlaps a host region under Rosetta). Of the 27 tests this PR adds, 22 pass and 5 skip here: the fourdraw_hit_allocationsmodes because the validation layer allocates on the counted threads, andpooled_buffer_robust_readwithoutrobustBufferAccess2.Both logs report the same 31
VUID-errors test by test (VkImageCreateInfo-imageCreateMaxMipLevels-02251,VkSamplerCreateInfo-samplerMipLodBias-04467,vkCreateDescriptorSetLayout-support-09582), none new. The loader inserts the layer (Insert instance layer) in 580 tests on the reference and 593 on this PR, andwas not found but was requested by env var VK_INSTANCE_LAYERSappears only where CTest prints the failure regex of theimage_table_packedtests.After the review fixes (head
b65d1f4b7), the same 1,010 tests give the same results: 900 pass, 92 skip, 17 fail and 1 aborts, no test changes status against the reference, and the same 31VUID-errors.python3 tools/check_conventions.pypasses.tools/pr_overlap.pylists 23 open pull requests that change lines this PR changes, none with the same exports or new files. #26739 and #17425 made the same change as two commits of this branch, which were removed in favour of them. #20126 (macOS write-watch fault-ahead at the end of a driver's own store) and #18757 (learning a draw's relocation when its entry is inserted) touch the same paths as two commits here with a different change. Whichever merges second rebases over the other.Performance, Black Ops II (PPSA34502, 01.010.000) in Angola.
mainalone does not run the title on macOS, so the base side is the reference above with the rest of the macOS port of #8658 (the squash its author upstreams in parts), and the change side adds this PR. Both sides use the same save,APS5_DRAW_PIPELINE=1,APS5_PIPELINED_DRAWS=32,APS5_PIPELINE_DISPATCH=1andAPS5_TRACE_SUMMARY_EVERY=10, with warm shader and pipeline caches (no pipeline creation in the window). FPS are counted over 60 s from 10 s after the loading video, in four alternating pairs at a load average of 9 to 12:Median 10.4 against 14.2 FPS (+36 %), frame p50 99.3 against 76.5 ms, p90 134.9 against 113.0 ms, GPU busy per present 17.8 against 14.4 ms. Per frame, the queue worker's
Driver.Packetfalls from 75.7 to 49.0 ms, withShader.ResolveAbifrom 23.4 to 1.1 ms andRecorder.Submitfrom 17.5 to 9.8 ms. The draw finisher takes 4.4 ms more (Driver.DrawFinish41.7 against 37.3 ms), and the queue worker now waits 12.2 ms per frame for it (Driver.FinisherDrain, 1.6 ms on the base), which is the next limit. Thetools/trace_digest.pydigest of each run's summary and theaps5-summary.jsonlfiles are in this gist. The commits in the digest headers are the local builds of the two sides (430d326e9for the base,eeb1563d8for this PR with the same additions). Theaps5-summary.jsonllines of the first interval in the measured window of the fourth pair, then the rows of that pair over the whole window:aps5-summary.jsonl, main + #8658, pair 4
aps5-summary.jsonl, + this PR, pair 4
main + #8658, pair 4
17 intervals, 0.000 to 170.979 s, 4267 presents
Apple M3 Max, MoltenVK 1.4.2, Darwin 27.0.0, 1920x1080, commit 430d326e92de
+ this PR, pair 4
17 intervals, 0.000 to 170.419 s, 4788 presents
Apple M3 Max, MoltenVK 1.4.2, Darwin 27.0.0, 1920x1080, commit eeb1563d8cf3
Not tested on Linux or Windows locally. The first CI run of this PR crashed 155 tests of the Windows job (0xc0000005 reading 0x7e4 at the first range check): on Windows a page span keeps its states in chunks, and the cached range check read
PageSpan::pages, which stays null there. The last commit reads them throughPageSpan::entry. On macOS, where the states are contiguous, the 99 focused tests of guest memory, range checks, imports and labels keep their statuses with it and log noVUID-.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)Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T14:18:31Z.
Review: COMMENTED
Reviewed — comments
The head
ef55d6eaa9contains broad performance changes, but the description says the matched performance traces are still forthcoming, so I cannot confirm the central performance claim or justify approval.What I ran
Results
Findings
Blocking
None verified.
Non-blocking
Not verified
The changes span many files and are not fully reviewed. In particular, excluded or uninspected changed-file content includes
Recorder.cpp,GuestBufferMemory.cpp,ShaderResources.cpp,GuestWriteWatch.cpp, and numerous added or modified tests. The changedVulkanDevice.cppsections reviewed here cover dispatch layout reuse and host barrier buffers; other changed sections were not inspected. No build, tests, or performance captures were run in this review. The author reports macOS testing; that was not independently verified.To get this to a good state
Nothing is required. Optional: attach the matched performance summaries and traces described in the PR body.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T15:29:08Z.
Review: COMMENTED
Reviewed — no blocking findings
This review covers selected changes at head
8b6d7a0fa6d07713818c8d9629ccc433d4f7e892; the breadth of the change and unread files leave material uncertainty, so a formal approval is not justified.What I ran
Read the prepared description, commit list, manifest, and selected diff hunks and source context. No tests or build checks were run.
Results
Negative control
Not run.
Findings
Blocking
None verified in the inspected portions.
Non-blocking
None.
Sources
Inspected change excerpts in
DeviceAccess.cpp,GuestMemory.cpp,VulkanDevice.cpp,Resources.cpp,GuestWriteWatch.cpp, andShaderRegistry.cpp, plus related diff hunks. These excerpts do not establish correctness of the full change.Not verified
The changed-file list contains many files beyond those inspected. In particular, full implementations and tests in files excluded from the review folder were not read; the diff was inspected only in selected ranges. No build, test, or runtime behavior was independently confirmed. The review bundle documents author-reported checks; they were not run here.
To get this to a good state
Nothing is required. Optional: complete a review of the unread changed files before relying on this review as a merge decision.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-30T15:50:48Z.
Review: COMMENTED
Actionable comments posted: 15
Architecture findings (1)
Advisory architecture findings (1)
558fc010-5ce6-4495-a0d0-5567185e45b5Reviewing files that changed from the base of the PR and between
2af8e79edfand8b6d7a0fa6.core/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/DeviceAccess.hppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawPipeline.hppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hppcore/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hppcore/libs/prx/libSceAgcDriver/Execution/include/PerformanceTimer.hppcore/libs/prx/libSceAgcDriver/Execution/include/ShaderPreparation.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/DeviceAccess.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/VariantValidation.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCacheStatistics.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/WriteEvidence.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketFlush.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Presentation.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Queues/QueueWorker.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Synchronization/DeferredLabels.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Synchronization/WaitMemory.cppcore/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cppcore/libs/prx/libSceAgcDriver/Execution/src/ShaderMemory.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/BufferPool.hppcore/libs/prx/libSceAgcDriver/Graphics/include/Context.hppcore/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hppcore/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hppcore/libs/prx/libSceAgcDriver/Graphics/include/Resources.hppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/include/Texture.hppcore/libs/prx/libSceAgcDriver/Graphics/src/BufferPool.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ColorTargetLayout.cppcore/libs/prx/libSceAgcDriver/Graphics/src/DccMetadata.cppcore/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cppcore/libs/prx/libSceAgcDriver/Graphics/src/PassHazards.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Resources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/State.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cppcore/libs/prx/libSceAgcDriver/Graphics/src/UnitShadow.cppcore/libs/prx/libSceAgcDriver/tests/BufferPool.cppcore/libs/prx/libSceAgcDriver/tests/DrawCommitter.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/GuestAllocations.cppcore/libs/prx/libSceAgcDriver/tests/PassHazards.cppcore/libs/prx/libSceAgcDriver/tests/PerformanceTrace.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/RecorderKeptBytes.cppcore/libs/prx/libSceAgcDriver/tests/RegisterKey.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/libs/prx/libSceAgcDriver/tests/SharedWrites.cppcore/libs/prx/libSceAgcDriver/tests/TextureTiling.cppcore/libs/prx/libSceAgcDriver/tests/WriteTracking.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_batch_cap_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_draw_hit_allocations_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_graphics_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_pooled_buffer_range_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_prepared_shaders_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_submission_end_batching_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_performance_trace_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_shader_memory_tests.cmakecore/libs/prx/libSceAgcDriver/tests/execution/BatchCap.cppcore/libs/prx/libSceAgcDriver/tests/execution/DccKeyScan.cppcore/libs/prx/libSceAgcDriver/tests/execution/DeviceGate.cppcore/libs/prx/libSceAgcDriver/tests/execution/DispatchDeviceAllocations.cppcore/libs/prx/libSceAgcDriver/tests/execution/DispatchHitAllocations.cppcore/libs/prx/libSceAgcDriver/tests/execution/DrawCacheRelocation.cppcore/libs/prx/libSceAgcDriver/tests/execution/DrawHitAllocations.cppcore/libs/prx/libSceAgcDriver/tests/execution/DrawPipelineTrace.cppcore/libs/prx/libSceAgcDriver/tests/execution/DrawRelocateUserValues.cppcore/libs/prx/libSceAgcDriver/tests/execution/GuestPageAccess.cppcore/libs/prx/libSceAgcDriver/tests/execution/ObserveRange.cppcore/libs/prx/libSceAgcDriver/tests/execution/PooledBufferRange.cppcore/libs/prx/libSceAgcDriver/tests/execution/PreparedPublication.cppcore/libs/prx/libSceAgcDriver/tests/execution/PreparedShaders.cppcore/libs/prx/libSceAgcDriver/tests/execution/SplitSharedMapping.cppcore/libs/prx/libSceAgcDriver/tests/execution/SubmissionEndBatching.cppcore/libs/prx/libSceAgcDriver/tests/shaders/DrawCommitter.fragcore/libs/prx/libc/src/GuestWriteWatch.cppcore/libs/tests/GuestExceptionFault.cppcore/libs/tests/GuestLibcxxCodecvtChar.cppcore/libs/tests/PthreadStart.cppcore/libs/tests/WriteWatch.cppcore/libs/tests/write_watch/CMakeLists.txtcore/shader/recompiler/Optimization/include/Optimization/SrtWalker/SrtTape.hppcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/shader/recompiler/Optimization/src/SrtWalker/SrtTape.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/ShaderCacheDirectory.hppcore/shader/recompiler/tests/CacheFileReadTests.cppdocs/dev/BUILD.mddocs/dev/ENVIRONMENT.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-30T16:54:06Z.
Review: COMMENTED
Review incomplete — no blocking findings
The prepared bundle was inspected at head
b65d1f4b761ca36fb8f847a143936eabc119bef7, but the changed implementation was not reviewed sufficiently to support a formal decision.What I ran
Static review only. I read
review/description.md,review/commits.md,review/manifest.json,review/README.md, and lines 1–200 ofreview/diff.patch. No tests, builds, or other commands were run. Test and performance results in the description are author-reported, not independently verified.Results
Negative control
Not run; this was a static review and no tests were executed.
Findings
Blocking
No blocking defect is established by the material inspected. This is not evidence that the unread changes are free of defects.
Non-blocking
None established.
Not verified
The diff was read only through line 200 of 9583, and no changed repository files were read directly. The manifest identifies changed files marked
included: falsebecause they were too large for the review folder; those changes were not inspected. The remaining diff, implementation behavior, tests, and the performance claims were not verified.To get this to a good state
Nothing is required by an identified finding. Optional: complete review of every changed line before making a formal merge decision.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-30T17:02:54Z.
Review: COMMENTED
Actionable comments posted: 3
Architecture findings (1)
Advisory architecture findings (1)
58c14554-ac92-445d-8a5c-c4d9524db7b0Reviewing files that changed from the base of the PR and between
8b6d7a0fa6andb65d1f4b76.core/libs/prx/libSceAgcDriver/Execution/include/Driver/DeviceAccess.hppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawPipeline.hppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Queues/QueueWorker.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cppcore/libs/prx/libSceAgcDriver/Graphics/include/BufferPool.hppcore/libs/prx/libSceAgcDriver/Graphics/src/BufferPool.cppcore/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppcore/libs/prx/libSceAgcDriver/Graphics/src/State.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_graphics_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_shader_memory_tests.cmakecore/libs/prx/libSceAgcDriver/tests/execution/DeviceGate.cppcore/libs/prx/libSceAgcDriver/tests/execution/GuestPageAccess.cppcore/libs/prx/libSceAgcDriver/tests/execution/PreparedPublication.cppcore/libs/prx/libSceAgcDriver/tests/execution/PreparedShaders.cppcore/libs/prx/libSceAgcDriver/tests/execution/SubmissionEndBatching.cppcore/libs/prx/libc/src/GuestWriteWatch.cppcore/shader/recompiler/Recompiler.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-30T17:34:20Z.
Review: COMMENTED
Reviewed — no blocking findings
No blocking defect was verified in the inspected portions; the review is incomplete because most changed file contents were not inspected.
What I ran
Reviewed the prepared diff for head
ca052196f190de818a370eba604a230ddf0fa5e0. No tests, builds, or compilation were run. The reader returned theDevicePointersearch results; subsequent searches failed when it tried to append its log in the read-only workspace.Read
description.md,commits.md,manifest.json,files.json, and the available portion ofdiff.patch. Read the full head text ofcore/libs/prx/libSceAgcDriver/Execution/src/Driver/DeviceAccess.cpp; inspected diff hunks forGuestWriteWatch.cpp,Recorder.cpp,VariantValidation.cpp,Draw.cpp,DrawPipeline.cpp,WriteEvidence.cpp,Resources.cpp,BufferPool.cpp,PassHazards.cpp,QueueWorker.cpp, andGuestMemory.cpp.Results
Negative control
Not run; no tests were run.
Findings
Blocking
None verified in the inspected portions.
Non-blocking
None.
Not verified
The manifest lists 104 changed files: 54 full texts available in
files/and 50 full texts excluded as too large. Of the available full texts, onlycore/libs/prx/libSceAgcDriver/Execution/src/Driver/DeviceAccess.cppwas read. The remaining available full texts were not inspected. Excluded full texts not inspected:core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/State.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/tests/BufferPool.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/GuestAllocations.cppcore/libs/prx/libSceAgcDriver/tests/PerformanceTrace.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/RecorderKeptBytes.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/libs/prx/libSceAgcDriver/tests/SharedWrites.cppcore/libs/prx/libSceAgcDriver/tests/TextureTiling.cppcore/libs/prx/libSceAgcDriver/tests/WriteTracking.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_graphics_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_prepared_shaders_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_shader_memory_tests.cmakecore/libs/prx/libSceAgcDriver/tests/execution/BatchCap.cppcore/libs/prx/libSceAgcDriver/tests/execution/DeviceGate.cppcore/libs/prx/libSceAgcDriver/tests/execution/DispatchDeviceAllocations.cppcore/libs/prx/libSceAgcDriver/tests/execution/DispatchHitAllocations.cppcore/libs/prx/libSceAgcDriver/tests/execution/DrawCacheRelocation.cppcore/libs/prx/libSceAgcDriver/tests/execution/DrawHitAllocations.cppcore/libs/prx/libSceAgcDriver/tests/execution/DrawPipelineTrace.cppcore/libs/prx/libSceAgcDriver/tests/execution/DrawRelocateUserValues.cppcore/libs/prx/libSceAgcDriver/tests/execution/GuestPageAccess.cppcore/libs/prx/libSceAgcDriver/tests/execution/ObserveRange.cppcore/libs/prx/libSceAgcDriver/tests/execution/PooledBufferRange.cppcore/libs/prx/libSceAgcDriver/tests/execution/PreparedPublication.cppcore/libs/prx/libSceAgcDriver/tests/execution/PreparedShaders.cppcore/libs/prx/libSceAgcDriver/tests/execution/SplitSharedMapping.cppcore/libs/prx/libSceAgcDriver/tests/execution/SubmissionEndBatching.cppcore/libs/prx/libSceAgcDriver/tests/shaders/DrawCommitter.fragcore/libs/prx/libc/src/GuestWriteWatch.cppcore/libs/tests/GuestExceptionFault.cppcore/libs/tests/GuestLibcxxCodecvtChar.cppcore/libs/tests/PthreadStart.cppcore/libs/tests/WriteWatch.cppcore/libs/tests/write_watch/CMakeLists.txtcore/shader/recompiler/Optimization/include/Optimization/SrtWalker/SrtTape.hppcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/shader/recompiler/Optimization/src/SrtWalker/SrtTape.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/ShaderCacheDirectory.hppcore/shader/recompiler/tests/CacheFileReadTests.cppdocs/dev/BUILD.mddocs/dev/ENVIRONMENT.mdThe test and performance results in the description are author-reported and were not independently verified. Behavior in uninspected code is not verified.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-30T17:37:38Z.
Review: COMMENTED
Actionable comments posted: 2
Architecture findings (1)
Advisory architecture findings (1)
4f0540da-6fed-4546-a444-a9f1c7908290Reviewing files that changed from the base of the PR and between
b65d1f4b76andca052196f1.core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cppcore/libs/prx/libSceAgcDriver/Graphics/include/BufferPool.hppcore/libs/prx/libSceAgcDriver/Graphics/src/BufferPool.cppcore/libs/prx/libSceAgcDriver/tests/execution/SubmissionEndBatching.cppcore/shader/recompiler/Recompiler.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-30T18:14:48Z.
Review: COMMENTED
Architecture findings (1)
Advisory architecture findings (1)
160f58e9-2583-4a9d-8454-6e8efe1faaf6Reviewing files that changed from the base of the PR and between
ca052196f1anddd2f18a440.core/libs/prx/libSceAgcDriver/Graphics/include/BufferPool.hppcore/shader/recompiler/Recompiler.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T18:20:39Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this based on the source ranges reviewed; the points below are optional.
What I ran
Reviewed head
dd2f18a440555ac0239dec974ced4445ec6811e8. I read the prepared description, commit list, manifest, files list, and sampled diff; targeted source excerpts at the pinned head covered six changed files. No tests or build commands were run.Results
Negative control
Not run; no behavioral test was executed.
Findings
Blocking
None established in the inspected ranges.
Non-blocking
No code findings established in the inspected ranges.
Sources
Not verified
This is an incomplete review: targeted head excerpts covered six of 104 changed files, and the sampled diff does not constitute a complete audit. The manifest marks 50 changed-file full texts as not included due to size;
files.jsonlists no rule-based exclusions. No tests, builds, performance captures, or console behavior were independently verified. The author-reported checks in the PR description were not run here.To get this to a good state
Nothing is required from the author; this draft does not claim a complete review.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-30T18:32:09Z.
Review: COMMENTED
Actionable comments posted: 1
Architecture findings (1)
Advisory architecture findings (1)
70cc8a08-d25f-45f6-aeeb-2fd668f26b56Reviewing files that changed from the base of the PR and between
dd2f18a440anddf1abc5569.core/libs/prx/libSceAgcDriver/Graphics/src/BufferPool.cppcore/shader/recompiler/Recompiler.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T18:42:45Z.
Review: COMMENTED
Reviewed — no blocking findings
This review is incomplete: I inspected the prepared change summary and selected source ranges, and did not verify the full change set.
What I ran
Reviewed head
8cffc82373c169a977ef535a7b56686def7fdbc0. Readdescription.md,commits.md,manifest.json,files.json, and the available portion ofdiff.patch. Usedrepo_read.pyto inspect ranges inDeviceAccess.cpp,QueueWorker.cpp,GuestMemory.cpp,GuestWriteWatch.cpp,Presentation.cpp, andShaderRegistry.cpp. No tests, builds, or other checks were run.Results
Negative control
Not run; no tests were run.
Findings
Blocking
None verified in the inspected ranges.
Non-blocking
None.
Sources
The source ranges were read at the pinned head using
repo_read.py; no behavior claims requiring permalinks are made in this draft.Not verified
The prepared folder lists 104 changed files: 54 included and 50 excluded for size. I did not read every included file or inspect the complete diff. The 50 excluded files are those marked
included: falseinmanifest.json; their full text was not inspected. Runtime behavior, tests, performance measurements, and the author-reported results were not independently verified. Files read: the five prepared artifacts named above and selected ranges from the six repository files listed under What I ran.To get this to a good state
Nothing is required. Optional: complete review of the remaining diff and excluded files before making a formal approval decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T19:14:54Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this review; the coverage note below is optional follow-up.
What I ran
Reviewed head
c5edf758bc5e3a0a1951c02cf220dc3173ab376eusing the prepared metadata and diff, plus selected source ranges throughrepo_read.py. Review shell: Linux; no target toolchain used.Results
Findings
Blocking
None identified in the inspected ranges.
Non-blocking
None identified in the inspected ranges.
Sources
Not verified
The manifest lists 104 changed files. I read selected ranges in 9; the rest were not reviewed. The prepared folder omits full text for 50 files as too large, and I did not inspect all of those through the reader. Builds, tests, and the author-reported performance measurements were not independently verified. The commands shown describe the reader operations; the reader's logging failed because the review folder is read-only.
To get this to a good state
Nothing is required. Optional: review the remaining changed files and verify the reported tests and performance measurements before making a formal approval decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-01T07:49:34Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected batching path defers host-read dependencies to batch submission; this review is incomplete because most changed files were not read.
What I ran
Reviewed PR head
6d5c17130149e71236414c4e1dcf06ac0fa4fa44. Read the prepared description, commit list, manifest, selected diff hunks, and targeted ranges ofRecorder.cppthroughrepo_read.py. No tests or builds were run.Results
Negative control
Not run; no tests were executed.
Findings
Blocking
None identified in the inspected ranges. This does not establish that unread changed files are free of defects.
Non-blocking
None.
Sources
Not verified
The manifest lists 104 changed files; only
Recorder.cppwas read through the pinned reader. The remaining changed files, including other implementation paths and tests, were not read. No runtime, platform, hardware, or performance claims were independently checked.files.jsonlists no files excluded by rule.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T21:34:21Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected excerpts show no verified blocking defect, but the review is incomplete, so a formal decision is not justified.
What I ran
7d6d35bcb03ea5f60e329bf51add371de9ffd941.files.json. InspectedQueueWorker.cpplines 70–130 throughrepo_read.py; the reader returned the first line ofGuestWriteWatch.cpp, then reported it could not write its read log because the workspace is read-only.Results
Negative control
Not run.
Findings
Blocking
None verified in the inspected excerpts.
Non-blocking
None verified in the inspected excerpts.
Sources
The prepared diff and manifest were read. Repository source was inspected only for
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Queues/QueueWorker.cpp; no behavior claims are made about the other changes.Not verified
The manifest lists 104 changed files; full text is marked included for 49. I did not review every changed hunk or trace most changed code and callers. In particular, the write-watch implementation, recorder barriers, buffer pool, shader and draw caches, memory tracking, and tests are not verified.
files.jsonreports no rule-based exclusions.To get this to a good state
Complete the review of the remaining changed code and verify relevant behavior before making a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-03T05:27:49Z.
Review: COMMENTED
Reviewed — no blocking findings in inspected portions
Nothing blocks the inspected portions; the points below are optional. The review is incomplete because many changed files were not inspected.
What I ran
Reviewed head
6356874b519aeebe9b100930ecc4495af6f6335a. Used the pinnedrepo_read.pyreader for source excerpts; no tests, builds, or performance captures were run. The description's test and benchmark results are author-reported.Results
Negative control
Not run; no tests were executed.
Findings
Blocking
None identified in the inspected excerpts.
Non-blocking
Sources
Prepared review description, commits, diff, manifest, and files list; pinned reader excerpts from the paths listed above.
Not verified
Read the prepared description, commits, manifest, and files list, plus the source excerpts listed under What I ran. The remaining changed-file content was not inspected, including
VulkanDevice.cpp, graphics recorder and resource implementations, macOS write-watch code, and numerous changed tests and shader-recompiler files. No tests, builds, console behavior, or reported performance captures were independently verified.To get this to a good state
Nothing is required for this comment. Optional: complete review of the uninspected changes before treating this as a full review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-03T06:46:28Z.
Review: COMMENTED
Reviewed — comments
The review is incomplete: only a sample of the changed files was inspected, so this draft does not support a formal merge decision.
What I ran
Inspected the prepared diff and manifest for head
5e2d54c9051590411a564d60f83db221ee7cdf96. Read selected ranges and search results withrepo_read.pyforDeviceAccess.cpp,BufferPool.cpp,Recorder.cpp,Driver.hpp,QueueWorker.cpp,DrawPipeline.cpp,PacketExecution.cpp, andPresentation.cpp. No tests or builds were run. The test and performance results in the PR description are author-reported.Results
Negative control
Not run; no tests were run during this review.
Findings
Blocking
No blocking defect was established in the inspected excerpts. The review is incomplete and does not establish that the full change is free of blocking defects.
Non-blocking
None established in the inspected excerpts.
Sources
Not verified
The manifest lists 104 changed files. Only selected ranges and search results from eight repository paths were inspected; the remaining changed code and tests were not reviewed. The bundle contains full head text for 51 files; 53 files were too large for the bundle and require reader access. Console behavior, other platforms, and the author-reported tests and performance measurements were not independently verified.
To get this to a good state
Nothing is required of the author based on the sampled inspection. Complete review of the remaining changed files before making a formal merge decision.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T20:49:07Z.
Review: COMMENTED
I reviewed the recorder changes in the refreshed branch.
SubmissionEndBatchingchecks when the labels become visible and checks the draw output after a separate idle and flush. Could one focused case also consume a host readback as part of retiring that same batch and verify the bytes at completion? That would directly exercise the interaction between cross-submission batching and the buffer-scoped host barrier at the batch tail.Source review at
d99e62c39f. The refreshed head trial-merges onto700fae9438. Focused Linux checks are queued. Native macOS execution remains unverified here.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-03T22:27:24Z.
Review: COMMENTED
Reviewed — no blocking findings
The prepared diff contains no verified blocking issue, but I could not complete source verification for all changed files.
What I ran
d99e62c39f44cad6a88845826be76bc414653177using the prepareddescription.md,commits.md,manifest.json, anddiff.patch.DeviceAccess.cppwithrepo_read.py. Further reader calls failed because the read-only workspace prevented the reader from writing its log.Results
Findings
Blocking
None verified.
Non-blocking
None.
Not verified
manifest.jsonlists 103 changed files; full text for 51 is present underfiles/, while 52 were omitted as too large. I could not read omitted files through the pinned reader because it failed when attempting to writereads.jsonl. Therefore, behavior and correctness across the complete change are not verified. No tests were run.To get this to a good state
Nothing is required. Optional: rerun the source review with a writable reader log location to verify the omitted files.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T02:22:04Z.
Review: COMMENTED
Reviewed — no blocking findings in inspected code
No blocking defect was verified in the inspected excerpts; review coverage is incomplete.
What I ran
Reviewed head
14da3b3d99aef52612cd92d06034eb001d866754using the prepared description, commit list, manifest, and diff, plus targeted reads withrepo_read.py. No tests or build checks were run; the test results in the description were not independently verified.Results
Findings
Blocking
None verified in the inspected excerpts.
Non-blocking
None verified in the inspected excerpts.
Not verified
files.jsonlists 103 changed files. Targeted pinned-source excerpts were read from five paths:core/libs/prx/libSceAgcDriver/Execution/src/Driver/Queues/QueueWorker.cpp,core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp,core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp,core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp, andcore/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp. The other 98 changed paths were not read at head. The preparedfiles/directory contains full text for 50 files; 53 full texts were not included there.files.jsonlists no policy-excluded files.To get this to a good state
Nothing is required. Optional: complete review of the remaining changed paths before making a formal approval decision.
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.