feat(agc): record depth-only draws on a recording pool behind APS5_PARALLEL_ATLAS #19697

Merged
Logan1h merged 3 commits from upstream-pr/19697 into main 2026-11-27 14:42:12 +00:00
Logan1h commented 2026-11-13 20:35:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Logan1h on 2026-11-13T20:35:16Z.


What

APS5_PARALLEL_ATLAS=1 records depth-only draws of the atlas pass on a secondary-command-buffer recording pool instead of the render pass's primary list. The flag is off by default (unset, empty, or starting with 0); with it off the change is inert.

  • RecordingPool owns the pooled recorders; a draw is eligible only when the pass is depth-only and no fault tokens are pending (DrawFaultTokens() — so APS5_GPU_CHECKPOINTS disables the pool path), in which case the pool path is skipped entirely.
  • Pipeline::Begin/StartDrawPass/LeaveRenderPassOpen take a secondaryContents path for the pooled recording; noteDrawFaultToken stays inline.
  • ParallelAtlasEnabled() reads the switch's value; docs/dev/ENVIRONMENT.md documents the semantics.
  • The depth-plane-sampling execution test gains a mode where the pool records all 8 depth-only draws of the scene (parallel atlas: 8 of 8 depth-only draws recorded on the recording pool).

Honesty note on scope: in this PR the recording thread is still joined immediately — the committer waits on assembly.Take() for every depth-only draw, so nothing overlaps with the rest of the frame yet and with the switch on this is slightly slower than inline recording; the recorder, resources and thread-local slots are safe precisely because the caller is parked. Deferring the join to the end of the pass, with a ThreadSanitizer run and a paired timing on a title with a shadow atlas, is the follow-up PR.

No title-specific behaviour; the pool path is keyed on pass shape, not on any title.

Tested

Current head 967a12dc6098912de6c62cfb0effe878a21a7d53, rebased onto main 851212fb98fe1da701103a5acf38dfdf8a856615 (2026-11-22); 1 commit ahead, 0 behind at rebase time. This rebase was conflict-free: git merge-tree clean, the PR patch is byte-identical to the previous head 7b5169b70cf (git range-diff shows =, zero diff-of-diffs), and none of the six upstream commits (all reverts — #25189 libressl CONF, #23139 libressl SSL_get1_session, #19566 agc SDWA clamp, plus their merges) touch any file in this diff. The earlier rebase onto ef7dc4452df had two conflicts, resolved and carried forward unchanged in this identical patch: Draw.cpp keeps main's non-movable BorrowedDraw& recordDraw signature and main's moved-push patching (ShaderResources::MovedPushPatches, resources.PatchPushConstants, PatchMovedPushConstants, local movedPush copy, pushBytes/pushStages) inside this PR's relocated recordPassOpen/recordBody lambdas, so the pooled recorder binds the same patched push constants as the inline path; docs/dev/ENVIRONMENT.md is the alphabetical union of the APS5_PARALLEL_ATLAS and APS5_PAUSE_CLOCK_FOR_PIPELINES rows. The diff is 16 files, +495/−59, 3rdparty/ untouched; GitHub reports MERGEABLE. main has since advanced to d8635c3179b (the base tip GitHub merges against) and ffc2be13513; git merge-tree against the current base tip is clean with no file overlap, and the libressl revert 46d238fa7a6 is an ancestor of it. Windows CI triage on the previous head 7b5169b70cf (Build 44953161910, windows job 136998444197): the windows job failed on a single pre-existing test, guest_libressl_conf (Exit code 0xc0000409, assertion tests/Conf.cpp:94 → abort()), 1 of 5530; conventions, library portability (Emscripten 44953161907) and the progress report (44953162087) passed. The same test fails identically on main at the exact previous base ef7dc4452df (run 44953469601, windows job 136998961932: 4723 - guest_libressl_conf, 1 of 6665), and this diff touches no libSceLibreSsl/libc source, so the failure was pre-existing on main, not introduced by this PR. Its root cause was #25189's new CONF test mapping a temp directory via AddPathAlias(path.string()), which fails only on Windows; the maintainer reverted #25189 in 46d238fa7a6 (naming ef7dc4452d), and that revert is now in main. This rebase absorbs the fix, so the new head's windows job runs the corrected Conf.cpp; its CI is in progress. The AGC GPU tests (agc_pass_contents, agc_driver_depth_plane_sampling, _evicting, agc_driver_recorder) are ***Skipped on the GPU-less CI runner, so their verification is the local GPU re-run below.

  • Windows 11, Ryzen 5 7500F, GeForce RTX 4070 SUPER (NVIDIA 621.24), WinLibs GCC 15.2.0 Release, Vulkan SDK 1.4.341.1 — independent re-run on this exact head, 2026-11-22:
    • libSceAgcDriver (including the new RecordingPool.cpp), agc_driver_recorder_tests and agc_driver_depth_plane_sampling_tests build with -DBUILD_TESTING=ON via ninja -j2; the build exits 0 with no error: or FAILED: line.
    • With ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, VK_LOADER_DEBUG=layer, the focused set agc_pass_contents, agc_driver_depth_plane_sampling, agc_driver_depth_plane_sampling_evicting, agc_driver_recorder passes 4 of 4 in each of the three switch states (unset, APS5_PARALLEL_ATLAS=0, APS5_PARALLEL_ATLAS=1). Every state log contains 4 Insert instance layer "VK_LAYER_KHRONOS_validation" lines, 0 was not found but was requested by env var VK_INSTANCE_LAYERS lines and 0 VUID- lines.
    • With the flag unset or =0, both depth-plane tests report parallel atlas: 0 of 8 depth-only draws recorded on the recording pool; with =1 both report 8 of 8.
    • git diff --check, tools/check_conventions.py --base origin/main --head HEAD and tools/check_test_registration.py --scripts pass on this head. The configured-build registration check reports 3329 test executables, 0 built but not run, and every core/libs/prx source that defines an APS5_VABI function is compiled.
      python3 tools/pr_overlap.py --branch rebase/pr19697-parallel-draw-main-20261117 completed a full scan on this head (2364 open PRs against main, 2363 probed, 275 share files or exports) and exited 2 (fail-closed): 7 confirmed line-overlaps — #8246 (Draw.cpp L3090-3091), #10894 (DepthPlaneSampling.cpp L6-7, L76-77), #15572 (Draw.cpp L3194-3199), #22531 (DepthPlaneSampling.cpp L77), #24327 (Recorder.cpp L1665-1668), #24572 and #24735 (Draw.cpp L3206) — and 121 unconfirmed (their heads conflict with current main, so the tool cannot project their lines). Among the unconfirmed, #17943/#18029 are the encoder-thread recording stack in the same parallel-recording domain (Draw.cpp/Recorder.cpp): they were confirmed against the older base but now conflict with main, so merge order matters and pr_overlap must be re-run at merge time. No open PR implements the same depth-only recording pool (RecordingPool/OrderedAssembly/APS5_PARALLEL_ATLAS).
  • Historical paired gate on the previous head 0cab3b02b575565827a3192e10fafc969f8ae2fb (rebased onto f87ede04b82dacb196ee460b060994b9767d7338): tools/vulkan_validation_gate.py, baseline f87ede04b82 vs that head, APS5_PARALLEL_ATLAS=1, agc_driver_depth_plane_sampling, two iterations per side: status=complete, exit_code=0, problems=[]; every run inserted VK_LAYER_KHRONOS_validation, no new diagnostics, 8 of 8 pooled draws in both iterations. This is not a current-head run; the independent re-run above is the current verification.
  • Historical Linux/Ada cross-check of pre-rebase head a886cc9057 by domx4q (report): Arch Linux, GCC 16.2.1, RTX 4090, proprietary driver 620.70.06, that head merged cleanly onto then-main 1adc0e2f4b. With and without APS5_PARALLEL_ATLAS=1, baseline passed 3 of 3 and the PR passed 4 of 4 focused tests; every selected device was the RTX 4090, the Khronos layer was inserted, and no VUID- was reported. Both depth-plane tests reported 0 of 8 pooled draws with the switch off and 8 of 8 with it on. This is not a current-head run.

No speed claim: the flag is off by default and this PR makes no performance assertion.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: RTX 4070 SUPER (Windows 11, 621.24) and RTX 4090 (Linux, 620.70.06), focused AGC tests above
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5302457185 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19697). Originally posted by [Logan1h](https://github.com/Logan1h) on 2026-11-13T20:35:16Z. --- ### What `APS5_PARALLEL_ATLAS=1` records depth-only draws of the atlas pass on a secondary-command-buffer recording pool instead of the render pass's primary list. The flag is off by default (unset, empty, or starting with `0`); with it off the change is inert. - `RecordingPool` owns the pooled recorders; a draw is eligible only when the pass is depth-only and no fault tokens are pending (`DrawFaultTokens()` — so `APS5_GPU_CHECKPOINTS` disables the pool path), in which case the pool path is skipped entirely. - `Pipeline::Begin`/`StartDrawPass`/`LeaveRenderPassOpen` take a `secondaryContents` path for the pooled recording; `noteDrawFaultToken` stays inline. - `ParallelAtlasEnabled()` reads the switch's value; `docs/dev/ENVIRONMENT.md` documents the semantics. - The depth-plane-sampling execution test gains a mode where the pool records all 8 depth-only draws of the scene (`parallel atlas: 8 of 8 depth-only draws recorded on the recording pool`). Honesty note on scope: in this PR the recording thread is still joined immediately — the committer waits on `assembly.Take()` for every depth-only draw, so nothing overlaps with the rest of the frame yet and with the switch on this is slightly slower than inline recording; the recorder, resources and thread-local slots are safe precisely because the caller is parked. Deferring the join to the end of the pass, with a ThreadSanitizer run and a paired timing on a title with a shadow atlas, is the follow-up PR. No title-specific behaviour; the pool path is keyed on pass shape, not on any title. ### Tested Current head `967a12dc6098912de6c62cfb0effe878a21a7d53`, rebased onto `main` `851212fb98fe1da701103a5acf38dfdf8a856615` (2026-11-22); 1 commit ahead, 0 behind at rebase time. This rebase was conflict-free: `git merge-tree` clean, the PR patch is byte-identical to the previous head `7b5169b70cf` (`git range-diff` shows `=`, zero diff-of-diffs), and none of the six upstream commits (all reverts — #25189 libressl CONF, #23139 libressl `SSL_get1_session`, #19566 agc SDWA clamp, plus their merges) touch any file in this diff. The earlier rebase onto `ef7dc4452df` had two conflicts, resolved and carried forward unchanged in this identical patch: `Draw.cpp` keeps main's non-movable `BorrowedDraw&` `recordDraw` signature and main's moved-push patching (`ShaderResources::MovedPushPatches`, `resources.PatchPushConstants`, `PatchMovedPushConstants`, local `movedPush` copy, `pushBytes`/`pushStages`) inside this PR's relocated `recordPassOpen`/`recordBody` lambdas, so the pooled recorder binds the same patched push constants as the inline path; `docs/dev/ENVIRONMENT.md` is the alphabetical union of the `APS5_PARALLEL_ATLAS` and `APS5_PAUSE_CLOCK_FOR_PIPELINES` rows. The diff is 16 files, +495/−59, `3rdparty/` untouched; GitHub reports `MERGEABLE`. `main` has since advanced to `d8635c3179b` (the base tip GitHub merges against) and `ffc2be13513`; `git merge-tree` against the current base tip is clean with no file overlap, and the libressl revert `46d238fa7a6` is an ancestor of it. Windows CI triage on the previous head `7b5169b70cf` (Build `44953161910`, windows job `136998444197`): the `windows` job failed on a single pre-existing test, `guest_libressl_conf` (`Exit code 0xc0000409`, assertion `tests/Conf.cpp:94` → `abort()`), 1 of 5530; conventions, library portability (Emscripten `44953161907`) and the progress report (`44953162087`) passed. The same test fails identically on `main` at the exact previous base `ef7dc4452df` (run `44953469601`, windows job `136998961932`: `4723 - guest_libressl_conf`, 1 of 6665), and this diff touches no `libSceLibreSsl`/`libc` source, so the failure was pre-existing on `main`, not introduced by this PR. Its root cause was #25189's new CONF test mapping a temp directory via `AddPathAlias(path.string())`, which fails only on Windows; the maintainer reverted #25189 in `46d238fa7a6` (naming `ef7dc4452d`), and that revert is now in `main`. This rebase absorbs the fix, so the new head's `windows` job runs the corrected `Conf.cpp`; its CI is in progress. The AGC GPU tests (`agc_pass_contents`, `agc_driver_depth_plane_sampling`, `_evicting`, `agc_driver_recorder`) are `***Skipped` on the GPU-less CI runner, so their verification is the local GPU re-run below. - Windows 11, Ryzen 5 7500F, GeForce RTX 4070 SUPER (NVIDIA 621.24), WinLibs GCC 15.2.0 Release, Vulkan SDK 1.4.341.1 — independent re-run on this exact head, 2026-11-22: - `libSceAgcDriver` (including the new `RecordingPool.cpp`), `agc_driver_recorder_tests` and `agc_driver_depth_plane_sampling_tests` build with `-DBUILD_TESTING=ON` via `ninja -j2`; the build exits 0 with no `error:` or `FAILED:` line. - With `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `VK_LOADER_DEBUG=layer`, the focused set `agc_pass_contents`, `agc_driver_depth_plane_sampling`, `agc_driver_depth_plane_sampling_evicting`, `agc_driver_recorder` passes 4 of 4 in each of the three switch states (unset, `APS5_PARALLEL_ATLAS=0`, `APS5_PARALLEL_ATLAS=1`). Every state log contains 4 `Insert instance layer "VK_LAYER_KHRONOS_validation"` lines, 0 `was not found but was requested by env var VK_INSTANCE_LAYERS` lines and 0 `VUID-` lines. - With the flag unset or `=0`, both depth-plane tests report `parallel atlas: 0 of 8 depth-only draws recorded on the recording pool`; with `=1` both report `8 of 8`. - `git diff --check`, `tools/check_conventions.py --base origin/main --head HEAD` and `tools/check_test_registration.py --scripts` pass on this head. The configured-build registration check reports 3329 test executables, 0 built but not run, and every `core/libs/prx` source that defines an `APS5_VABI` function is compiled. `python3 tools/pr_overlap.py --branch rebase/pr19697-parallel-draw-main-20261117` completed a full scan on this head (2364 open PRs against `main`, 2363 probed, 275 share files or exports) and exited 2 (fail-closed): **7 confirmed line-overlaps** — #8246 (`Draw.cpp` L3090-3091), #10894 (`DepthPlaneSampling.cpp` L6-7, L76-77), #15572 (`Draw.cpp` L3194-3199), #22531 (`DepthPlaneSampling.cpp` L77), #24327 (`Recorder.cpp` L1665-1668), #24572 and #24735 (`Draw.cpp` L3206) — and **121 unconfirmed** (their heads conflict with current `main`, so the tool cannot project their lines). Among the unconfirmed, **#17943/#18029** are the encoder-thread recording stack in the same parallel-recording domain (`Draw.cpp`/`Recorder.cpp`): they were confirmed against the older base but now conflict with `main`, so merge order matters and `pr_overlap` must be re-run at merge time. No open PR implements the same depth-only recording pool (`RecordingPool`/`OrderedAssembly`/`APS5_PARALLEL_ATLAS`). - Historical paired gate on the previous head `0cab3b02b575565827a3192e10fafc969f8ae2fb` (rebased onto `f87ede04b82dacb196ee460b060994b9767d7338`): `tools/vulkan_validation_gate.py`, baseline `f87ede04b82` vs that head, `APS5_PARALLEL_ATLAS=1`, `agc_driver_depth_plane_sampling`, two iterations per side: `status=complete`, `exit_code=0`, `problems=[]`; every run inserted `VK_LAYER_KHRONOS_validation`, no new diagnostics, 8 of 8 pooled draws in both iterations. This is not a current-head run; the independent re-run above is the current verification. - Historical Linux/Ada cross-check of pre-rebase head `a886cc9057` by `domx4q` ([report](https://github.com/boykopovar/AnyPS5/pull/19697#issuecomment-6957294880)): Arch Linux, GCC 16.2.1, RTX 4090, proprietary driver 620.70.06, that head merged cleanly onto then-main `1adc0e2f4b`. With and without `APS5_PARALLEL_ATLAS=1`, baseline passed 3 of 3 and the PR passed 4 of 4 focused tests; every selected device was the RTX 4090, the Khronos layer was inserted, and no `VUID-` was reported. Both depth-plane tests reported 0 of 8 pooled draws with the switch off and 8 of 8 with it on. This is not a current-head run. No speed claim: the flag is off by default and this PR makes no performance assertion. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: RTX 4070 SUPER (Windows 11, 621.24) and RTX 4090 (Linux, 620.70.06), focused AGC tests above - [x] AI-assisted: yes
MarcZX10 commented 2026-11-19 22:29:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T22:29:11Z.

Review: COMMENTED


Reviewed — comments

The review covers the changed implementation and tests at head 0cab3b02b575565827a3192e10fafc969f8ae2fb; no checks were run here, and two changed files were not read in full.

What I ran

No commands or tests were run. I inspected the prepared diff and selected changed-file context through repo_read.py.

Results

Check Result Note
Prepared diff review passed Changed hunks inspected
Build and tests not run Author-reported results only
Full file coverage not run Two changed files excluded from the review folder

Findings

Blocking

None found in the code inspected.

Non-blocking

None.

Not verified

The full text of core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp and core/libs/prx/libSceAgcDriver/tests/Recorder.cpp was excluded because each was too large for the review folder; only their diff hunks were inspected. No build, test, validation, or runtime checks were performed here. The Windows and historical Linux results in the PR description are author-reported, not independently confirmed.

Files read: core/libs/prx/libSceAgcDriver/CMakeLists.txt, core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp (changed hunk only), core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp, core/libs/prx/libSceAgcDriver/Graphics/include/OrderedAssembly.hpp, core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp, core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp, core/libs/prx/libSceAgcDriver/Graphics/include/RecordingPool.hpp, core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp, core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp, core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp, core/libs/prx/libSceAgcDriver/Graphics/src/RecordingPool.cpp, core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp, core/libs/prx/libSceAgcDriver/tests/Recorder.cpp (changed hunk only), core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake, core/libs/prx/libSceAgcDriver/tests/execution/DepthPlaneSampling.cpp, and docs/dev/ENVIRONMENT.md. files.json was not available; the listing confirms the two exclusions above.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5984439029 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19697#pullrequestreview-5984439029). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-19T22:29:11Z. **Review:** COMMENTED --- # Reviewed — comments The review covers the changed implementation and tests at head `0cab3b02b575565827a3192e10fafc969f8ae2fb`; no checks were run here, and two changed files were not read in full. ## What I ran No commands or tests were run. I inspected the prepared diff and selected changed-file context through `repo_read.py`. ## Results | Check | Result | Note | |---|---|---| | Prepared diff review | passed | Changed hunks inspected | | Build and tests | not run | Author-reported results only | | Full file coverage | not run | Two changed files excluded from the review folder | ## Findings ### Blocking None found in the code inspected. ### Non-blocking None. ## Not verified The full text of `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` and `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` was excluded because each was too large for the review folder; only their diff hunks were inspected. No build, test, validation, or runtime checks were performed here. The Windows and historical Linux results in the PR description are author-reported, not independently confirmed. Files read: `core/libs/prx/libSceAgcDriver/CMakeLists.txt`, `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` (changed hunk only), `core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp`, `core/libs/prx/libSceAgcDriver/Graphics/include/OrderedAssembly.hpp`, `core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp`, `core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp`, `core/libs/prx/libSceAgcDriver/Graphics/include/RecordingPool.hpp`, `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`, `core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp`, `core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp`, `core/libs/prx/libSceAgcDriver/Graphics/src/RecordingPool.cpp`, `core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp`, `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` (changed hunk only), `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake`, `core/libs/prx/libSceAgcDriver/tests/execution/DepthPlaneSampling.cpp`, and `docs/dev/ENVIRONMENT.md`. `files.json` was not available; the listing confirms the two exclusions above. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-21 03:47:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T03:47:05Z.

Review: COMMENTED


Reviewed — no blocking findings

The prepared bundle and targeted source context show no verified blocking defect; a complete review and independent checks were not possible in this session.

What I ran

Reviewed head 356be689d624b321b37b0139d7c4cb163fe1f1d0 using the prepared diff and repo_read.py source context. No build or tests were run here. The description reports Windows builds and focused test runs; those are author-reported results, not runs performed for this review.

Results

Check Result Note
Prepared diff and targeted source passed Reviewed pool recording and render-pass changes
Build and tests not run Results in the description are author-reported
Negative control not run No modified-code failure check was run

Findings

Blocking

None verified.

Non-blocking

None.

Not verified

The full text of core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp and core/libs/prx/libSceAgcDriver/tests/Recorder.cpp was excluded from the bundle; only relevant diff hunks were inspected. Other changed files were listed in the manifest, but this review read targeted ranges rather than every full file. Runtime behavior, builds, and tests were not independently verified.

To get this to a good state

Nothing is required. Optional: independently run the focused build and tests on this head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6002643218 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19697#pullrequestreview-6002643218). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T03:47:05Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The prepared bundle and targeted source context show no verified blocking defect; a complete review and independent checks were not possible in this session. ## What I ran Reviewed head `356be689d624b321b37b0139d7c4cb163fe1f1d0` using the prepared diff and `repo_read.py` source context. No build or tests were run here. The description reports Windows builds and focused test runs; those are author-reported results, not runs performed for this review. ## Results | Check | Result | Note | |---|---|---| | Prepared diff and targeted source | passed | Reviewed pool recording and render-pass changes | | Build and tests | not run | Results in the description are author-reported | | Negative control | not run | No modified-code failure check was run | ## Findings ### Blocking None verified. ### Non-blocking None. ## Not verified The full text of `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` and `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` was excluded from the bundle; only relevant diff hunks were inspected. Other changed files were listed in the manifest, but this review read targeted ranges rather than every full file. Runtime behavior, builds, and tests were not independently verified. ## To get this to a good state Nothing is required. Optional: independently run the focused build and tests on this head.
MarcZX10 commented 2026-11-21 13:02:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T13:02:24Z.

Review: COMMENTED


Reviewed — no blocking findings

This review cannot be completed because the required reader and review-folder contents were not available through the provided tools.

What I ran

Not run. The pinned-head reader was unavailable.

Results

Check Result Note
Review inputs not run Could not access review folder
Changed code not run Could not inspect the pinned head

Findings

Blocking

None verified.

Non-blocking

None.

Not verified

The description, commits, diff, manifest, changed files, and test coverage were not read. No files can be confirmed as read against the reviewed list.

To get this to a good state

Provide access to the review inputs and pinned-head reader, then complete the review before selecting a verdict.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6005336948 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19697#pullrequestreview-6005336948). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T13:02:24Z. **Review:** COMMENTED --- # Reviewed — no blocking findings This review cannot be completed because the required reader and review-folder contents were not available through the provided tools. ## What I ran Not run. The pinned-head reader was unavailable. ## Results | Check | Result | Note | |---|---|---| | Review inputs | not run | Could not access review folder | | Changed code | not run | Could not inspect the pinned head | ## Findings ### Blocking None verified. ### Non-blocking None. ## Not verified The description, commits, diff, manifest, changed files, and test coverage were not read. No files can be confirmed as read against the reviewed list. ## To get this to a good state Provide access to the review inputs and pinned-head reader, then complete the review before selecting a verdict.
MarcZX10 commented 2026-11-22 11:17:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T11:17:58Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Changes are required before merge: fix the worker command-buffer lifecycle so buffers are not returned to a command pool while still pending on the GPU.

What I ran

Reviewed head 967a12dc6098912de6c62cfb0effe878a21a7d53. No commands or tests were run; inspected the prepared diff and targeted code through repo_read.py.

Results

Check Result Note
Source review failed Found a command-buffer reuse defect
Build and tests not run Author-reported Windows GPU run is not independently verified

Findings

Blocking

  • core/libs/prx/libSceAgcDriver/Graphics/src/RecordingPool.cpp:143: the Release object returns each secondary command buffer to the worker's reusable list when the recorder releases its keep-alive. That occurs when the recording batch is retired, not when Vulkan has necessarily finished executing the batch. On a later draw, acquire can retrieve that same buffer and resetBuffer/beginBuffer it while it is still pending in a submitted batch, which violates Vulkan command-buffer lifetime rules and can cause validation errors or corrupted rendering. Keep the buffer unavailable until completion of the submission that references it (or allocate a fresh buffer per in-flight use and recycle only after the corresponding fence signals).

Non-blocking

None.

Not verified

  • Read the complete diff and full head text for the changed driver and documentation files except core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp and core/libs/prx/libSceAgcDriver/tests/Recorder.cpp, which were excluded from the review folder; their relevant changed ranges were inspected with repo_read.py.
  • Did not independently verify author-reported build, GPU tests, CI state, or merge-base claims.

To get this to a good state

Tie secondary command-buffer recycling to GPU completion, then rerun the Vulkan validation and focused depth-only recording tests with the pool enabled.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6011949433 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19697#pullrequestreview-6011949433). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-22T11:17:58Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Changes are required before merge: fix the worker command-buffer lifecycle so buffers are not returned to a command pool while still pending on the GPU. ## What I ran Reviewed head `967a12dc6098912de6c62cfb0effe878a21a7d53`. No commands or tests were run; inspected the prepared diff and targeted code through `repo_read.py`. ## Results | Check | Result | Note | |---|---|---| | Source review | failed | Found a command-buffer reuse defect | | Build and tests | not run | Author-reported Windows GPU run is not independently verified | ## Findings ### Blocking - `core/libs/prx/libSceAgcDriver/Graphics/src/RecordingPool.cpp:143`: the `Release` object returns each secondary command buffer to the worker's reusable list when the recorder releases its keep-alive. That occurs when the recording batch is retired, not when Vulkan has necessarily finished executing the batch. On a later draw, `acquire` can retrieve that same buffer and `resetBuffer`/`beginBuffer` it while it is still pending in a submitted batch, which violates Vulkan command-buffer lifetime rules and can cause validation errors or corrupted rendering. Keep the buffer unavailable until completion of the submission that references it (or allocate a fresh buffer per in-flight use and recycle only after the corresponding fence signals). ### Non-blocking None. ## Not verified - Read the complete diff and full head text for the changed driver and documentation files except `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` and `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`, which were excluded from the review folder; their relevant changed ranges were inspected with `repo_read.py`. - Did not independently verify author-reported build, GPU tests, CI state, or merge-base claims. ## To get this to a good state Tie secondary command-buffer recycling to GPU completion, then rerun the Vulkan validation and focused depth-only recording tests with the pool enabled.
MarcZX10 commented 2026-11-25 18:58:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T18:58:57Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Changes are required before merge: remove the unresolved merge-conflict markers from the changed source and documentation files.

What I ran

  • Reviewed head c40dcb5d1537e08c5d26b6075e92f712e8d82e54 using repo_read.py to inspect the prepared diff and repository files.
  • No build or tests were run during this review.

Results

Check Result Note
Diff and manifest passed 16 changed files listed
Conflict marker search failed Markers found in three changed files
Build and tests not run No checks run during review

Findings

Blocking

  • Literal unresolved merge-conflict markers remain in Recorder.hpp, Draw.cpp, and ENVIRONMENT.md. The markers split function declarations and draw timing logic; as committed, the C++ sources cannot compile. Resolve the conflicts and retain the intended combined changes. Evidence: core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp:195, core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp:3293, docs/dev/ENVIRONMENT.md:504.

Non-blocking

None.

Not verified

  • Build and test behavior was not run.
  • The full text of core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp and core/libs/prx/libSceAgcDriver/tests/Recorder.cpp was excluded by the prepared review folder; their changed hunks were inspected in diff.patch only.
  • Other changed files whose full text is in review/files/ were not all read in full; review focused on the pool implementation, draw path, assembly helper, and conflict locations.
  • Description-reported CI and GPU test results were not independently run for this review.

To get this to a good state

Resolve the conflict markers in the three cited files, then run the build and focused tests for the changed recording path on the new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6063301054 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19697#pullrequestreview-6063301054). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-25T18:58:57Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Changes are required before merge: remove the unresolved merge-conflict markers from the changed source and documentation files. ## What I ran - Reviewed head `c40dcb5d1537e08c5d26b6075e92f712e8d82e54` using `repo_read.py` to inspect the prepared diff and repository files. - No build or tests were run during this review. ## Results | Check | Result | Note | |---|---|---| | Diff and manifest | passed | 16 changed files listed | | Conflict marker search | failed | Markers found in three changed files | | Build and tests | not run | No checks run during review | ## Findings ### Blocking - Literal unresolved merge-conflict markers remain in `Recorder.hpp`, `Draw.cpp`, and `ENVIRONMENT.md`. The markers split function declarations and draw timing logic; as committed, the C++ sources cannot compile. Resolve the conflicts and retain the intended combined changes. Evidence: `core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp:195`, `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp:3293`, `docs/dev/ENVIRONMENT.md:504`. ### Non-blocking None. ## Not verified - Build and test behavior was not run. - The full text of `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` and `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` was excluded by the prepared review folder; their changed hunks were inspected in `diff.patch` only. - Other changed files whose full text is in `review/files/` were not all read in full; review focused on the pool implementation, draw path, assembly helper, and conflict locations. - Description-reported CI and GPU test results were not independently run for this review. ## To get this to a good state Resolve the conflict markers in the three cited files, then run the build and focused tests for the changed recording path on the new head.
MarcZX10 commented 2026-11-25 19:31:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T19:31:56Z.

Review: DISMISSED


Reviewed — changes requested

The changed depth plane sampling test refers to stencilValue after removing it from DrawDepth’s parameter list, so the test cannot compile.

What I ran

Reviewed head 960a77e61617169d0e43af858293f84c2f0b3560 using the prepared diff and the pinned repo_read.py reader. No build or tests were run.

Results

Check Result Note
Diff review passed 16 changed files inspected
Build and tests not run No commands run

Findings

Blocking

  • core/libs/prx/libSceAgcDriver/tests/execution/DepthPlaneSampling.cpp:190: DrawDepth no longer accepts stencilValue, but its body still calls stencilValue.has_value() and dereferences it (around lines 243–246). This leaves the identifier undeclared and prevents compilation. Remove the stale block or restore an appropriate parameter and call-site handling.

Non-blocking

None.

Not verified

No build, test run, or CI results were independently verified. Full head text was not read for every changed file. The prepared diff covered all 16 changed files; the manifest marks core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp and core/libs/prx/libSceAgcDriver/tests/Recorder.cpp as excluded from the review folder. Targeted head ranges were read in Draw.cpp, Pipeline.cpp, Recorder.cpp, RecordingPool.cpp, VulkanDevice.cpp, and DepthPlaneSampling.cpp; the added OrderedAssembly.hpp was read in full.

To get this to a good state

Fix the stale stencilValue references, then build and run the affected tests on the new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6063767599 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19697#pullrequestreview-6063767599). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-25T19:31:56Z. **Review:** DISMISSED --- # Reviewed — changes requested The changed depth plane sampling test refers to `stencilValue` after removing it from `DrawDepth`’s parameter list, so the test cannot compile. ## What I ran Reviewed head `960a77e61617169d0e43af858293f84c2f0b3560` using the prepared diff and the pinned `repo_read.py` reader. No build or tests were run. ## Results | Check | Result | Note | |---|---|---| | Diff review | passed | 16 changed files inspected | | Build and tests | not run | No commands run | ## Findings ### Blocking - `core/libs/prx/libSceAgcDriver/tests/execution/DepthPlaneSampling.cpp:190`: `DrawDepth` no longer accepts `stencilValue`, but its body still calls `stencilValue.has_value()` and dereferences it (around lines 243–246). This leaves the identifier undeclared and prevents compilation. Remove the stale block or restore an appropriate parameter and call-site handling. ### Non-blocking None. ## Not verified No build, test run, or CI results were independently verified. Full head text was not read for every changed file. The prepared diff covered all 16 changed files; the manifest marks `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` and `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` as excluded from the review folder. Targeted head ranges were read in `Draw.cpp`, `Pipeline.cpp`, `Recorder.cpp`, `RecordingPool.cpp`, `VulkanDevice.cpp`, and `DepthPlaneSampling.cpp`; the added `OrderedAssembly.hpp` was read in full. ## To get this to a good state Fix the stale `stencilValue` references, then build and run the affected tests on the new head.
MarcZX10 commented 2026-11-25 20:19:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T20:19:14Z.

Review: COMMENTED


Reviewed — no blocking findings

The reviewed change at 7f46b210c7170bd1d854bed993162c9b77ec5a1b adds an opt-in pool for recording eligible depth-only draws; I found no verified blocking defect, but two changed files were not read in full and no checks were run during this review.

What I ran

No build or tests were run. I read the prepared description, commit list, diff, manifest, and changed source ranges through repo_read.py.

Results

Check Result Note
Diff and targeted source review passed Reviewed changed code paths
Build and tests not run Author-reported results are not independently verified

Findings

Blocking

None identified in the code reviewed.

Non-blocking

  • RecordingPool::Record queues each draw, then Draw.cpp immediately waits on assembly.Take(). This prevents recording from overlapping with other frame work, as the description acknowledges. Consider measuring again when a later change defers the join.

Not verified

  • VulkanDevice.cpp and tests/Recorder.cpp were excluded from the prepared review folder; their changed lines are visible in the diff, but I did not read the full files through the pinned reader. Therefore those files are not fully reviewed.
  • I did not run a build, tests, Vulkan validation, or hardware checks. The test and hardware results in the PR description are author-reported.
  • Other files in the diff were inspected at changed ranges or relevant functions, rather than read in full.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6064369588 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19697#pullrequestreview-6064369588). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-25T20:19:14Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The reviewed change at `7f46b210c7170bd1d854bed993162c9b77ec5a1b` adds an opt-in pool for recording eligible depth-only draws; I found no verified blocking defect, but two changed files were not read in full and no checks were run during this review. ## What I ran No build or tests were run. I read the prepared description, commit list, diff, manifest, and changed source ranges through `repo_read.py`. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted source review | passed | Reviewed changed code paths | | Build and tests | not run | Author-reported results are not independently verified | ## Findings ### Blocking None identified in the code reviewed. ### Non-blocking - `RecordingPool::Record` queues each draw, then `Draw.cpp` immediately waits on `assembly.Take()`. This prevents recording from overlapping with other frame work, as the description acknowledges. Consider measuring again when a later change defers the join. ## Not verified - `VulkanDevice.cpp` and `tests/Recorder.cpp` were excluded from the prepared review folder; their changed lines are visible in the diff, but I did not read the full files through the pinned reader. Therefore those files are not fully reviewed. - I did not run a build, tests, Vulkan validation, or hardware checks. The test and hardware results in the PR description are author-reported. - Other files in the diff were inspected at changed ranges or relevant functions, rather than read in full. ## To get this to a good state Nothing is required.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!19697
No description provided.