fix(agc): prepare combined shader layouts when linking #2071
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2071"
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 STUPIDCONTEM on 2026-10-09T06:44:39Z.
What
Prepare the combined vertex/pixel shader layout in
sceAgcLinkShadersafter both register sets are available. The helpers prepared each stage on its own, so the pixel stage lacked the cumulative push-constant offset a draw needs after a vertex stage that uses push data. The change calls the existing combined-stage resolver inside the existing preparation transaction. Linking without a pixel shader keeps its single-stage path, and exceptions still prevent publishing partial results.Title: EVO-PLAYER (PPSA99039) v0.11.0. In @johnmaia's Linux run in #1578, with the PRs for its start-up imports applied, the title builds its 80 pipelines and submits its first frame. The presenter then fails on its
ui_sdfpixel shader:That is the combined-stage preparation this change adds. The run is his: I have not run EVO-PLAYER myself, and on
mainit still stops earlier, at start-up imports (#1578 tables). The signed SRT comparison he reported next to it is #2072.Tested
Linux, Ubuntu 24.04, GCC 13.3, Release,
BUILD_TESTING=ON, SPIRV-Tools on, lavapipe. Head5ac66b5b(mainc963432dmerged in).main's code and this PR's tests,guest_shader_linkandagc_shader_helpersfail; with the change they pass.agc_driver_prepared_graphicsadds coverage of the prepared-stage path and passes on both.libsbuilds pass. Fullctest: 579/581 with this change, #2072 and four other fixes stacked onmain69cee68d(rerun on this exact head pending). The two failures also fail on plainmainhere:agc_driver_vopc_compare(lavapipe) andguest_video_out_output_mode(no Vulkan display).check_conventions.pypasses.check_test_registration.pyfails onmainitself until #2537.f145139: Windows 10, WinLibs GCC 15.2.0, full CTest 488/488.Checklist
main(c963432dmerged in); no other open PR implements the same change.mdfiles or images added to the repository🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T05:59:15Z.
Review: CHANGES_REQUESTED
Thanks. Two things to fix:
core/libs/prx/libSceAgcDriver/tests/execution/PreparedGraphics.cpp:239-321:CheckCumulativePushLayoutpasses with theLinkShaders.cppchange reverted (checked locally:agc_shader_helpersandguest_shader_linkfail without it,agc_driver_prepared_graphicsstill passes). It callsPrepareGraphicsStagesdirectly and never goes throughsceAgcLinkShaders, so it pins existing behaviour, not this fix. Either drive it through the link path or drop it, so the PR's tests fail without the change.main; no other open PR implements the same change" is unchecked. Rebase on currentmain, check that no open PR (#1902, #1928 touchPreparedGraphics.cpp) overlaps, and tick it.The rest (hook contract in
ShaderHelpers.cpp/GuestShaderLink.cpp, null-pixel path unchanged) looks fine and passes locally.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T08:06:54Z.
Review: APPROVED
Thanks for the update. The
PreparedGraphics.cpptest is gone, the checklist is ticked and Conventions is green. Checked on the PR merged onto currentmain: the scoped build and ctest pass (agc_shader_helpers,guest_shader_link), and both fail with theLinkShaders.cppchange reverted. Null-pixel path unchanged. Merging once CI is green.