test(agc): fix and re-enable 3 of 8 bitrotted AGC driver tests #23

Merged
obelisk-complex merged 1 commit from upstream-pr/23 into main 2026-09-27 08:34:45 +00:00
obelisk-complex commented 2026-09-26 21:18:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by obelisk-complex on 2026-09-26T21:18:14Z.


Closes #22 (partially: fixes and registers 3 of the 8 named there; agc_driver_bda_device_tests is deliberately left out, see below; the remaining 2 are root-caused but not fixed, see below).

Depends on #14. agc_driver_tests, agc_shader_memory_tests, agc_driver_flip_tests and agc_driver_pm4_tests already passed, but throw C++ exceptions on paths that hit the same libstdc++ ABI interposition bug #14 fixes when run in isolation on main (confirmed with gdb); they only pass once #14 merges.

agc_driver_bda_device_tests is not touched or registered by this PR. It needs both #14 (same exception-ABI dependency) and the stale-assertion fix already proposed in open PR #20 - not duplicating that fix here; see the comment left on #20 with the additional Linux-specific finding.

Changes

  • agc_driver_graphics_tests: fixed the link failure by adding the three missing source files and linking shader_recompiler_agc_driver. Still fails at runtime against stale assertions accumulated over many commits of not being built (an expected "not implemented" message that texture support since removed, and a sampler test fixture value that no longer fits its 12-bit field). Left EXCLUDE_FROM_ALL; fixing the assertions is a separate pass across the whole 1150-line test file, not a build fix.
  • agc_driver_recompiler_tests: root-caused but not fixed. It needs COMPUTE_NUM_THREAD_X set, and its pass condition checks for a "not implemented" stub error that no longer exists now that the real recompiler is in. Restoring its original intent needs a shader deliberately built to fail recompilation, which is a design decision, not something this PR should decide unilaterally. Left EXCLUDE_FROM_ALL.
  • agc_driver_tests, agc_shader_memory_tests, agc_driver_flip_tests and agc_driver_pm4_tests already passed; registered them with add_test so none of the four can bitrot silently again.

Testing (Linux, GCC)

  • Full build succeeds.
  • ctest on main alone: 23/34 (7 pre-existing failures plus the 4 newly-registered tests, which fail until #14 merges, per the dependency above). Stacked on #14: 34/34.
  • agc_driver_graphics_tests and agc_driver_recompiler_tests intentionally left out of this count; both still fail and remain EXCLUDE_FROM_ALL, per the issue.

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4649740503 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23). Originally posted by [obelisk-complex](https://github.com/obelisk-complex) on 2026-09-26T21:18:14Z. --- Closes #22 (partially: fixes and registers 3 of the 8 named there; `agc_driver_bda_device_tests` is deliberately left out, see below; the remaining 2 are root-caused but not fixed, see below). **Depends on #14.** `agc_driver_tests`, `agc_shader_memory_tests`, `agc_driver_flip_tests` and `agc_driver_pm4_tests` already passed, but throw C++ exceptions on paths that hit the same libstdc++ ABI interposition bug #14 fixes when run in isolation on `main` (confirmed with `gdb`); they only pass once #14 merges. `agc_driver_bda_device_tests` is not touched or registered by this PR. It needs both #14 (same exception-ABI dependency) and the stale-assertion fix already proposed in open PR #20 - not duplicating that fix here; see the comment left on #20 with the additional Linux-specific finding. Changes - `agc_driver_graphics_tests`: fixed the link failure by adding the three missing source files and linking `shader_recompiler_agc_driver`. Still fails at runtime against stale assertions accumulated over many commits of not being built (an expected "not implemented" message that texture support since removed, and a sampler test fixture value that no longer fits its 12-bit field). Left `EXCLUDE_FROM_ALL`; fixing the assertions is a separate pass across the whole 1150-line test file, not a build fix. - `agc_driver_recompiler_tests`: root-caused but not fixed. It needs `COMPUTE_NUM_THREAD_X` set, and its pass condition checks for a "not implemented" stub error that no longer exists now that the real recompiler is in. Restoring its original intent needs a shader deliberately built to fail recompilation, which is a design decision, not something this PR should decide unilaterally. Left `EXCLUDE_FROM_ALL`. - `agc_driver_tests`, `agc_shader_memory_tests`, `agc_driver_flip_tests` and `agc_driver_pm4_tests` already passed; registered them with `add_test` so none of the four can bitrot silently again. Testing (Linux, GCC) - Full build succeeds. - `ctest` on `main` alone: 23/34 (7 pre-existing failures plus the 4 newly-registered tests, which fail until #14 merges, per the dependency above). Stacked on #14: 34/34. - `agc_driver_graphics_tests` and `agc_driver_recompiler_tests` intentionally left out of this count; both still fail and remain `EXCLUDE_FROM_ALL`, per the issue. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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!23
No description provided.