Skip to content

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

Merged
oneandonlydean merged 3 commits into
boykopovar:mainfrom
Logan1h:rearch/parallel-draw-main
Nov 27, 2026
Merged

oneandonlydean merged 3 commits into
boykopovar:mainfrom
Logan1h:rearch/parallel-draw-main

Conversation

@Logan1h

@Logan1h Logan1h commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

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:
  • 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

@Logan1h

Logan1h commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

Overlap note (pr_overlap could not test-merge, compared manually): this branch textually conflicts with #18390 in core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp; whichever lands second rebases over that hunk. #18515 is a tracking draft marked not-for-merge; it touches the same Draw.cpp/Driver.hpp regions but is noted here only for awareness. AI-assisted: yes.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@Logan1h I reviewed 80a0a1b. With the switch off I found nothing that changes behaviour, so I am passing it as an opt-in perf step, with three notes for follow-up.

  1. pool.Record() is followed straight away by assembly.Take(), so the submitting thread waits for the worker on every depth-only draw. Nothing overlaps with the rest of the frame yet, which the body says it does, and with the switch on this is probably a little slower than inline recording. A real gain needs the join deferred to the end of the pass, plus a ThreadSanitizer run and a paired timing on a title with a shadow atlas, because the recorder, resources and thread-local slots are only safe now because the caller is parked.
  2. The switch is presence based, so APS5_PARALLEL_ATLAS=0 turns it on, while the body says it defaults to 0. Please make the check read the value, or say so in the docs.
  3. The ENVIRONMENT.md row should mention that APS5_GPU_CHECKPOINTS also disables it.

A default-off gate run of PPSA21564 on this head would show that the recordDraw refactor into lambdas is neutral.

@Logan1h
Logan1h force-pushed the rearch/parallel-draw-main branch from 80a0a1b to 0303c68 Compare November 13, 2026 22:08
@Logan1h

Logan1h commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

@oneandonlydean All three notes are in 0303c68:

  1. Body fixed: it now says plainly that the committer waits on assembly.Take() for every depth-only draw (caller parked, nothing overlaps yet), and that the end-of-pass join with a TSan run and a paired shadow-atlas title timing is the follow-up PR.
  2. The switch now reads its value, matching APS5_PIPELINE_DISPATCH: unset, empty or starting with '0' leaves it off — verified on the depth-plane test: APS5_PARALLEL_ATLAS=0 records 0 of 8 on the pool, =1 records 8 of 8. The test also skips the pool path under APS5_GPU_CHECKPOINTS.
  3. The ENVIRONMENT.md row now says the flag is value-read and that it is ignored with APS5_PROFILE_GPU_DRAWS or APS5_GPU_CHECKPOINTS.

Re-ran the three focused tests on this head with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation in both switch states: all pass, no VUID- lines. check_conventions.py and git diff --check are clean.

On the PPSA21564 default-off gate run: noted — I don't have that title locally, so if the neutral-refactor gate matters for merge, I'd need a run from someone who has it installed.

AI-assisted: yes.

@c1b3r-p3d1a

Copy link
Copy Markdown
Contributor

AMD run of head 0303c68f1d, merged onto main 1edac2f2ea (clean merge). Setup: Windows 11, AMD Radeon RX 7700 XT (driver 32.0.32015.7029, graphics pipeline libraries available), WinLibs GCC 15.2, Release.

ctest -R 'depth_plane_sampling|^agc_driver_recorder' -V covers agc_driver_depth_plane_sampling, _evicting and agc_driver_recorder. I ran it with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (layer 1.4.368), VK_LOADER_DEBUG=layer, ANYPS5_NO_SHADER_CACHE=1 and ANYPS5_REQUIRE_VULKAN=1:

passed parallel atlas: line layer inserted / not-found / VUID-
main 3 / 3 — 3 / 0 / 0
this PR, switch unset 3 / 3 0 of 8 in both depth-plane tests 3 / 0 / 0
this PR, APS5_PARALLEL_ATLAS=1 3 / 3 8 of 8 in both depth-plane tests 3 / 0 / 0
this PR, APS5_PARALLEL_ATLAS=1, --repeat until-fail:10 on the two depth-plane tests 20 / 20 8 of 8 in all 20 0 VUID-

So on AMD's Windows driver the pooled path records all eight depth-only draws as secondary command buffers inside VK_RENDERING_CONTENTS_SECONDARY_COMMAND_BUFFERS_BIT passes. The validation layer reports nothing on the inheritance info, the barriers or vkCmdExecuteCommands, and the off path is unchanged. The recording thread is still joined right away, as the body says, so this does not exercise any real overlap. No timing was taken.

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 17943 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp L3255, L3289-3291, L3350-3352
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp L13955, L13967-13968, L14788
PR 18029 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp L3255, L3289-3291, L3350-3352
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp L13955, L13967-13968, L14788
PR 20041 core/libs/prx/libSceAgcDriver/tests/execution/DepthPlaneSampling.cpp L108, L212, L235, L274-275
PR 22697 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp L3255, L3289-3291, L3301-3302, L3339-3340, L3346-3347, L3350-3352
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp L13967-13968, L14788
PR 24327 core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp L1671-1674
PR 24572 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp L3342
PR 24735 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp L3342
PR 26691 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp L3219, L3274

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 1368 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 1395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 1896 docs/dev/ENVIRONMENT.md
PR 4040 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4448 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 4472 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 4847 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5371 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5609 core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.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
PR 5925 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6186 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 6188 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6192 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6209 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6280 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6412 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6481 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 6553 core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 6808 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6924 docs/dev/ENVIRONMENT.md
PR 7256 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 7275 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
docs/dev/ENVIRONMENT.md
PR 7642 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.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/Resources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 7643 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 8246 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 8592 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 9289 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 9345 docs/dev/ENVIRONMENT.md
PR 9356 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.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
docs/dev/ENVIRONMENT.md
PR 9387 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.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
docs/dev/ENVIRONMENT.md
PR 9508 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.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/Resources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 9712 core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 9852 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 9897 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 9915 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 10193 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.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/Resources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 10351 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
PR 10359 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 10442 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 10497 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 10652 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 11435 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 11436 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 11444 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
PR 11452 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 11483 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 11551 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 11825 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 12324 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 12746 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 12828 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 12849 docs/dev/ENVIRONMENT.md
PR 12944 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 13148 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 13251 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 13809 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 13863 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 13920 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 13928 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.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/Resources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 13929 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.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/Resources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 14032 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 14262 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 14944 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 15136 core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 15296 core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 15343 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 15456 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 15529 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 15548 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.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
docs/dev/ENVIRONMENT.md
PR 15570 core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 15621 core/libs/prx/libSceAgcDriver/tests/execution/DepthPlaneSampling.cpp
PR 16217 docs/dev/ENVIRONMENT.md
PR 16372 docs/dev/ENVIRONMENT.md
PR 16571 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 16793 docs/dev/ENVIRONMENT.md
PR 16831 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 16879 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 16953 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 17056 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 17557 docs/dev/ENVIRONMENT.md
PR 17611 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.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
docs/dev/ENVIRONMENT.md
PR 17719 docs/dev/ENVIRONMENT.md
PR 17729 docs/dev/ENVIRONMENT.md
PR 18082 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 18173 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 18226 docs/dev/ENVIRONMENT.md
PR 18293 docs/dev/ENVIRONMENT.md
PR 18390 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 19557 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 19610 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 20030 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 20111 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 20172 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 20248 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 20315 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.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/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 20518 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
docs/dev/ENVIRONMENT.md
PR 20519 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.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
docs/dev/ENVIRONMENT.md
PR 21059 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 21211 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 21225 docs/dev/ENVIRONMENT.md
PR 21649 docs/dev/ENVIRONMENT.md
PR 21746 docs/dev/ENVIRONMENT.md
PR 22001 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 22025 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 22071 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 22190 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 22424 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.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
docs/dev/ENVIRONMENT.md
PR 22434 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 22439 core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
PR 22493 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 22531 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/tests/execution/DepthPlaneSampling.cpp
PR 22647 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 22787 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 22944 docs/dev/ENVIRONMENT.md
PR 23244 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 23252 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 23596 docs/dev/ENVIRONMENT.md
PR 23811 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
docs/dev/ENVIRONMENT.md
PR 23975 docs/dev/ENVIRONMENT.md
PR 24049 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 24083 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 24346 docs/dev/ENVIRONMENT.md
PR 24444 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 24661 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 25010 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 25534 core/libs/prx/libSceAgcDriver/tests/execution/DepthPlaneSampling.cpp
docs/dev/ENVIRONMENT.md
PR 25557 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 25609 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 25610 core/libs/prx/libSceAgcDriver/tests/execution/DepthPlaneSampling.cpp
PR 25684 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 26165 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 26197 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 26340 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 26384 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 26582 docs/dev/ENVIRONMENT.md
PR 26608 docs/dev/ENVIRONMENT.md
PR 26706 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 26913 docs/dev/ENVIRONMENT.md
PR 27133 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 27288 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 27343 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 27698 core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp

@JJenkx

JJenkx commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Windows check of head 0303c68f1d. Setup: Windows 11 Enterprise 22621, AMD RX 6700 XT, AMD driver 26.10.1, MinGW-w64 GCC 15.2 UCRT, Release.

all 137 selected tests (agc_bda_staging, agc_changed_copy, agc_collect_mapping_history_map, agc_collect_mapping_history_ring, ...):

  • GPU, through the shared Windows GPU FIFO with ANYPS5_REQUIRE_VULKAN=1, merged onto main 6fd2999417 (merge a29730f0e1): all 137 passed in 3 of 3 runs, 411 of 411 outcomes. The binaries matched the hashes recorded at preparation, and the receipt shows exit 0 and app_count=0.
  • CPU, Vulkan hidden, merged onto main 4c0ba9f573 (merge b9b1f5b1b8): 16 passed and 121 skipped (they need a device), 0 failed, in each of 3 runs.

AI-assisted: yes.

@mrfelek

mrfelek commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

@Logan1h @oneandonlydean here is the PPSA21564 default-off gate run on head 0303c68f1d, on Linux with NVIDIA, plus the switch-on case. With the switch off this head matches main on both scenes. With APS5_PARALLEL_ATLAS=1 the pool runs in the title and nothing breaks or slows down. The focused tests pass with the validation layer in both switch states.

Setup: Linux 7.3, RTX 3080 Ti 12 GB, NVIDIA 615.71.09, Ryzen 9 5950X, GCC 15.3, Release. A is main e5dba50ccb. B is this head merged onto it, with no conflicts.

Tests: ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer, ctest -V -R 'depth_plane_sampling|^agc_driver_recorder|^agc_pass_contents'.

arm tests run 1 run 2 parallel atlas: line VUID- lines
main 3 3 pass 3 pass — 0
this head, switch unset 4 4 pass 4 pass 0 of 8 in both depth-plane tests 0
this head, APS5_PARALLEL_ATLAS=1 4 4 pass 4 pass 8 of 8 in both depth-plane tests 0
this head, =1, --repeat until-fail:10 on the two depth-plane tests 2 20 of 20 pass 8 of 8 in all 20 0

The fourth test on this head is agc_pass_contents, which main doesn't have. Every test logged Insert instance layer "VK_LAYER_KHRONOS_validation", and none printed was not found but was requested.

Title: PPSA21564 01.007.000, 3840x2160, no input, headless. Each run was stopped 90 s after the level started. Every run used the same build and runtime. main differs only in the libs, and the two head arms differ only in the switch. Rounds went main, head, head =1. Presents per second are over the 10 s windows inside the level, leaving out the first one, and GPU busy is per present.

scene arm presents/s GPU busy Driver.Draw per present
-lvl title_controller_ship, round 1 main 17.52 45.1 ms 30.5 ms
head, unset 18.61 44.9 ms 25.1 ms
head, =1 18.93 45.1 ms 25.2 ms
-lvl title_controller_ship, round 2 main 18.85 45.2 ms 25.2 ms
head, unset 19.03 45.0 ms 25.0 ms
head, =1 19.28 44.5 ms 24.7 ms
-lvl hub_crashsite main 10.82 79.4 ms 46.3 ms
head, unset 10.83 76.8 ms 48.6 ms
head, =1 10.78 79.5 ms 46.7 ms
  • main's first run was the first after a library swap and was still partly cold, at 30.5 ms of Driver.Draw per present against 25 ms everywhere else. Without it, the three arms are within run-to-run noise on both scenes. So the recordDraw refactor shows nothing with the switch off.
  • The pool was used in the title. The game doesn't log a pooled-draw count, so I sampled the process thread count every 10 s. Inside the level, every switch-on run settled at 137 threads and every other run at 133. Those are the RecordingThreads = 4 workers, which start only when the first eligible depth-only draw arrives.
  • Switch on: no slowdown visible. These scenes are GPU-bound at 4K, about 45 and 80 ms of GPU time per present, so a short wait on the recording thread for each depth-only draw stays hidden. This says nothing about a CPU-bound scene.
  • None of the 9 runs crashed, lost the device or hit an assert.

AI-assisted.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 14, 2026
@Logan1h
Logan1h force-pushed the rearch/parallel-draw-main branch from 0303c68 to 1749281 Compare November 14, 2026 08:20
@Logan1h

Logan1h commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto current main (74900e8). The rebase crossed the CommandState migration, so the pooled path now follows it: the pool no longer keeps a raw vkCmdExecuteCommands pointer (FunctionName rejects it outside a CommandState); execution goes through the new CommandState::ExecuteCommands on the primary batch's graphics state, and the pooled secondary records with a fresh CommandState (cold suppression, matching the old raw-buffer semantics). DeviceFunctions gains the tracked cmdExecuteCommands member, filled in FillDeviceFunctions.

Focused tests on this head (ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation): agc_driver_depth_plane_sampling, agc_driver_depth_plane_sampling_evicting, agc_graphics_state_recorder, agc_graphics_state_recorder_unsuppressed, agc_pass_contents — 5/5 pass, no VUID- lines, the layer loads (checked with VK_LOADER_DEBUG=layer). tools/check_conventions.py --base origin/main passes; git diff --check is clean.

AI-assisted: yes.

@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Nov 14, 2026
@Logan1h
Logan1h force-pushed the rearch/parallel-draw-main branch from bdcf6c8 to 8683b8d Compare November 14, 2026 17:54
@Logan1h

Logan1h commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto current main (c04f8be); head is 8683b8d. @oneandonlydean your SDL2 submodule-pointer fix is folded into the rebased commit (the tree's 3rdparty/ now matches main exactly — thanks for catching that). Focused tests re-run on this head in all three switch states (unset, =0, =1) with the validation layer: agc_pass_contents, agc_driver_depth_plane_sampling, agc_driver_depth_plane_sampling_evicting all pass, no VUID- lines. Conventions and diff-check clean.

AI-assisted: yes.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@Logan1h 8683b8d conflicts with current main in core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp (two hunks in recordPipeline, around the pass body you moved into recordBody and the recordStencilReplay call). It is not a textual conflict only: main changed that block since your base, and the changes need to be carried into the relocated code:

  1. pushDrawConstants and recordStencilReplay now take pushBytes and pushStages that are first patched for moved buffers (ShaderResources::MovedPushPatches, resources.PatchPushConstants, PatchMovedPushConstants, with movedPush as the local copy) instead of record.pushBytes and record.pushStages.
  2. A loop over record.moved adds each in-place entry's guest range to passReads (GuestBufferMemory::ViewBytes(entry.size, entry.adjustment)), and the snapshot loop skips snapshot.buffer == nullptr.

Please rebase on main, keep those in the pooled path as in the serial one (the patched push constants must be assembled before recordBody so the pooled recording sees them), and rerun agc_driver_recorder and the depth-only parallel atlas tests. The Windows agc_driver_graphics failure on your head is main's flaky depth fixture (fixed on main by #20134), not yours.

@Logan1h
Logan1h force-pushed the rearch/parallel-draw-main branch from 8683b8d to ff4dd64 Compare November 14, 2026 20:19
@Logan1h

Logan1h commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto current main (a2f4c8d); head ff4dd64. The two recordPipeline hunks are carried into the relocated code as you described: the moved-buffer push-constant patching (MovedPushPatches / PatchPushConstants / PatchMovedPushConstants with the local movedPush copy) is now assembled before the lambdas, so both the serial path and the pooled recording see the patched pushBytes/pushStages, and recordStencilReplay takes them. The record.moved passReads loop and the snapshot.buffer == nullptr skip came in with the base. Re-ran agc_driver_recorder, agc_pass_contents and the depth-plane-sampling pair on this head with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation in both switch states: 8/8 pass, no VUID- lines. check_conventions and diff --check clean. (Noted on the Windows agc_driver_graphics fixture, thanks — leaving it to #20134.)

AI-assisted: yes.

@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Nov 14, 2026
@Logan1h
Logan1h force-pushed the rearch/parallel-draw-main branch from ff4dd64 to a886cc9 Compare November 17, 2026 01:18
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 17, 2026
@domx4q

domx4q commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Ran the Tested section's tests with the Khronos validation layer on Linux and an NVIDIA GPU at the current head, with and without APS5_PARALLEL_ATLAS=1; the Tested section's run is on Windows, and the earlier NVIDIA Linux run here is on 0303c68f1d.

Setup: Arch Linux (kernel 7.3.4), GCC 16.2.1, Release, NVIDIA GeForce RTX 4090 (vendor 0x10de, device 0x2684, Ada, subgroup 32), proprietary driver 620.70.06, Vulkan 1.4.357, Khronos validation layer 1.4.363.1. Head a886cc9057 merged onto main 1adc0e2f4b with --no-ff, clean merge. Main baseline is a Release build of 1adc0e2f4b on the same machine.

ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer \
ctest --test-dir build -R '^(agc_pass_contents|agc_driver_depth_plane_sampling.*|agc_driver_recorder)$' -V

Then the same command again with APS5_PARALLEL_ATLAS=1 added, on both sides.

main 1adc0e2f4b this PR main, APS5_PARALLEL_ATLAS=1 this PR, APS5_PARALLEL_ATLAS=1
Result 3 of 3 passed 4 of 4 passed 3 of 3 passed 4 of 4 passed
Insert instance layer "VK_LAYER_KHRONOS_validation" 3 4 3 4
was not found but was requested by env var VK_INSTANCE_LAYERS 0 0 0 0
VUID- none none none none

agc_pass_contents is new and does not exist on main; agc_driver_depth_plane_sampling, _evicting and agc_driver_recorder run this PR's versions on the PR side. With the switch off both depth-plane tests report parallel atlas: 0 of 8 depth-only draws recorded on the recording pool; with APS5_PARALLEL_ATLAS=1 both report 8 of 8, so the pool path ran under the layer. Every device selection picked the RTX 4090.

No new VUID- errors; all focused tests pass on Ada, with the switch on and off.

AI-assisted: yes (Claude Code)

@Logan1h
Logan1h force-pushed the rearch/parallel-draw-main branch from 21a7c65 to 7b5169b Compare November 21, 2026 21:45
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 21, 2026
@Logan1h
Logan1h force-pushed the rearch/parallel-draw-main branch from 7b5169b to 967a12d Compare November 22, 2026 01:24

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

This passed review on 967a12d, but it now conflicts with main in Recorder.hpp, Draw.cpp, DepthPlaneSampling.cpp and 1 more. Please merge main into the branch and push; it goes back to the merge queue on the new head.

…RALLEL_ATLAS

Opt-in and off by default. A per-device worker pool records single-sample
depth-only draws into secondary command buffers that the recorder executes in
draw order; a pass begun for secondary contents never takes inline draws and
the reverse.

The pool is slower per draw than inline recording in the synthetic depth-plane
benchmark, so the flag stays off until the assembly moves to the end of the
pass.
@Logan1h
Logan1h force-pushed the rearch/parallel-draw-main branch from 967a12d to c40dcb5 Compare November 25, 2026 18:54
@Logan1h

Logan1h commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto main (1afab89). Conflicts resolved in:

  • Recorder.hpp: kept PR's param on StartDrawPass/LeaveRenderPassOpen
  • Draw.cpp: kept main's advanced GPU timing code (DrawStageTimingEnabled path)
  • DepthPlaneSampling.cpp: kept PR's ParallelAtlas offsets and depthOnly DrawDepth signature
  • ENVIRONMENT.md: kept both APS5_PASS_STAGING (main) and APS5_PARALLEL_ATLAS (PR)

Force-pushed to rearch/parallel-draw-main. CI should pick it up and the merge queue will re-evaluate.

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@Logan1h the rebase commit still has conflict markers, so this head does not compile:

  • Recorder.hpp lines 195 to 202: keep main's three declarations (StartDrawPass, LeaveRenderPassOpen, AfterRenderPass) and add this PR's bool secondaryContents = false parameter to the first two.
  • Draw.cpp lines 3293 to 3314: keep the HEAD side (main's DrawStageTimingEnabled timing), delete its two timeEachDraw and eachDrawTiming lines because this PR already declares them at line 3220, and delete the ======= side.

After that the rest of the PR is the same as the head that passed review, so I only need to look at the resolution.

- Recorder.hpp: keep main's three declarations + add secondaryContents param
- Draw.cpp: keep HEAD's DrawStageTimingEnabled timing, remove duplicate timeEachDraw/eachDrawTiming
- ENVIRONMENT.md: keep both APS5_PASS_STAGING and APS5_PARALLEL_ATLAS
@Logan1h

Logan1h commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Rebase conflicts resolved:

  • Recorder.hpp: Kept main's three declarations (, , ) and added PR's parameter to the first two
  • Draw.cpp: Kept HEAD's timing logic, removed duplicate / declarations (already declared at line 3220-3221), deleted the side
  • ENVIRONMENT.md: Kept both (main) and (PR)

Force-pushed to . CI should pick it up.

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@Logan1h the markers are gone and Recorder.hpp and Draw.cpp now match what I described. tests/execution/DepthPlaneSampling.cpp lost main's stencil test setup in the rebase:

  • Main's six Stencil*Offset constants were replaced by this PR's Parallel* ones, but main's stencil tests still use them (lines 535 to 607), so the file does not compile. ParallelAtlasOffset (0x780000) and ParallelStencilPlaneOffset (0x7c0000) also reuse two of main's offsets.
  • DrawDepth now takes depthOnly, waitIdle, stencilAddress after swizzle, where main has stencilAddress, stencilValue. Main's calls like DrawDepth(..., 0, stencilBase, 0x5au) would bind the stencil address to depthOnly and the value to waitIdle, so they would compile but stop writing stencil.

Please keep main's six constants, move the Parallel* regions after StencilCubeOffset's region, and use DrawDepth(..., swizzle = 0, stencilAddress = 0, stencilValue = std::nullopt, depthOnly = false, waitIdle = true), updating this PR's two calls at lines 623 and 624.

- Restore main's six Stencil*Offset constants (StencilArrayDepthOffset through StencilCubeOffset)
- Move Parallel* constants after StencilCubeOffset (0x840000+)
- Fix DrawDepth signature to match main: (swizzle, stencilAddress, stencilValue, depthOnly, waitIdle)
- Update all ParallelAtlasCase calls to use new signature with named parameters
- Fix typo: std::.uintptr_t -> std::uintptr_t

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 26, 2026
@oneandonlydean
oneandonlydean dismissed MarcZX10’s stale review November 26, 2026 03:48

19697 MarcZX10 CR 6063767599 (25 Nov 19:31Z on 960a77e): met

Claim: DrawDepth lost its stencilValue parameter while its body still uses it (compile error).
Live head 7f46b21, core/libs/prx/libSceAgcDriver/tests/execution/DepthPlaneSampling.cpp:196 declares std::optional<std::uint8_t> stencilValue = std::nullopt, used at :249-251. The file compiles as written.
PASS HIGH YES by pr-review1 on 7f46b21 at 26 Nov 02:33Z, after the CR.

@oneandonlydean
oneandonlydean merged commit 4234d67 into boykopovar:main Nov 27, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants