fix(agc): skip the GDS 64-bit atomics tests without shaderBufferInt64Atomics #18655

Merged
oneandonlydean merged 3 commits from upstream-pr/18655 into main 2026-11-14 04:42:45 +00:00
oneandonlydean commented 2026-11-12 00:02:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-11-12T00:02:51Z.


What

The nine agc_driver_gds_integer_atomics64* tests failed on a device without shaderBufferInt64Atomics instead of skipping. They now skip with exit code 77 when the device target lacks the Int64Atomics capability, the same check agc_driver_buffer_atomics_inc_dec64 uses.

Tested

Not built or run here: the test host has no device without shaderBufferInt64Atomics, and the change copies the skip block of BufferAtomicsIncDec64.cpp line for line. The reporter's Intel iGPU run in #16927 is the check.

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
  • 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
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5268734340 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18655). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-11-12T00:02:51Z. --- ### What The nine `agc_driver_gds_integer_atomics64*` tests failed on a device without `shaderBufferInt64Atomics` instead of skipping. They now skip with exit code 77 when the device target lacks the Int64Atomics capability, the same check `agc_driver_buffer_atomics_inc_dec64` uses. ### Tested Not built or run here: the test host has no device without `shaderBufferInt64Atomics`, and the change copies the skip block of `BufferAtomicsIncDec64.cpp` line for line. The reporter's Intel iGPU run in #16927 is the check. ### 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 - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical debt file - [x] No notes, investigation `.md` files or images added to the repository - [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] AI-assisted: yes
MarcZX10 commented 2026-11-12 00:31:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-12T00:31:05Z.

Review: DISMISSED


Reviewed — changes requested

The new unsupported-device path returns CTest’s skip code, but the default agc_driver_gds_integer_atomics64 test is missing the CTest property that treats code 77 as skipped, so it will still fail on the affected device.

What I ran

Head 3696ebd25c1c60652f9e2340c14609280e900a1c; base 80b5a5016f352cf0298bd32f16653c96007dab4a. Environment: Debian 12, Python 3.11.2, GCC 12.2.0.

git diff --check 80b5a5016f352cf0298bd32f16653c96007dab4a...3696ebd25c1c60652f9e2340c14609280e900a1c
/usr/bin/python3 tools/check_conventions.py --base 80b5a5016f352cf0298bd32f16653c96007dab4a --head 3696ebd25c1c60652f9e2340c14609280e900a1c --title 'fix(agc): skip the GDS 64-bit atomics tests without shaderBufferInt64Atomics' --body /tmp/anyps5-pr-precheck-18655/pr-body.md
/usr/bin/python3 /marc/AnyPS5/tools/pr_abi_audit.py --base 80b5a5016f352cf0298bd32f16653c96007dab4a --head 3696ebd25c1c60652f9e2340c14609280e900a1c --json
/usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 18655 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck-18655/stack
/usr/bin/python3 /marc/AnyPS5/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck-18655/head-3696ebd25c1c-93e3780a --json core/libs/prx/libSceAgcDriver/tests/execution/GdsIntegerAtomics64.cpp

Results

Check Result Note
Diff whitespace passed Exit 0.
Conventions passed “All conventions checks passed.”
Export ABI audit not applicable No export declarations changed.
Dependency/mergeability passed Report says the PR merges cleanly with current main.
Test-quality heuristic warning, manually checked It did not find a literal CMake reference to the C++ path; the test is registered through the project’s CMake test setup.
Build and CTest not run No local build or Vulkan-device test was run.
Hosted CI incomplete Windows was in progress; other product build jobs were skipped in the saved snapshot.
Relevant recorded output

Conventions:

All conventions checks passed.

Test-quality heuristic:

possible-unregistered-cpp-test: Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage.

The CMake test file registers the default case separately from the seven named modes and the copied case. Only the modes and copied case set SKIP_RETURN_CODE 77.

Findings

Blocking

The test’s new guard returns VulkanTestSkipped (77) when the device lacks shaderBufferInt64Atomics. The default agc_driver_gds_integer_atomics64 test has only a timeout property; unlike the other eight registered cases, it lacks SKIP_RETURN_CODE 77. CTest will therefore report this default case as failed on the exact devices this PR intends to support.

Minimal fix:

    set_tests_properties(agc_driver_gds_integer_atomics64 PROPERTIES TIMEOUT 30 SKIP_RETURN_CODE 77)

Non-blocking

None.

Sources

Not verified

  • I did not run the test on a device without shaderBufferInt64Atomics or build the C++ target locally.
  • The saved hosted CI snapshot had no completed product build result.

To get this to a good state

Add SKIP_RETURN_CODE 77 to the default test’s CTest properties. I will re-check the new head and the same CMake registration after it is pushed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5867203551 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18655#pullrequestreview-5867203551). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-12T00:31:05Z. **Review:** DISMISSED --- # Reviewed — changes requested The new unsupported-device path returns CTest’s skip code, but the default `agc_driver_gds_integer_atomics64` test is missing the CTest property that treats code 77 as skipped, so it will still fail on the affected device. ## What I ran Head `3696ebd25c1c60652f9e2340c14609280e900a1c`; base `80b5a5016f352cf0298bd32f16653c96007dab4a`. Environment: Debian 12, Python 3.11.2, GCC 12.2.0. ```sh git diff --check 80b5a5016f352cf0298bd32f16653c96007dab4a...3696ebd25c1c60652f9e2340c14609280e900a1c /usr/bin/python3 tools/check_conventions.py --base 80b5a5016f352cf0298bd32f16653c96007dab4a --head 3696ebd25c1c60652f9e2340c14609280e900a1c --title 'fix(agc): skip the GDS 64-bit atomics tests without shaderBufferInt64Atomics' --body /tmp/anyps5-pr-precheck-18655/pr-body.md /usr/bin/python3 /marc/AnyPS5/tools/pr_abi_audit.py --base 80b5a5016f352cf0298bd32f16653c96007dab4a --head 3696ebd25c1c60652f9e2340c14609280e900a1c --json /usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 18655 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck-18655/stack /usr/bin/python3 /marc/AnyPS5/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck-18655/head-3696ebd25c1c-93e3780a --json core/libs/prx/libSceAgcDriver/tests/execution/GdsIntegerAtomics64.cpp ``` ## Results | Check | Result | Note | |---|---|---| | Diff whitespace | passed | Exit 0. | | Conventions | passed | “All conventions checks passed.” | | Export ABI audit | not applicable | No export declarations changed. | | Dependency/mergeability | passed | Report says the PR merges cleanly with current `main`. | | Test-quality heuristic | warning, manually checked | It did not find a literal CMake reference to the C++ path; the test is registered through the project’s CMake test setup. | | Build and CTest | not run | No local build or Vulkan-device test was run. | | Hosted CI | incomplete | Windows was in progress; other product build jobs were skipped in the saved snapshot. | <details> <summary>Relevant recorded output</summary> Conventions: ```text All conventions checks passed. ``` Test-quality heuristic: ```text possible-unregistered-cpp-test: Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage. ``` The CMake test file registers the default case separately from the seven named modes and the copied case. Only the modes and copied case set `SKIP_RETURN_CODE 77`. </details> ## Findings ### Blocking The test’s new guard returns `VulkanTestSkipped` (77) when the device lacks `shaderBufferInt64Atomics`. The default `agc_driver_gds_integer_atomics64` test has only a timeout property; unlike the other eight registered cases, it lacks `SKIP_RETURN_CODE 77`. CTest will therefore report this default case as failed on the exact devices this PR intends to support. Minimal fix: ```suggestion set_tests_properties(agc_driver_gds_integer_atomics64 PROPERTIES TIMEOUT 30 SKIP_RETURN_CODE 77) ``` ### Non-blocking None. ## Sources - [New 77-returning capability guard at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/3696ebd25c1c60652f9e2340c14609280e900a1c/core/libs/prx/libSceAgcDriver/tests/execution/GdsIntegerAtomics64.cpp#L701-L708) - [Default test property and the other cases’ `SKIP_RETURN_CODE` settings](https://github.com/boykopovar/AnyPS5/blob/3696ebd25c1c60652f9e2340c14609280e900a1c/core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_gds_integer_atomics64_tests.cmake#L1-L13) - [`VulkanTestSkipped` is 77 at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/3696ebd25c1c60652f9e2340c14609280e900a1c/core/libs/prx/libSceAgcDriver/tests/execution/VulkanTestDevice.hpp#L13) ## Not verified - I did not run the test on a device without `shaderBufferInt64Atomics` or build the C++ target locally. - The saved hosted CI snapshot had no completed product build result. ## To get this to a good state Add `SKIP_RETURN_CODE 77` to the default test’s CTest properties. I will re-check the new head and the same CMake registration after it is pushed.
MarcZX10 commented 2026-11-13 23:48:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-13T23:48:44Z.

Review: APPROVED


Reviewed — looks good

The changed CTest property maps exit code 77 to skipped for the default GDS 64-bit atomics test, matching the existing skip handling used by its other registered variants.

What I ran

Reviewed head c3bea834725bebb79d8022731612a1fef1b4f989. Read the prepared description, commits, manifest, diff, and the changed CMake file at the pinned head, plus targeted source ranges for the test and a related capability check. No build or tests were run; the description says the author did not run them either.

Results

Check Result Note
Change review passed One CTest property changed
Build and tests not run No execution performed

Findings

Blocking

None.

Non-blocking

None.

Not verified

The GDS test's runtime behavior and CTest's skip reporting were not exercised. Read: description.md, commits.md, manifest.json, diff.patch, agc_driver_gds_integer_atomics64_tests.cmake, GdsIntegerAtomics64.cpp lines 180–207 and 542–593, and BufferAtomicsIncDec64.cpp lines 159–175. No files were excluded in manifest.json; files.json was unavailable in the prepared review folder.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5899688198 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18655#pullrequestreview-5899688198). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-13T23:48:44Z. **Review:** APPROVED --- # Reviewed — looks good The changed CTest property maps exit code 77 to skipped for the default GDS 64-bit atomics test, matching the existing skip handling used by its other registered variants. ## What I ran Reviewed head `c3bea834725bebb79d8022731612a1fef1b4f989`. Read the prepared description, commits, manifest, diff, and the changed CMake file at the pinned head, plus targeted source ranges for the test and a related capability check. No build or tests were run; the description says the author did not run them either. ## Results | Check | Result | Note | |---|---|---| | Change review | passed | One CTest property changed | | Build and tests | not run | No execution performed | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The GDS test's runtime behavior and CTest's skip reporting were not exercised. Read: `description.md`, `commits.md`, `manifest.json`, `diff.patch`, `agc_driver_gds_integer_atomics64_tests.cmake`, `GdsIntegerAtomics64.cpp` lines 180–207 and 542–593, and `BufferAtomicsIncDec64.cpp` lines 159–175. No files were excluded in `manifest.json`; `files.json` was unavailable in the prepared review folder. ## To get this to a good state Nothing is required.
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!18655
No description provided.