test(agc): skip flat aperture 64-bit atomic rows without shaderBufferInt64Atomics #3286

Merged
kr4y4 merged 1 commit from upstream-pr/3286 into main 2026-10-11 07:29:17 +00:00
kr4y4 commented 2026-10-11 05:21:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by kr4y4 on 2026-10-11T05:21:58Z.


What

All six agc_driver_flat_apertures parts fail on GPUs without shaderBufferInt64Atomics, because each part has flat_atomic64_* rows. On an Intel Raptor Lake-S iGPU, on main 961b25fe:

ShaderRecompiler::Recompile: SPIR-V module emission failed: 64-bit buffer atomics need shaderBufferInt64Atomics

The recompiler refuses those rows on purpose; this is the same failure the other 64-bit buffer atomic tests already skip with TargetHasCapability(target, spv::CapabilityInt64Atomics), for example BufferAtomics.cpp and BufferUnalignedBase.cpp.

FlatApertures now leaves out the 64-bit atomic rows when the target lacks Int64Atomics, and prints that it did, the same way it already leaves out the wave64 rows on a small subgroup. The 32-bit atomic rows and all load and store rows still run. On devices that have the capability nothing changes.

Arrow Lake iGPUs report shaderBufferInt64Atomics, which is probably why the Intel results on #2114 don't list this test.

Tested

Windows 11 (26200), WinLibs GCC 15.2.0 r7, CI configure flags, main 7f1dc965:

  • Intel Raptor Lake-S iGPU, which has no shaderBufferInt64Atomics:
    • before: all six parts fail with the message above (full run on 961b25fe);
    • after: all six pass with --repeat until-fail:3, each printing skipped the 64-bit atomic rows;
    • each part still checks 11 to 13 rows.
  • RTX 4070 Laptop GPU: all six pass with --repeat until-fail:3, with 21 rows checked per part, the same as before.
  • tools/check_conventions.py --base origin/main 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 (none added)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4816795892 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3286). Originally posted by [kr4y4](https://github.com/kr4y4) on 2026-10-11T05:21:58Z. --- ### What All six `agc_driver_flat_apertures` parts fail on GPUs without `shaderBufferInt64Atomics`, because each part has `flat_atomic64_*` rows. On an Intel Raptor Lake-S iGPU, on `main` 961b25fe: ``` ShaderRecompiler::Recompile: SPIR-V module emission failed: 64-bit buffer atomics need shaderBufferInt64Atomics ``` The recompiler refuses those rows on purpose; this is the same failure the other 64-bit buffer atomic tests already skip with `TargetHasCapability(target, spv::CapabilityInt64Atomics)`, for example `BufferAtomics.cpp` and `BufferUnalignedBase.cpp`. `FlatApertures` now leaves out the 64-bit atomic rows when the target lacks `Int64Atomics`, and prints that it did, the same way it already leaves out the wave64 rows on a small subgroup. The 32-bit atomic rows and all load and store rows still run. On devices that have the capability nothing changes. Arrow Lake iGPUs report `shaderBufferInt64Atomics`, which is probably why the Intel results on #2114 don't list this test. ### Tested Windows 11 (26200), WinLibs GCC 15.2.0 r7, CI configure flags, `main` 7f1dc965: - Intel Raptor Lake-S iGPU, which has no `shaderBufferInt64Atomics`: - before: all six parts fail with the message above (full run on 961b25fe); - after: all six pass with `--repeat until-fail:3`, each printing `skipped the 64-bit atomic rows`; - each part still checks 11 to 13 rows. - RTX 4070 Laptop GPU: all six pass with `--repeat until-fail:3`, with 21 rows checked per part, the same as before. - `tools/check_conventions.py --base origin/main` 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 (none added) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
adriadam10 commented 2026-10-11 07:29:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T07:29:13Z.


Checked the diff against BufferAtomics.cpp's TargetHasCapability(..., Int64Atomics) pattern and the Kernel64 selection (row.atomic && row.width == 64u), and ran agc_driver_flat_apertures_0..5 on Linux (device with Int64Atomics, behaviour unchanged, all pass). The skip path on a device without the capability is covered by your Intel Raptor Lake-S run; merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6106684991 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3286#issuecomment-6106684991). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T07:29:13Z. --- Checked the diff against `BufferAtomics.cpp`'s `TargetHasCapability(..., Int64Atomics)` pattern and the `Kernel64` selection (`row.atomic && row.width == 64u`), and ran `agc_driver_flat_apertures_0..5` on Linux (device with Int64Atomics, behaviour unchanged, all pass). The skip path on a device without the capability is covered by your Intel Raptor Lake-S run; merging.
reyani-dev commented 2026-10-11 07:29:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by reyani-dev on 2026-10-11T07:29:16Z.


Windows run, Windows 11 (10.0.26200), WinLibs GCC 15.2.0 r7, Release, with VK_LOADER_DRIVERS_DISABLE=*dzn* (this machine's Dozen ICD crashes on its own, #3255), head d041c183 merged onto current main:

  • ctest -R "^agc_|video_out|^shader|recompiler": 358/358 pass on the RTX 4070 Laptop GPU (driver 616.92).
  • agc_driver_flat_apertures_1 also passes on the AMD Radeon 780M (ANYPS5_GPU=AMD).

Both GPUs report shaderBufferInt64Atomics, so neither prints the new skip line. This confirms that nothing changes on devices that have the capability, but not the skip path itself.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6106685440 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3286#issuecomment-6106685440). Originally posted by [reyani-dev](https://github.com/reyani-dev) on 2026-10-11T07:29:16Z. --- Windows run, Windows 11 (10.0.26200), WinLibs GCC 15.2.0 r7, Release, with `VK_LOADER_DRIVERS_DISABLE=*dzn*` (this machine's Dozen ICD crashes on its own, #3255), head `d041c183` merged onto current `main`: - `ctest -R "^agc_|video_out|^shader|recompiler"`: 358/358 pass on the RTX 4070 Laptop GPU (driver 616.92). - `agc_driver_flat_apertures_1` also passes on the AMD Radeon 780M (`ANYPS5_GPU=AMD`). Both GPUs report `shaderBufferInt64Atomics`, so neither prints the new skip line. This confirms that nothing changes on devices that have the capability, but not the skip path itself.
Mouhand-Kaddo commented 2026-10-11 07:32:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Mouhand-Kaddo on 2026-10-11T07:32:51Z.


Additional platform validation of standalone PR head d041c183df18cf45cf94f753c8f5e510a02de9ee (2026-10-11):

Linux: failed tests — Arch Linux in WSL2 (kernel 6.6.87.2), GCC 16.2.1 20260810; CMake 4.3.1 / Ninja; Release, BUILD_TESTING=ON.

6 checks, 4 failures, 0 CTest skips. Built the selected targets and dependencies; this is focused validation, not a full build or full-suite run.

Checks: agc_driver_flat_apertures_0, agc_driver_flat_apertures_1, agc_driver_flat_apertures_2, agc_driver_flat_apertures_3, agc_driver_flat_apertures_4, agc_driver_flat_apertures_5.

Command after building: ctest --test-dir <build> --verbose --no-tests=error --timeout 30 -R "^agc_driver_flat_apertures".

Vulkan: Mesa lavapipe 26.2.4 / LLVM 23.1.1 software Vulkan; no native Linux hardware-GPU result.

Flat-aperture parts 0-3 each timed out at the 30-second limit while the recorded GPU batch was still running; parts 4-5 passed. WSL reports asynchronous userfaultfd write protection unavailable, and Vulkan uses lavapipe with an 8-lane subgroup. Parent control 7f1dc9658a: flat-aperture part 0 passed in 2.80 seconds under the same 30-second limit, versus a timeout on this PR head. This comparison covers part 0 only; parts 1-3 were not rerun on the parent. This is not a clean Linux pass.

Failed cases: agc_driver_flat_apertures_0, agc_driver_flat_apertures_1, agc_driver_flat_apertures_2, agc_driver_flat_apertures_3.

No title/gameplay validation. These results cover the standalone head, not a merge with current main.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6106712444 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3286#issuecomment-6106712444). Originally posted by [Mouhand-Kaddo](https://github.com/Mouhand-Kaddo) on 2026-10-11T07:32:51Z. --- <!-- anyps5-platform-validation:d041c183df18cf45cf94f753c8f5e510a02de9ee --> Additional platform validation of standalone PR head `d041c183df18cf45cf94f753c8f5e510a02de9ee` (2026-10-11): **Linux: failed tests** — Arch Linux in WSL2 (kernel 6.6.87.2), GCC 16.2.1 20260810; CMake 4.3.1 / Ninja; Release, `BUILD_TESTING=ON`. 6 checks, 4 failures, 0 CTest skips. Built the selected targets and dependencies; this is focused validation, not a full build or full-suite run. Checks: `agc_driver_flat_apertures_0`, `agc_driver_flat_apertures_1`, `agc_driver_flat_apertures_2`, `agc_driver_flat_apertures_3`, `agc_driver_flat_apertures_4`, `agc_driver_flat_apertures_5`. Command after building: `ctest --test-dir <build> --verbose --no-tests=error --timeout 30 -R "^agc_driver_flat_apertures"`. Vulkan: Mesa lavapipe 26.2.4 / LLVM 23.1.1 software Vulkan; no native Linux hardware-GPU result. Flat-aperture parts 0-3 each timed out at the 30-second limit while the recorded GPU batch was still running; parts 4-5 passed. WSL reports asynchronous userfaultfd write protection unavailable, and Vulkan uses lavapipe with an 8-lane subgroup. Parent control 7f1dc9658ab808ee72d5fa9b0e47c0b11be1e678: flat-aperture part 0 passed in 2.80 seconds under the same 30-second limit, versus a timeout on this PR head. This comparison covers part 0 only; parts 1-3 were not rerun on the parent. This is not a clean Linux pass. Failed cases: `agc_driver_flat_apertures_0`, `agc_driver_flat_apertures_1`, `agc_driver_flat_apertures_2`, `agc_driver_flat_apertures_3`. No title/gameplay validation. These results cover the standalone head, not a merge with current main.
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!3286
No description provided.