fix(agc): link agc_driver_pm4_tests against the shader recompiler #6333
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6333"
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 milescoviello on 2026-10-15T12:06:56Z.
What
agc_driver_pm4_testsno longer compiles onmainb3f9f89e6:Since #5364 (merge
6ea62f9b4),Driver/Draw/DrawRegisterKey.hppincludesDriver/Shaders/ShaderRegistry.hpp, which reachesShaderMemory.hppand its"Recompiler.hpp".tests/Pm4.cppalready includedDrawRegisterKey.hpp, but the target links onlylibSceAgcDriver,libcandlibkernel, so the recompiler's include directories are not on its path. The test targets that already reachShaderMemory.hpp(agc_shader_memory_tests,agc_write_tracking_testsand others) linkshader_recompiler_agc_driver; this target now does too.The target is declared
EXCLUDE_FROM_ALL, but withBUILD_TESTINGon the loop atCMakeLists.txtline 1503 turns that off for it, so a default build stops here too (corrected after merge; the first version of this description said a default build did not hit it). Its four tests areagc_driver_pm4,agc_driver_pm4_failure,agc_driver_pm4_failure_inlineandagc_driver_pm4_priority_refused.Tested
Ubuntu 24.04, GCC 13.3, Release (SPIRV-Tools on):
Pm4.cppcompiles at 6ea62f9b4's first parentf50d4335a, fails with the error above at6ea62f9b4and atmainb3f9f89e6, and compiles with this change.agc_*tests pass with every test target built. The one failure,agc_pending_key_stores, fails the same way onmain(reported on #6247).Pm4.cppwith the same error; with it the target compiles and links, andagc_driver_pm4,agc_driver_pm4_failureandagc_driver_pm4_failure_inlinepass 5 of 5 runs under each GPU selector.tools/check_conventions.py --base upstream/mainpasses, andtools/pr_overlap.py --branch fix/pm4-tests-recompiler-includesfinds no overlap.Windows: see Amoenus's run above.
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 adriadam10 on 2026-10-15T12:16:43Z.
Merged without waiting for the full Build: main has been failing to compile
agc_driver_pm4_testson both Linux and Windows since #5364, and that holds up every other merge. Built and ranagc_driver_pm4_testsandagc_driver_register_key_testslocally on this head (rc=0). The next main push build is the check. Thanks!Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-15T12:18:19Z.
Windows validation of the exact one-line patch at
2c9ab96a0, composed on maintainer-refreshed #5554c9a96a548(mainb3f9f89e6): fork213cd7dc6. Original authorship retained; #5554's published branch is untouched.tests/Pm4.cpp→ShaderMemory.hpp:4:10: fatal error: Recompiler.hpp: No such file or directory. Its compile command has only the library include directory.agc_driver_pm4_teststarget compiles and links.agc_driver_pm4,agc_driver_pm4_failure,agc_driver_pm4_failure_inline) pass5/5 under each NVIDIA/AMD selector:30 successful iterations, no CTest skips/timeouts, maximum0.27s. They emit no physical-device identity, so this is Windows test coverage, not evidence of execution on two GPU vendors. Linux's fourth priority-refusal group is not registered here.Windows11 Enterprise26200, WinLibs MinGW-w64 GCC15.2.0r7, Ninja, Release, BUILD_TESTING ON, SPIRV-Tools ON, shader caches disabled, serial tests. The full Windows app/libs composition build has now completed successfully. The broader27-group regression also passes once plus five repeats per selector (324 executions; no skips/timeouts; maximum5.73s). This remains composition213cd7dc6 evidence, not an unchanged-PR-head full build or a full-suite result. AI-assisted: Codex.
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-15T12:19:17Z.
Thanks for the Windows run. I added it to the description.
AI-assisted: yes