fix(agc): keep each descriptor set slot in one of a split pipeline library pair #7722
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7722"
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 jotitadev on 2026-10-19T02:50:30Z.
What
With graphics pipeline libraries, linking a draw's parts violates
VUID-VkGraphicsPipelineCreateInfo-pLibraries-06681. The validation layer reports it on 111 of the 748^agctests onmain.SplitsSetssplits the layout into two independent sets for every pipeline with a fragment stage when the device hasgraphicsPipelineLibrary.libraryKeysgives each part a mask of only the sets its own stages bind, andLinkPipelineFromLibrariesleaves the other slotsVK_NULL_HANDLEin that part's layout.libraryKeysnow gives a slot that neither stage binds to the part that owns it: set 0 goes to the pre-rasterization layout and set 1 to the fragment layout. The layout keys include the mask, so the cached parts follow. This path runs for any title on a device with pipeline libraries. #5925, #7334 and #7337 saw this error and put it down to an older layer, but it still shows with layer 1.4.341.Tested
Intel i7-8700, Ubuntu 26.04, GCC 15.2, Release, on
main43797ca8a. I ran every^agctest except display, flip andlds_atomics64(748 tests), each underVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation(layer 1.4.341) withctest -V, two at a time.mainpLibraries-06681pLibraries-06681The one failure on the RTX 3070 is
agc_driver_bda_device(vkWaitForFences graphics: Vulkan result 2). It fails the same way onmainwith no layer, so it has nothing to do with this change. Apart from 06681, the layer reports the same messages before and after the change. Repro onmain:VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ./build/tests/agc_driver_alpha_to_coverage_tests 2>&1 | grep -c pLibraries-06681prints 20, and prints 0 with this change.python3 tools/check_conventions.py --base origin/mainpasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T02:58:53Z.
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.
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppImported from boykopovar/AnyPS5. Originally posted by savvaniss on 2026-10-19T14:48:25Z.
AMD and Intel Windows data: the full CTest suite gives the same results with this PR as on
main, on an AMD RX 9070 XT and an Intel UHD 770 with pipeline libraries on. On AMD one intermittentmainfailure showed up in the PR's run.Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, every execution test built,
ANYPS5_NO_SHADER_CACHE=1, CTest--parallel 4, one full run per GPU. Intel UHD Graphics 770 (8086:a780), driver 32.0.101.7088. AMD Radeon RX 9070 XT (1002:7550), driver 32.0.31041.1004, withVkCacheemptied first. This head879b9e65cmerged intomain85029a00f. On AMD the three tests that turn pipeline libraries off (agc_driver_draw_cache_reuse_off,agc_driver_stencil_replay_no_gpl,agc_driver_layered_volume_vertex_no_gpl) are left out until #7828 merges, because on this driver they can hang the GPU.main85029a00fagc_driver_image_table_vouched_lookupsandagc_driver_sample_multisample_targetfailagc_trimmed_importfailsagc_trimmed_importis intermittent onmainon this card:after an unmap of 1440 KiB at the start of the import's first 2 MiB run the pages mapped again are served from the import that pinned the old ones. Earlier full runs ofmain6b8228b2bfailed it with this message. Run alone on this head, it failed 1 of 3 times. It doesn't touch pipeline layouts. The two Intel failures are onmaintoo: #7766 for the vouched lookups test, and #6957 for the multisample target.The
agc_pipeline_library*tests pass on both GPUs. These runs had no validation layer, so they don't checkpLibraries-06681. They show that the layout change runs on these two proprietary drivers without a failure thatmaindoesn't have.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-20T01:15:44Z.
Checked the
libraryKeyschange: a set slot that neither stage binds now goes to the part that owns it (set 0 to the pre-rasterization layout, set 1 to the fragment layout), so no index is NULL in both layouts of a split pair; used slots are unchanged and the layout keys carry the mask, so the cached parts follow. Windows AMD/Intel data from @savvaniss matchesmain; merged.