test(agc): check device capabilities by name in the execution tests #1558

Merged
kr4y4 merged 1 commit from upstream-pr/1558 into main 2026-10-09 08:03:59 +00:00
kr4y4 commented 2026-10-08 12:31:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by kr4y4 on 2026-10-08T12:31:54Z.


What

As noted in #1213, the execution tests check a device capability by copying its SPIR-V value into a local constant and searching supportedCapabilities with std::find. Twenty-four tests do this:

Constant Value Tests Now
Float64Capability 10 10 spv::CapabilityFloat64
Int64AtomicsCapability 12 8 spv::CapabilityInt64Atomics
MinLodCapability 42 2 spv::CapabilityMinLod
ArithmeticCapability 63 1 spv::CapabilityGroupNonUniformArithmetic
Int64ImageCapability 5016 1 spv::CapabilityInt64ImageEXT
ShaderClockCapability 5055 1 spv::CapabilityShaderClockKHR
PixelInterlockCapability 5378 1 spv::CapabilityFragmentShaderPixelInterlockEXT

VulkanTestDevice.hpp now has TargetHasCapability(const SpirvTarget&, spv::Capability), and the tests call it with the spv::Capability names. The local constants are removed.

The execution test targets also get 3rdparty/SPIRV-Headers/include, as agc_driver_mesh_tests and the other agc test targets already have. The same capabilities are checked and the skip messages are unchanged.

The other point from #1213, a test that pins the 64-bit atomics FailEmit messages, will be a separate PR.

#921 edits the same include list in core/libs/prx/libSceAgcDriver/CMakeLists.txt, replacing the Vulkan-Headers line, so whichever lands second needs a one-line rebase. With #921, the new line becomes ${ANYPS5_SPIRV_HEADERS_INCLUDE_DIR}. git merge-tree against the other 40 open PRs that touch these files shows no conflicts.

Tested

Windows 11 (26200), WinLibs GCC 15.2.0 r7, CI configure flags, main at 1081602d. All targets build; the 24 tests were run on each device:

  • Intel Raptor Lake-S Mobile Graphics (driver 32.0.101.6790), ANYPS5_GPU=Intel: 21 skip, the same set as on main.
    • The nine 64-bit atomics tests: shaderBufferInt64Atomics (8) and shaderImageInt64Atomics (1).
    • The ten shaderFloat64 tests.
    • shader_clock.
    • image_sample_lod_clamp (shaderResourceMinLod).
    • image_sample_bias_a16 still runs and skips only its clamp cases.
    • pixel_interlock and pixel_wave_reduction run and pass.
  • NVIDIA RTX 4070 Laptop GPU (driver 32.0.15.9597): all 24 run and pass, none skip.

Checklist

  • Based on current main; no other open PR implements the same thing
  • One topic per PR
  • No comments in code except technical debt
  • No silent stubs added
  • No notes, investigation files or images added to the repository
  • No new third-party code
  • Generic, not specific to one title
  • Depends on: none
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4786829736 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1558). Originally posted by [kr4y4](https://github.com/kr4y4) on 2026-10-08T12:31:54Z. --- ### What As noted in #1213, the execution tests check a device capability by copying its SPIR-V value into a local constant and searching `supportedCapabilities` with `std::find`. Twenty-four tests do this: | Constant | Value | Tests | Now | |---|---|---|---| | `Float64Capability` | 10 | 10 | `spv::CapabilityFloat64` | | `Int64AtomicsCapability` | 12 | 8 | `spv::CapabilityInt64Atomics` | | `MinLodCapability` | 42 | 2 | `spv::CapabilityMinLod` | | `ArithmeticCapability` | 63 | 1 | `spv::CapabilityGroupNonUniformArithmetic` | | `Int64ImageCapability` | 5016 | 1 | `spv::CapabilityInt64ImageEXT` | | `ShaderClockCapability` | 5055 | 1 | `spv::CapabilityShaderClockKHR` | | `PixelInterlockCapability` | 5378 | 1 | `spv::CapabilityFragmentShaderPixelInterlockEXT` | `VulkanTestDevice.hpp` now has `TargetHasCapability(const SpirvTarget&, spv::Capability)`, and the tests call it with the `spv::Capability` names. The local constants are removed. The execution test targets also get `3rdparty/SPIRV-Headers/include`, as `agc_driver_mesh_tests` and the other agc test targets already have. The same capabilities are checked and the skip messages are unchanged. The other point from #1213, a test that pins the 64-bit atomics `FailEmit` messages, will be a separate PR. #921 edits the same include list in `core/libs/prx/libSceAgcDriver/CMakeLists.txt`, replacing the Vulkan-Headers line, so whichever lands second needs a one-line rebase. With #921, the new line becomes `${ANYPS5_SPIRV_HEADERS_INCLUDE_DIR}`. `git merge-tree` against the other 40 open PRs that touch these files shows no conflicts. ### Tested Windows 11 (26200), WinLibs GCC 15.2.0 r7, CI configure flags, main at 1081602d. All targets build; the 24 tests were run on each device: - Intel Raptor Lake-S Mobile Graphics (driver 32.0.101.6790), `ANYPS5_GPU=Intel`: 21 skip, the same set as on main. - The nine 64-bit atomics tests: `shaderBufferInt64Atomics` (8) and `shaderImageInt64Atomics` (1). - The ten `shaderFloat64` tests. - `shader_clock`. - `image_sample_lod_clamp` (`shaderResourceMinLod`). - `image_sample_bias_a16` still runs and skips only its clamp cases. - `pixel_interlock` and `pixel_wave_reduction` run and pass. - NVIDIA RTX 4070 Laptop GPU (driver 32.0.15.9597): all 24 run and pass, none skip. ### Checklist - [x] Based on current `main`; no other open PR implements the same thing - [x] One topic per PR - [x] No comments in code except technical debt - [x] No silent stubs added - [x] No notes, investigation files or images added to the repository - [x] No new third-party code - [x] Generic, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes 🤖 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!1558
No description provided.