Repository navigation
fix(agc): prepare combined shader layouts when linking - #2071
Merged
adriadam10 merged 1 commit intoOct 10, 2026
Merged
Conversation
9 tasks done
9 tasks done
8 tasks done
adriadam10
requested changes
Oct 10, 2026
adriadam10
left a comment
Collaborator
There was a problem hiding this comment.
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.- The Conventions check is red: the checklist line "Based on current
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.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RPEHi56pUMbT1X4VZwStm9
STUPIDCONTEM
force-pushed
the
fix/linked-shader-stage-abi
branch
from
October 10, 2026 07:06
5ac66b5 to
23443fb
Compare
adriadam10
approved these changes
Oct 10, 2026
adriadam10
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for the update. The PreparedGraphics.cpp test is gone, the checklist is ticked and Conventions is green. Checked on the PR merged onto current main: the scoped build and ctest pass (agc_shader_helpers, guest_shader_link), and both fail with the LinkShaders.cpp change reverted. Null-pixel path unchanged. Merging once CI is green.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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(mainc963432 merged 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, fix(shader): evaluate signed comparisons in SRT expressions #2072 and four other fixes stacked onmain69cee68 (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 fix(ci): restore main's ctest after #1331 and #1496 #2537.Checklist
main(c963432 merged in); no other open PR implements the same change.mdfiles or images added to the repository🤖 Generated with Claude Code