build(agc): link agc_driver_mesh_tests against libSceAgcDriver #5106

Merged
adriadam10 merged 1 commit from upstream-pr/5106 into main 2026-10-13 11:47:55 +00:00
adriadam10 commented 2026-10-13 11:47:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T11:47:31Z.


What

agc_driver_mesh_tests compiled tests/Mesh.cpp plus every source of the driver again (the 104 in agcDriverSources and the ones PostCompile.cmake adds: BufferPool, TextureDetilerDescriptors, TextureCache, GpuColorTransfer), the same objects libSceAgcDriver already builds. It now builds tests/Mesh.cpp only and links libSceAgcDriver, like the tests/execution executables (272 of them include Recompiler.hpp and link only the library, on Linux and Windows). PostCompile.cmake no longer adds driver sources to it. That is about 108 compiles fewer per configuration, in every job that builds the tests.

Tested

Linux, GCC, Release: agc_driver_mesh_tests builds and links; on RADV (host GPU) it prints Mesh tests passed, rc 0. On CI's lavapipe it skips as before (no VK_EXT_mesh_shader).

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4842735025 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5106). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-13T11:47:31Z. --- ### What `agc_driver_mesh_tests` compiled `tests/Mesh.cpp` plus every source of the driver again (the 104 in `agcDriverSources` and the ones `PostCompile.cmake` adds: BufferPool, TextureDetilerDescriptors, TextureCache, GpuColorTransfer), the same objects `libSceAgcDriver` already builds. It now builds `tests/Mesh.cpp` only and links `libSceAgcDriver`, like the `tests/execution` executables (272 of them include `Recompiler.hpp` and link only the library, on Linux and Windows). `PostCompile.cmake` no longer adds driver sources to it. That is about 108 compiles fewer per configuration, in every job that builds the tests. ### Tested Linux, GCC, Release: `agc_driver_mesh_tests` builds and links; on RADV (host GPU) it prints `Mesh tests passed`, rc 0. On CI's lavapipe it skips as before (no `VK_EXT_mesh_shader`). ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] AI-assisted: yes
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!5106
No description provided.