perf(agc): plan handed-off draws on the finisher by default #22025
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/22025"
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-17T02:06:51Z.
What
With the draw pipeline on (
APS5_DRAW_PIPELINE=1), the draw finisher already works out a handed-off draw's resource content key so the committer does not have to. The committer still validated the draw and built its vertex input layout itself, on the thread that holds the GPU lock. That thread is the wall: on a GTA V scene it is busy about 8.3 s of every 10 s.This PR moves the rest of the draw's plan to the finisher and gives what the finisher prepares one home:
Graphics::PreparedDraw. It records the device it was made for and holds the draw's whole plan: validation, vertex input layout and content key. A draw the finisher cannot plan carries only its content key.Graphics::Draw,VulkanDevice::DrawandDriver::commitDraw, aconst PreparedDraw*takes the place of the content key parameter (const std::vector<std::uint32_t>*), so each keeps the same number of parameters as onmain(nine forGraphics::Draw).VulkanDevice::DrawContentKeyandGraphics::DrawResourceContentKeyare no longer public;PrepareDrawmakes the key.PreparedDispatch, so later work that moves more of a draw off the committer adds fields to it rather than parameters.PreparedDrawwas made for its own device and ignores all of it if not. It uses the plan when there is one. Otherwise it plans the draw itself as before, using the content key when there is one. A draw whose plan the finisher refused reaches the committer without a plan, so the committer reports the draw's error as it does today.APS5_NO_FINISHER_PREPAREis aRuntimeSwitchthat leaves planning to the committer as before.APS5_ABcan compare both arms within one boot.PreparedDraw, is renamedDrawWorkin its own commit, with no behaviour change.APS5_PIPELINE_STATS, each 10 s window adds a[finisher-prepare]line: draws the finisher planned and their cost, refused plans, plans the committer took, plans made for another device, and draws the committer planned itself and their cost.Tested
Rebased onto
maina72186d3cfas 7 linear commits, without #18757 (head45f26aeda3). Fork CI with the Linux gate, TSan and Windows on this tree: green, 20 Linux / 19 Windows tests and TSan, 0 VUIDs (run 44032224856). The earlier head onmain+ #18757 passed all three (run 43990253452).Locally on the rebased head (Linux, llvmpipe, ASan with
detect_leaks=0), 37/37 pass: the PR's tests, everyagc_driver_draw_cache_reuse*,agc_driver_draw_cache_relocation*andagc_driver_target_memo*test (#17738's target memo is on the same draw path), andagc_runtime_switches(+_refused). The switch test's output shows the finisher planning in the on interval (16 prepared, 16 planned, 16 taken) and not in the two off intervals (9 and 4 draws planned by the committer).Before the rebase (Linux, llvmpipe, ASan with
detect_leaks=0), 24/24 passed on the head onmain+ #18757:agc_driver_prepared_draw(+_plan_verify);agc_driver_draw_cache_reuse(+_finisher_prepare,_no_finisher_prepare,_finisher_prepare_switch);agc_driver_draw_cache_relocationarms;agc_runtime_switches.Mutants, each of which fails a test:
python3 tools/check_conventions.py --base mainpasses. Overlap with open PRs was checked by reading the diffs, becausetools/pr_overlap.pycannot fetch PR branches. No open PR duplicates this change, and none touchesDrawContentKey,DrawResourceContentKeyorcommitDraw.The
DrawWorkrename collides textually with #13863, #13920, #13928, #13929, #15548, #16753, #17611, #17738 and #20519. Each of them uses the old internalPreparedDrawname or edits nearrecordPreparedDraw, and none conflicts semantically.New tests:
agc_driver_prepared_drawcovers six cases:The
_plan_verifyarm also rebuilds the content key on the committer and requires it to match, and checks that a wrong plan given to an indirect draw that returns early (record range zero, or every CPU-read record empty) is caught when the draw takes it.agc_driver_draw_cache_reuse_finisher_prepareruns the draw cache reuse suite with the plan, recipe and register-key verifiers on. It requires every plan the finisher made to reach the committer.agc_driver_draw_cache_reuse_no_finisher_prepareruns the same suite withAPS5_NO_FINISHER_PREPAREset. It requires the committer to plan every draw.agc_driver_draw_cache_reuse_finisher_prepare_switchstarts withAPS5_NO_FINISHER_PREPAREset, clears it mid-run and requires the finisher's plans to be taken, then sets it again and runs a controlled set of four handed-off draws: the finisher must prepare them and plan none, and the committer must plan exactly those draws.GTA V (PPSA04263 01.011.001), city-franklin-house, NAV_FAST, stood_still anchor 108:30. RTX 3080, NVIDIA 621.24, Windows 11 (10.0.26320), PCIe Gen4 x16, 3840x2160; Defender real-time protection on.
The timed boots below were run before this PR was rebased onto
main. Their base ismain+ #18757 + #20845 + #14561, and the change is that base + this PR.This PR no longer carries #18757 and does not need it: it uses none of #18757's code, and its tests pass on
mainwithout it. #18757 removed a finisher drain from the draw path, so the measured gain may differ onmainalone.#20845 and #14561 are needed for the scene to run and render upright. They are not part of this PR and do not touch the draw plan path.
Rerun on the new base (this head's code): the same 8 boots, M S S M S M M S, all quiet CLEAN. base =
maina72186d3cf+ #20845 + #14561; change = base + this PR's 7 commits (its diff over base equals this PR's diff). OnlyAPS5_TRACE_SECONDS=108:30and the bundle env are set.change − base: p50 −1.18 ± 4.24 ms (−1.0%), p90 −2.6 ± 9.8 ms, n = 4 + 4. On this base the difference is within the noise, which is larger here (change boot 2 ran slow). The work does move: the finisher planned every handed-off draw (259,762–281,296 per 10 s at 1.17–1.25 µs each) and the committer planned none itself, so about 0.33 s of planning per 10 s leaves the committer. The verify boot (
APS5_VERIFY_DRAW_PLAN=1,APS5_VERIFY_DRAW_PIPELINE=1) checked 3,076,555 plans with 0 mismatches, and frame 136 of base boot 1 and frame 135 of change boot 2 are pixel-identical.Window lines of base boot 1 and change boot 2 of this rerun:
Frame time, PR mode: 8 separate boots in the order base, change, change, base, change, base, base, change (all quiet CLEAN). base =
main+ #18757 + #20845 + #14561 (939ef4ab4e5); change = base + this PR's head (b848e1c705, on by default; its diff over base equals this PR's diff). OnlyAPS5_TRACE_SECONDS=108:30and the bundle env are set.change − base: p50 −2.82 ± 1.86 ms (−2.6%), p90 −6.3 ± 7.9 ms, n = 4 + 4 (± is the standard error of the difference). Two earlier heads of this PR, measured the same way against the same base build, gave p50 −3.59 ± 1.55 and −1.80 ± 1.57 ms. The
aps5-summary.jsonllines andtrace_digest.pyoutput of every boot are attached.Window lines of base boot 1 and change boot 2 (the pre-rebase base and change):
The plan moved: with the change,
APS5_PIPELINE_STATS=1:[finisher-prepare] (10 s, on): the finisher prepared 299890 handed-off draws and planned 299890 of them at 1.27 us each, 0 plans refused; the committer took 299866 plans, 0 for another device, and planned 0 draws itself at 0.00 us each. WithAPS5_NO_FINISHER_PREPARE(earlier stack, below), the committer planned about 331,000 draws per 10 s at 0.77 µs each.Screen mode (sizing only, not evidence): an earlier lab stack of the same change measured finisher-prepare in-boot with
APS5_AB, on (B) minus off (A). That stack had a different relocation change in place of #18757.Verification: a separate untimed boot of the head with
APS5_VERIFY_DRAW_PLAN=1,APS5_VERIFY_DRAW_PIPELINE=1andAPS5_PIPELINE_STATS=1. The committer plans every draw again from the same state when it takes the finisher's plan and again after the draw's record-time work, andRequires each to be equal. The boot ran its whole window:[verify-draw-plan] since start: plans selected 3230818 prepared, 9 inline; equal to a plan built when the draw took it 3230818 prepared, 9 inline; equal to a plan built after the draw's record-time work 3230818 prepared, 9 inline.[epoch-proofs]verify: 28,672 checked per 10 s, 0 failed.Picture check: frame 135 of base boot 1 and frame 134 of change boot 2 of the timed set above are pixel-identical (PIL
ImageChops.differencebounding boxNone).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-17T06:30:46Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
fe336f00db26f9c18e5ae1d50d64df6a0ac59f03, basemain. No merged-preview check was run.description.md,commits.md,manifest.json,files.jsonanddiff.patchfrom the review folder. Every file inreviewed(18 of 18) was read through its diff hunks. No file was read in full.Results
VulkanDevice.cppis not in the foldercheck_conventions.pyFindings
Blocking
None.
Non-blocking
Draw's signature is "one parameter shorter than onmain". The diff does not change the count.Graphics::Drawstill takes nine parameters, becausecontentKeyis replaced byprepared(core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp:66, diff lines 221 and 251). Correct the description or drop the claim.Sources
Graphics::Drawdeclaration at the headNot verified
PrepareDrawnow runsplanDrawon the draw finisher (core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp:1410) while the committer may use the same validation memos. I did not check this, and no defect is shown.insertDrawEntry, anddrawRelocationsPendingis cleared whole at 1024 entries (core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp:474). I found no test for the cap.agc_driver_prepared_draw_testsand its sourcetests/execution/PreparedDraw.cpp: the head search found no CMake reference beyond the new.cmakefile, so target discovery is not verified.VulkanDevice.cpp(excluded from the folder) andGraphics/src/Draw.cpp(4,947 lines) were read only at the changed hunks.To get this to a good state
Nothing is required.
Optional: correct the "one parameter shorter" sentence in the description. If the author can, say why
planDrawis safe on the finisher thread next to the committer's memos, and add a test for the 1024-entry cap if the cap is meant to be reached.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T07:23:32Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
45f26aeda341649fee6ad77ad5b365b1b834cc3a, basemain. Read-only review: no build and no test run.repo_read.py.core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp(too large). Only its changed hunk was read, from the diff.Reader commands
Results
DrawContentKeyleft in the repoDraw.cppincludes the headerFindings
Blocking
None.
Non-blocking
docs/dev/ENVIRONMENT.md:595saysAPS5_VERIFY_DRAW_PLANchecks the plan "once more after the draw's record-time work". The early return atcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp:4037now skips that second check when the inputs are empty. The[verify-draw-plan]counter line says so; the environment table does not. Adding that exception to the table row would make the two agree.Sources
APS5_VERIFY_DRAW_PLANNot verified
Graphics::PreparedDrawandPreparedDrawPtrare used inVulkanDevice.hpp; I did not confirm that the header pulls inDraw.hpp.Draw.cppin both the Execution and Graphics folders.agc_driver_prepared_draw_tests. No CMake file in the repository names it, so I did not confirm that the build creates it or that the tooling intools/picks up the newtests/cmakefragment.To get this to a good state
Nothing is required.
Optional: the wording in Non-blocking 1.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T07:51:00Z.
Review: COMMENTED
Reviewed — no blocking findings in the changed lines read
Nothing blocks this; the points below are optional. The verdict is a comment, not an approval, because the full files were not read and nothing was built or run.
What I ran
description.md,commits.md,manifest.json,files.jsonand all ofdiff.patch(880 lines) at head0184f410dafc4c8cb38af0a9330e6820f700a921, basemain.repo_read.py):Results
reviewedFindings
Blocking
None.
Non-blocking
core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp:65declaresSetPreparedDrawDeviceForTestin a production header, so every includer sees a way to rebind a plan to another device. Onlycore/libs/prx/libSceAgcDriver/tests/execution/PreparedDraw.cpp:169uses it. A test-only header would keep it out of the driver's public surface.Sources
planDrawnow reaches from the finisher thread is mutex-guarded: Draw.cpp, lines 1180–1215.Not verified
reviewedwere read, and no full file was read.VulkanDevice.cppis excluded from the review folder as too large, and I did not read it through the reader.planDrawreads, or whether a guest write between the finisher's plan and the committer's take can change the plan.APS5_VERIFY_DRAW_PLANcovers that, but only in one author-reported boot.agc_driver_prepared_draw_teststarget builds fromPreparedDraw.cpp.b848e1c705,45f26aeda34), not to0184f410dafc.commits.mdlists 8.APS5_AB. The switch comparison is not checked.To get this to a good state
Nothing is required.
Optional:
SetPreparedDrawDeviceForTestout of the production header.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T08:28:59Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
c808478b690302f443e59c6bd08e4a1134351399, basemain. No build and no test run in this review.repo_read.py:Unedited output of the two symbol searches that matter for removed symbols
Results
Findings
Blocking
None.
Non-blocking
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp:1832:takePlanuses the finisher's plan as it is. In default builds nothing checks it against the state at take time; that check runs only underAPS5_VERIFY_DRAW_PLAN. The author's verify boot (3,076,555 plans, 0 mismatches) and the verify arm of the new tests support the design. This is a risk to keep in view, not a defect.Sources
CachedFragmentOutputskeeps thread-local scratch and a mutex-guarded shared memoNot verified
VulkanDevice.cpponly through its hunks, because it is too large for the review folder.planDrawwhen it runs on the draw finisher. I checked onlyCachedFragmentOutputs.c808478b. Not fetched.FullVertexPushDataLeavesRoomForTheFragment.To get this to a good state
Nothing is required. The optional point is under Findings.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T16:02:27Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
b6cbbf09b988f4567e71ab09bbd9aad6debc50c6using the prepared diff andrepo_read.pyto inspect changed code and targeted context. No tests or build checks were run in this review.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Tests, build, and hardware behavior were not verified in this review. Read all changed files except
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp, which was read throughrepo_read.pyat the changed lines. The diff excludes no changed files;files.jsonwas not available among the prepared artifacts I read. The title and description report test and performance results, but those were not independently checked.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T21:34:19Z.
Review: COMMENTED
Reviewed — no blocking findings
The reviewed changes show no verified blocking defect, but the review is incomplete because some changed files were not fully read and no checks were run.
What I ran
No commands or tests were run. I read the prepared description, commit list, manifest, diff, and targeted repository ranges through
repo_read.pyat headd102797715541b66d8b8e9bc573718cc9e2c421b.Results
Findings
Blocking
None verified in the inspected ranges.
Non-blocking
None.
Not verified
I did not read every changed file in full. In particular,
VulkanDevice.cppwas excluded from the review folder as too large;Draw.cpp,PreparedDraw.cpp,DrawCacheReuse.cpp, and the remaining included files were read only in targeted ranges. I did not run the reported tests or build checks.Files represented in the manifest:
Driver.hpp,VulkanDevice.hpp,Execution/src/Driver/Draw/Draw.cpp,DrawPipeline.cpp,VulkanDevice.cpp,Graphics/include/Draw.hpp,RuntimeSwitches.hpp,Graphics/src/Draw.cpp,RuntimeSwitches.cpp,agc_driver_prepared_draw_tests.cmake,DrawCacheReuse.cpp,PreparedDraw.cpp, anddocs/dev/ENVIRONMENT.md. Repository ranges inspected:Execution/src/Driver/Draw/Draw.cpp,Graphics/src/Draw.cpp, andGraphics/src/RuntimeSwitches.cpp. The full text of the excludedVulkanDevice.cppwas not read.To get this to a good state
Nothing is required. Optional: complete the review of the unread changed-file ranges and rerun the relevant checks on this head before making a formal approval decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T00:28:04Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected changes show no verified blocking defect, but this review is incomplete because several changed files were not read in full.
What I ran
d5c8650780af957e3f20fffb89d768704e5b6aaausing the prepared diff and pinned reader.Results
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Not verified
The full text was read for
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp,core/libs/prx/libSceAgcDriver/tests/execution/PreparedDraw.cpp, andcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp. The description, commits, manifest, and diff were also read. Other changed files were not read in full, includingcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp,core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp,core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp,core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp,core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp,core/libs/prx/libSceAgcDriver/Graphics/include/RuntimeSwitches.hpp,core/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cpp,core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_prepared_draw_tests.cmake,core/libs/prx/libSceAgcDriver/tests/execution/DrawCacheReuse.cpp, anddocs/dev/ENVIRONMENT.md. No other files were excluded by rule in the prepared file listing.To get this to a good state
Nothing is required. Optional: complete inspection of the unread changed files and run the relevant checks on this head.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-26T14:09:41Z.
Review: COMMENTED
Actionable comments posted: 2
41672995-62a2-4788-b662-b1654f7148dfReviewing files that changed from the base of the PR and between
c7e99ec0d3and65b1ad4a12.core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Draw.hppcore/libs/prx/libSceAgcDriver/Graphics/include/RuntimeSwitches.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_prepared_draw_tests.cmakecore/libs/prx/libSceAgcDriver/tests/execution/DrawCacheReuse.cppcore/libs/prx/libSceAgcDriver/tests/execution/PreparedDraw.cppdocs/dev/ENVIRONMENT.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T14:19:31Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected preparation and draw-selection code shows no verified blocking defect; the review is incomplete because several changed files were not inspected.
What I ran
65b1ad4a1241f8da5ae334c7d98f9d0296e56534using the prepared review bundle andrepo_read.py.Results
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Not verified
I read
review/description.md,review/manifest.json, portions ofreview/diff.patch,Graphics/src/Draw.cpp,tests/execution/PreparedDraw.cpp, anddocs/dev/ENVIRONMENT.md. I did not readreview/commits.md, the remaining diff, or all changed files listed in the manifest. In particular,Execution/src/VulkanDevice.cppwas excluded from the prepared full-text bundle because it was too large; I did not inspect it through the reader. The full texts of other changed files and the test/build results were not 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 relying on this review for a merge decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T22:59:06Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected draw-plan handoff and fallback paths show no verified blocking defect; validation could not cover all changed files or run checks in this review session.
What I ran
25edb7ac7251f7b7424b9e57f0cf96548a1d2108; base ismain. No merged-preview check or tests were run.description.md,commits.md,manifest.json,README.md, the completediff.patch, and the changed-line ranges in the available changed files:Driver.hpp,VulkanDevice.hpp,Driver/Draw/Draw.cpp,Driver/Draw/DrawPipeline.cpp,Graphics/Draw.hpp,Graphics/RuntimeSwitches.hpp,Graphics/Draw.cpp,Graphics/RuntimeSwitches.cpp,tests/cmake/agc_driver_prepared_draw_tests.cmake,tests/execution/DrawCacheReuse.cpp,tests/execution/PreparedDraw.cpp, anddocs/dev/ENVIRONMENT.md. Read targeted head context inGraphics/Draw.cppandExecution/src/VulkanDevice.cpp.repo_read.py; no test or build command was run.Results
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Not verified
Execution/src/VulkanDevice.cppwas excluded from the review folder because it was too large; its added lines were visible in the diff, but the full changed file was not read. Therefore, this review does not establish that every changed file is free of defects. No build, test, or runtime checks were performed here; test outcomes and measurements in the PR description are author-reported.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T21:29:30Z.
Review: COMMENTED
Reviewed — comments
The prepared draw path and its device check are consistent in the inspected code, but this review is incomplete because several changed files were not read and no checks were run.
What I ran
No tests or build checks were run. I read the review description, commit list, manifest, and diff, plus targeted source ranges in
Graphics/src/Draw.cppandExecution/src/VulkanDevice.cppat headab77886f61fe6fb4ee5296b2c379d05684aa9efa.Results
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Not verified
The full text of changed files was not read for
Driver.hpp,VulkanDevice.hpp,Execution/src/Driver/Draw/Draw.cpp,Execution/src/Driver/Draw/DrawPipeline.cpp,Graphics/include/Draw.hpp,Graphics/include/RuntimeSwitches.hpp,Graphics/src/RuntimeSwitches.cpp,tests/cmake/agc_driver_prepared_draw_tests.cmake,tests/execution/DrawCacheReuse.cpp,tests/execution/PreparedDraw.cpp, anddocs/dev/ENVIRONMENT.md.Execution/src/VulkanDevice.cppwas read only around the changed functions. Reported CI, local tests, convention checks, and performance measurements are author-provided and were not independently verified. The description says measured performance results are within noise.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T21:31:58Z.
Review: COMMENTED
cd52df4d-8a73-4f61-a729-b50495ed1215Reviewing files that changed from the base of the PR and between
25edb7ac72andab77886f61.core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_prepared_draw_tests.cmakecore/libs/prx/libSceAgcDriver/tests/execution/PreparedDraw.cppdocs/dev/ENVIRONMENT.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-28T03:10:50Z.
Review: COMMENTED
Actionable comments posted: 1
10e6e538-bb68-4875-b26f-df3ff6f3fcdcReviewing files that changed from the base of the PR and between
8a25c6aa8fand1b4f85cf40.core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_prepared_draw_tests.cmakecore/libs/prx/libSceAgcDriver/tests/execution/PreparedDraw.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-28T06:46:35Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this; the points below are optional.
What I ran
Inspected the prepared diff and changed source at head
1b4f85cf402d0dfa6412d90181e7d88b959bc097using the reader tools; no shell, build, or test commands were run. The reviewed change touches 12 files:core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp,core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp,core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp,core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp,core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp,core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp,core/libs/prx/libSceAgcDriver/Graphics/include/RuntimeSwitches.hpp,core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp,core/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cpp,core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_prepared_draw_tests.cmake,core/libs/prx/libSceAgcDriver/tests/execution/DrawCacheReuse.cpp,core/libs/prx/libSceAgcDriver/tests/execution/PreparedDraw.cpp, anddocs/dev/ENVIRONMENT.md.VulkanDevice.cppwas excluded from the prepared files folder because of size, but its changed lines were read through the reader; no changed file was excluded from review.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Build, automated tests, CI results, performance captures, and physical-console behavior were not independently verified. The description reports passing tests and performance measurements.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-28T16:14:02Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the review supports merging, and the checks below were not run independently.
What I ran
Reviewed head
c1fcbd0fa787af95f1ccc518456aa61da9c06d79using the prepared diff and pinned reader. No commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The prepared bundle listed 11 changed files; all were marked included except
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp, excluded because it was too large. I read its changed methods throughrepo_read.py. I did not read every line of each included file or the complete test sources; claims depending on unread portions are not verified. Performance captures and author-reported tests were not independently reproduced.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-29T20:50:45Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the inspected implementation and tests support moving draw planning to the finisher with committer fallback.
What I ran
Reviewed head
f9de7e2339755daff95319d4a9769f8e1bddf847. No commands or tests were run in this session. I read the prepared description, commits, manifest, and full diff, plus all included changed files and the excluded large file’s changed regions throughrepo_read.py.Results
Negative control
Not run in this session. The description reports mutants for the device check, verification placement, and runtime-switch fallback, each failing a test; I did not independently verify those runs.
Findings
Blocking
None.
Non-blocking
None.
Not verified
I did not run tests, builds, or performance captures. The author reports CI, local test, mutant, and console benchmark results in
description.md; these remain author-reported. The changedVulkanDevice.cppwas excluded from the review folder, so I read its changed lines at the pinned head throughrepo_read.py. All changed files listed as reviewed in the manifest were read; no changed file was omitted from this review.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T02:52:15Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the reported tests and inspected code support merging.
What I ran
Reviewed head
74a485489eef639f8b797fe979ba3f80854bf7bb. Read the prepared description, commit list, manifest, diff, and all 12 changed files listed in the manifest, including the fullVulkanDevice.cppchange throughrepo_read.py. No commands or tests were run in this review; test results below are author-reported.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
I did not independently run the tests, reproduce the reported performance measurements, or verify console behavior. The files in the manifest's
reviewedlist were read;VulkanDevice.cppwas read through the pinned reader because it was excluded from the review folder for size. No changed files were excluded from this review.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:13:40Z.
Review: COMMENTED
The trial merge onto
a1b75b0947was clean. I checked the prepared-draw guards for device, plan, and content-key identity and the execution fixtures that switch the finisher mode. Preserve the plan-mismatch fallback and the retained-key coverage when this meets the draw-cache branches. If the PR reports a speed gain, please include the main and changetrace_digest.pysummaries for the same scene and machine. Paired draw-cache validation 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.