test(agc): skip the exec host lanes vertex draw without vertex subgroups #1565

Merged
Zheorgyan merged 1 commit from upstream-pr/1565 into main 2026-10-10 01:11:22 +00:00
Zheorgyan commented 2026-10-08 12:43:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Zheorgyan on 2026-10-08T12:43:52Z.


What

agc_driver_exec_host_lanes fails on an Apple M1 with "subgroup capability 61 is unsupported for shader stage 1". MoltenVK on M1 reports subgroupSupportedStages as tessellation control, fragment and compute, without vertex, and the driver's shader validation correctly refuses lane ops there. the test only skipped its vertex draw for a subgroup size below 32

  • VulkanDevice::SubgroupStages() returns the device's supported subgroup stages, next to the other capability getters
  • the test skips the vertex draw when the vertex stage is missing, like it already does for a small subgroup size. the compute part still runs

Tested

  • macOS 15.6.1 on an M1 Pro, MoltenVK from Vulkan SDK 1.4.363.0, on top of mugurc's macos-port branch since main doesn't build on macOS yet. fails before, passes after with the vertex draw skipped
  • Linux, Ubuntu 24.04 in Docker, GCC 14.2, lavapipe. builds and passes, but lavapipe reports subgroup size 4 here, so the existing size check skipped the vertex draw and the new branch wasn't reached
  • tools/check_conventions.py passes

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 in TechnicalDebt
  • 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
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4786975476 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1565). Originally posted by [Zheorgyan](https://github.com/Zheorgyan) on 2026-10-08T12:43:52Z. --- ### What `agc_driver_exec_host_lanes` fails on an Apple M1 with "subgroup capability 61 is unsupported for shader stage 1". MoltenVK on M1 reports `subgroupSupportedStages` as tessellation control, fragment and compute, without vertex, and the driver's shader validation correctly refuses lane ops there. the test only skipped its vertex draw for a subgroup size below 32 - `VulkanDevice::SubgroupStages()` returns the device's supported subgroup stages, next to the other capability getters - the test skips the vertex draw when the vertex stage is missing, like it already does for a small subgroup size. the compute part still runs ### Tested - macOS 15.6.1 on an M1 Pro, MoltenVK from Vulkan SDK 1.4.363.0, on top of mugurc's `macos-port` branch since main doesn't build on macOS yet. fails before, passes after with the vertex draw skipped - Linux, Ubuntu 24.04 in Docker, GCC 14.2, lavapipe. builds and passes, but lavapipe reports subgroup size 4 here, so the existing size check skipped the vertex draw and the new branch wasn't reached - `tools/check_conventions.py` passes ### 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 in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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] AI-assisted: yes
rmz-24 commented 2026-10-09 12:38:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by rmz-24 on 2026-10-09T12:38:47Z.


Windows run: Windows 11 Pro 25H2 (10.0.26200.9457), RTX 5060 Ti (NVIDIA 617.42), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON, full build plus libs. ed14c24b cherry-picked onto current main d70b8998 (applies cleanly).

  • This device has subgroup operations in vertex shaders, so it takes the other branch than the MoltenVK case: agc_driver_exec_host_lanes still runs the vertex draw (no skip message) and passes.
  • Full ctest: 510/510.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6081053877 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1565#issuecomment-6081053877). Originally posted by [rmz-24](https://github.com/rmz-24) on 2026-10-09T12:38:47Z. --- Windows run: Windows 11 Pro 25H2 (10.0.26200.9457), RTX 5060 Ti (NVIDIA 617.42), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, `-DANYPS5_ENABLE_SPIRV_TOOLS=ON`, full build plus `libs`. ed14c24b cherry-picked onto current `main` d70b8998 (applies cleanly). - This device has subgroup operations in vertex shaders, so it takes the other branch than the MoltenVK case: `agc_driver_exec_host_lanes` still runs the vertex draw (no skip message) and passes. - Full ctest: 510/510. AI-assisted: yes
github-actions[bot] commented 2026-10-09 22:04:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T22:04:47Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#2322 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp L164
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp L2505
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6090023562 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1565#issuecomment-6090023562). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-09T22:04:47Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #2322 | `core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp` [L164](https://github.com/boykopovar/AnyPS5/blob/7703fda15e4ab4025dd817eae5964315e6dd134b/core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp#L164)<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` [L2505](https://github.com/boykopovar/AnyPS5/blob/7703fda15e4ab4025dd817eae5964315e6dd134b/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp#L2505) | | |
adriadam10 commented 2026-10-10 01:11:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T01:11:18Z.


Checked: diff read, agc_driver_exec_host_lanes passes locally (lavapipe) and the agc driver ctest is green (270/270); CI green; Windows/NVIDIA run by @rmz-24 also passes. SubgroupStages() returns the device's supportedStages, and the test skips only the vertex draw when the stage is missing. Merging.

Note: #2322 adds getters next to this one in VulkanDevice.hpp/.cpp; whichever lands second needs a trivial rebase.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6092029113 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1565#issuecomment-6092029113). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-10T01:11:18Z. --- Checked: diff read, `agc_driver_exec_host_lanes` passes locally (lavapipe) and the agc driver ctest is green (270/270); CI green; Windows/NVIDIA run by @rmz-24 also passes. `SubgroupStages()` returns the device's `supportedStages`, and the test skips only the vertex draw when the stage is missing. Merging. Note: #2322 adds getters next to this one in `VulkanDevice.hpp/.cpp`; whichever lands second needs a trivial rebase.
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!1565
No description provided.