Skip to content

test(agc): skip the GDS M0 base 64-bit add without shaderBufferInt64Atomics - #24072

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
Romannachwievor:test/agc-gds-m0-base-int64-gate
Nov 27, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
Romannachwievor:test/agc-gds-m0-base-int64-gate

Conversation

@Romannachwievor

Copy link
Copy Markdown
Contributor

What

agc_driver_gds_m0_base runs a 64-bit GDS add as its last step. On a device without shaderBufferInt64Atomics the recompiler refuses that shader on purpose (64-bit GDS atomics need shaderBufferInt64Atomics, the rejection agc_driver_gds_integer_atomics64 checks), so the whole test fails there, after the 32-bit add and read steps already passed. This happens on Apple GPUs through MoltenVK.

The test now runs the 64-bit add only when the target has CapabilityInt64Atomics, and prints that it skipped it otherwise. The 32-bit add and read checks still run on every device. GdsIntegerAtomics64.cpp already skips on the same capability.

Tested

macOS 26.5, Apple M1, x86_64 Release under Rosetta 2, MoltenVK from LunarG SDK 1.4.363.0. Tree: main a4d1053d4b + #17425 and #11049 (needed to build on macOS), with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer, ctest --test-dir build-full -R '^agc_driver_gds_m0_base$' -V:

  • main: fails with ShaderRecompiler::Recompile: SPIR-V module emission failed: 64-bit GDS atomics need shaderBufferInt64Atomics.
  • This change: passes 3 of 3 runs and prints skipping the 64-bit add, the device has no shaderBufferInt64Atomics.
  • Both logs show Insert instance layer "VK_LAYER_KHRONOS_validation", neither shows was not found but was requested by env var VK_INSTANCE_LAYERS, and neither contains a VUID- message.

Not tested on a device that has shaderBufferInt64Atomics; there the code path is the same as before.

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • 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: none
  • Unblocks: none
  • GPUs tested: Apple M1 (8-core GPU), MoltenVK from LunarG SDK 1.4.363.0, macOS 26.5
  • AI-assisted: yes (Claude Code)

AI-assisted: yes (Claude Code)

@github-actions github-actions Bot added the agc libSceAgc* label Nov 20, 2026

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed — looks good

The reviewed change conditionally skips the 64-bit GDS add when the target lacks CapabilityInt64Atomics, while preserving the 32-bit add and read checks.

What I ran

Reviewed head f4e894d9ba59bcc034c1a62210b05e66fd1cec65 using the prepared review bundle and repo_read.py. No tests were run.

Results

Check Result Note
Diff and changed file passed One file reviewed
Tests not run Author-reported runs only

Findings

Blocking

None.

Non-blocking

None.

Not verified

No test execution was performed. The PR description reports three successful runs on macOS 26.5 with an Apple M1 under Rosetta 2 and MoltenVK; those results were not independently verified. No other files were changed or excluded according to the manifest.

To get this to a good state

Nothing is required.

@Colewiz7

Copy link
Copy Markdown
Contributor

Head f4e894d9ba merged onto main e825fa1492 as 920adbb879, no conflict. Linux 7.3.4, GCC 16.2.1 Release, Mesa 26.2.6 RADV, RX 7900 XT (gfx1100) and 7800X3D iGPU (gfx1036).

No new failures and no new validation messages on either GPU.

RX 7900 XT iGPU
tests run (6355 on the 7900 XT, the 2036 GPU ones on the iGPU), new failures vs main none none
-R '^agc' ( tests) with the layer, new failures vs main none none
VUID- / SYNC-HAZARD lines 0 / 0 0 / 0

Layer runs used VK_LAYER_KHRONOS_validation 1.4.363.1 with VK_LOADER_DEBUG=layer and ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1; the loader inserted the layer in every run, and the set of distinct validation messages matches main.

AI-assisted: yes

@androidbaklava

Copy link
Copy Markdown
Contributor

Intel on Windows, a device without shaderBufferInt64Atomics, which the description and the other runs do not cover. Head f4e894d9ba merged onto main 0a025bd3c6 with --no-ff (clean).

Setup: Windows 11 Home 10.0.26300, Intel UHD Graphics (8086:a7a8, Raptor Lake), Intel driver 101.7084, Vulkan 1.4.323, WinLibs GCC 15.2.0 r7 UCRT, Release, Khronos validation layer 1.4.363 (LunarG SDK 1.4.363.0). The uncommitted _putenv_s guard of #19899 in UploadCacheReadOnlyFlush.cpp was needed to build main.

ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer ctest --test-dir build -R '^agc_driver_gds_m0_base$' -V, 3 runs each:

main main + this PR
Result fails 3 of 3: 64-bit GDS atomics need shaderBufferInt64Atomics passes 3 of 3
Output skipping the 64-bit add, the device has no shaderBufferInt64Atomics, then gds m0 base tests passed
Insert instance layer "VK_LAYER_KHRONOS_validation" in every run in every run
was not found but was requested by env var VK_INSTANCE_LAYERS 0 0
VUID- 0 0

Every run's Selected GPU name= line names the Intel UHD Graphics. The 32-bit ds_add_rtn_u32 and ds_read_b32 cases still run and pass for all three workgroups; only the 64-bit add is left out.

AI-assisted: yes (Claude Code)

@kiwe147

kiwe147 commented Nov 20, 2026

Copy link
Copy Markdown

Tested head f4e894d9ba, applied with git apply on main 86d2ba2 together with the other eight PRs of one batch (#23921, #23955, #24031, #24070, #24073, #24077, #24081, #24130). All nine applied without conflicts and the whole tree built.

Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON. GPUs: NVIDIA GeForce RTX 3080 (driver 621.24) and the AMD Radeon iGPU of the CPU (gfx1036, driver 32.0.21036.18). No validation layer. iGPU runs: ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ANYPS5_GPU="AMD Radeon".

test RTX 3080 iGPU
agc_driver_gds_m0_base pass pass

Whole batch: the full ctest -j 12 (6496 tests) on the RTX 3080 has 4 failures, and all 4 also fail on main 86d2ba2 (agc_driver_stencil_plane_memory, agc_driver_msaa_dcc_unwatch, agc_storage_write_back_host_retile, and pr_overlap_names, which needs a newer Python than my 3.10). The 2099 agc_/video tests on the iGPU ran twice. The second run fails only agc_driver_stencil_plane_memory and agc_driver_store_over_untracked, both known on main. The first run also failed agc_driver_image_table_packed_guards once; it passes 12 of 12 alone on both GPUs and did not recur.

I did not check whether either device lacks shaderBufferInt64Atomics, so the new skip branch may not run on them. On these GPUs this is a no-regression run.
This is one combined tree, not a run of this PR alone.

AI-assisted: yes (Claude Code)

@Gonic0

Gonic0 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

macOS check of f4e894d9ba, another device without shaderBufferInt64Atomics. Apple M5 Pro, macOS 27.3, MoltenVK (Vulkan SDK 1.4.363.0, subgroup size 32), x86_64 Release under Rosetta 2. The tree was main b7d463d438 plus #17425 and #11049, which main still needs to build on macOS; this pull request applied without conflicts. ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, VK_LOADER_DEBUG=layer; each log shows the loader inserting the layer and none reports it missing.

ctest -R gds (15 tests), 3 runs each main this pull request
agc_driver_gds_m0_base fails 3 of 3: "SPIR-V module emission failed: 64-bit GDS atomics need shaderBufferInt64Atomics" passes 3 of 3, printing "skipping the 64-bit add, the device has no shaderBufferInt64Atomics"
other 14 pass or skip identically (the agc_driver_gds_integer_atomics64* tests skip on both for the same missing feature) same
VUID- none none

So the read half of the test still runs and passes here, and only the 64-bit add is left out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc*

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants