test(agc): skip GDS 64-bit atomics without shaderBufferInt64Atomics #16934

Merged
LeandroLP23 merged 1 commit from upstream-pr/16934 into main 2026-11-12 23:16:12 +00:00
LeandroLP23 commented 2026-11-07 23:52:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-11-07T23:52:29Z.


What

The nine agc_driver_gds_integer_atomics64* tests failed on a device without shaderBufferInt64Atomics. They compiled for the device's real target, and the recompiler then refused the shader with 64-bit GDS atomics need shaderBufferInt64Atomics. Now:

  • The dispatching modes return VulkanTestSkipped when the opened device lacks the feature, as BufferAtomics.cpp, GlobalAtomics64.cpp and the other 64-bit atomic execution tests do.
  • requirements only compiles and never dispatches, so it keeps running on every device. Its compile target gains Int64Atomics when the device lacks it. The emission checks and the refusal check (which still removes the capability) are unchanged.

Tested

Windows 11 Home 10.0.26300, WinLibs GCC 15.2.0 r7, Release, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1, on main 0f147e329f:

  • AMD Radeon 860M (has the feature): all nine tests pass. One more run of the nine with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (layer load confirmed with VK_LOADER_DEBUG=layer) passes with no VUID- lines.
  • Device without the feature, simulated: I have no such GPU. A local, uncommitted edit removed Int64Atomics from the target and made both feature checks false. The eight dispatching tests are skipped with skipped, the device has no shaderBufferInt64Atomics, and requirements passes. A confirmation on a real Intel iGPU like the one in #16927 would still help.

python tools/check_conventions.py --base origin/main passes. tools/pr_overlap.py reports no overlap with open pull requests.

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
  • Fixes: Fixes #16927
  • Unblocks: none
  • GPUs tested: AMD Radeon 860M (RDNA 3.5), driver 32.0.32015.12012, Windows 11; no-feature device simulated only
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5206979903 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/16934). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-11-07T23:52:29Z. --- ### What The nine `agc_driver_gds_integer_atomics64*` tests failed on a device without `shaderBufferInt64Atomics`. They compiled for the device's real target, and the recompiler then refused the shader with `64-bit GDS atomics need shaderBufferInt64Atomics`. Now: - The dispatching modes return `VulkanTestSkipped` when the opened device lacks the feature, as `BufferAtomics.cpp`, `GlobalAtomics64.cpp` and the other 64-bit atomic execution tests do. - `requirements` only compiles and never dispatches, so it keeps running on every device. Its compile target gains `Int64Atomics` when the device lacks it. The emission checks and the refusal check (which still removes the capability) are unchanged. ### Tested Windows 11 Home 10.0.26300, WinLibs GCC 15.2.0 r7, Release, `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`, on `main` `0f147e329f`: - **AMD Radeon 860M (has the feature):** all nine tests pass. One more run of the nine with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` (layer load confirmed with `VK_LOADER_DEBUG=layer`) passes with no `VUID-` lines. - **Device without the feature, simulated:** I have no such GPU. A local, uncommitted edit removed `Int64Atomics` from the target and made both feature checks false. The eight dispatching tests are skipped with `skipped, the device has no shaderBufferInt64Atomics`, and `requirements` passes. A confirmation on a real Intel iGPU like the one in #16927 would still help. `python tools/check_conventions.py --base origin/main` passes. `tools/pr_overlap.py` reports no overlap with open pull requests. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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] Fixes: Fixes #16927 - [x] Unblocks: none - [x] GPUs tested: AMD Radeon 860M (RDNA 3.5), driver 32.0.32015.12012, Windows 11; no-feature device simulated only - [x] AI-assisted: yes
mashingaan commented 2026-11-08 08:59:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mashingaan on 2026-11-08T08:59:31Z.

Review: APPROVED


The skip covers the operations modes when the device lacks shaderBufferInt64Atomics, while the requirements mode still simulates the capability through the Compile helper. No findings.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5817283164 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/16934#pullrequestreview-5817283164). Originally posted by [mashingaan](https://github.com/mashingaan) on 2026-11-08T08:59:31Z. **Review:** APPROVED --- The skip covers the operations modes when the device lacks shaderBufferInt64Atomics, while the requirements mode still simulates the capability through the Compile helper. No findings.
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!16934
No description provided.