fix(agc): capture every descriptor set a split table call part declares #28388
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/28388"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Remi-Bon on 2026-11-30T11:00:12Z.
Requested by Chef · project thread
What
APS5_DUMP_COMPUTE_PIPELINESwrote a compute pipeline's extra descriptor sets only for workgroup memory and the scratch pool. A split table call part also declares the split state at set 3, binding 0 (SplitStateAbi::DescriptorSet), and its pipeline layout gives sets 1 and 2 the same storage buffer layout. The capture left those sets out, soagc_compute_pipeline_replaycould not build any split part:vkCreateComputePipelinesreturnedVK_ERROR_INITIALIZATION_FAILED, and the validation layer reportedVUID-VkComputePipelineCreateInfo-layout-07988forsplit_state.The capture now writes every set after the resource set as the pipeline layout declares it: a storage buffer at binding 0 where the layout has one, an empty set where it passes
VK_NULL_HANDLE.Tested
-DANYPS5_ENABLE_SPIRV_TOOLS=ON, AMD Radeon RX 9070.agc_driver_split_table_call_driver_gpu_roundsrun withAPS5_DUMP_COMPUTE_PIPELINESwrites 5 captures. Each was replayed withagc_compute_pipeline_replayandVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation:main: 5 of 5 fail withVUID-VkComputePipelineCreateInfo-layout-07988andVulkan result -3;VUID-.agc_compute_pipeline_capture_split_run(needs SPIRV-Tools, likeagc_compute_pipeline_capture_run, which now takes the expected pass line asPASSED): runs the split table call driver test with capture on, then replays every capture. With the fix reverted it fails (Captured pipeline replay failed: 1); with it, both capture run tests pass. Run withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,VK_LOADER_DEBUG=layer: the layer is inserted in the fixture and in each replay, noVUID-.main. Withsplit_stateadded, one of them (221,802 words) replays in 27.3 s ofpipeline_create.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T11:03:15Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the reviewed code and supplied validation evidence support the fix.
What I ran
Reviewed head
b08a5d2605ce7c509197258727a44c6857aac93d. No commands or tests were run in this review session;repo_read.pywas used to inspect the prepared diff and targeted source ranges.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The description reports successful Windows 11/RX 9070 build and Vulkan replay checks, but these were not run here. Reviewed files:
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp,core/libs/prx/libSceAgcDriver/tests/ComputePipelineCaptureRun.cmake, andcore/libs/prx/libSceAgcDriver/tests/cmake/agc_compute_pipeline_capture_tests.cmake. All three files listed as reviewed in the manifest were read. The changed files excluded from the review folder due to size were read through the repository reader; no changed file was left unread. Excluded-by-rule files: none listed in the prepared file inventory.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-12-03T10:42:38Z.
Review: APPROVED
I read the diff at
b08a5d2605. Windows 11, GCC 15.2, merged intomainatb97867d3ce6together with other open PRs (so not an isolated build), built withANYPS5_ENABLE_SPIRV_TOOLS=ON, withANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1andVK_LAYER_KHRONOS_validationon an RTX 5080 (621.24) and a Radeon iGPU (26.11.2).agc_compute_pipeline_capture_runand_split_run: pass on both GPUs without aVUID-line.VulkanDevice.cppchange taken out): on the Radeon_split_runfails with "Captured pipeline replay failed: 1" andVUID-VkComputePipelineCreateInfo-layout-07988. On the RTX 5080 it still passes.Not checked: a capture from a title.
AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T15:25:48Z.
Review: COMMENTED
The capture codec, split-table driver and GPU-rounds cases, and GCN scalar-buffer control all passed on main and the patched tree. I used the same Linux lavapipe device with Vulkan required, shader cache disabled, and validation layer 1.4.369. Both control logs show layer insertion with no missing-layer diagnostic or
VUID-entry.I also enabled SPIRV-Tools and ran the capture-and-replay fixtures. The common case replayed two captures on each tree. The added split case replayed five captures on the patched tree. The CMake fixture captures its subprocess logs internally, so the validation log comparison above comes from the direct controls.
AI-assisted: yes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.