Repository navigation
test(agc): skip the GDS M0 base 64-bit add without shaderBufferInt64Atomics - #24072
oneandonlydean merged 1 commit into
Conversation
MarcZX10
left a comment
There was a problem hiding this comment.
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.
|
Head No new failures and no new validation messages on either GPU.
Layer runs used AI-assisted: yes |
|
Intel on Windows, a device without Setup: Windows 11 Home 10.0.26300, Intel UHD Graphics (
Every run's AI-assisted: yes (Claude Code) |
|
Tested head Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release,
Whole batch: the full I did not check whether either device lacks AI-assisted: yes (Claude Code) |
|
macOS check of
So the read half of the test still runs and passes here, and only the 64-bit add is left out. |
What
agc_driver_gds_m0_baseruns a 64-bit GDS add as its last step. On a device withoutshaderBufferInt64Atomicsthe recompiler refuses that shader on purpose (64-bit GDS atomics need shaderBufferInt64Atomics, the rejectionagc_driver_gds_integer_atomics64checks), 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.cppalready 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:
maina4d1053d4b+ #17425 and #11049 (needed to build on macOS), withANYPS5_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 withShaderRecompiler::Recompile: SPIR-V module emission failed: 64-bit GDS atomics need shaderBufferInt64Atomics.skipping the 64-bit add, the device has no shaderBufferInt64Atomics.Insert instance layer "VK_LAYER_KHRONOS_validation", neither showswas not found but was requested by env var VK_INSTANCE_LAYERS, and neither contains aVUID-message.Not tested on a device that has
shaderBufferInt64Atomics; there the code path is the same as before.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)AI-assisted: yes (Claude Code)