test(agc): skip the GDS M0 base 64-bit add without shaderBufferInt64Atomics #24072
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/24072"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Romannachwievor on 2026-11-20T05:05:22Z.
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)
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T05:47:37Z.
Review: APPROVED
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
f4e894d9ba59bcc034c1a62210b05e66fd1cec65using the prepared review bundle andrepo_read.py. No tests were run.Results
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.