test(agc): pin the 64-bit atomics emission failures #1563
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1563"
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 kr4y4 on 2026-10-08T12:43:34Z.
What
From the #1213 review: nothing pinned the
FailEmitthat #1213 added for 64-bit buffer atomics withoutshaderBufferInt64Atomics. The one next to it, for 64-bit image atomics withoutVK_EXT_shader_image_atomic_int64, had no test either.verifyInt64AtomicCapabilitiesinShaderMemory.cpprecompiles two compute programs, each against a target with and without the capability:buffer_atomic_inc_x2on a buffer:Int64Atomics, emission fails with64-bit buffer atomics need shaderBufferInt64Atomics;Int64Atomics.image_atomic_swapon a 32_32 UINT image:Int64ImageEXT, emission fails with64-bit image atomics need VK_EXT_shader_image_atomic_int64;Int64ImageEXT.It runs without a Vulkan device and sits next to
verifyComputedTexelOffsets, the other capability-gated emission test. That placement keeps it clear of the open PRs that add tests at the end ofmain;git merge-treeshows no conflicts with any open PR that touchesShaderMemory.cpp.The capability constants repeated in the tests, the other point from #1213, are in #1558.
Tested
Windows 11 (26200), WinLibs GCC 15.2.0 r7, CI configure flags, main at
07c2405c:agc_shader_memorypasses.Checked that the test catches each failure. Replacing either
FailEmitwith a no-op makesagc_shader_memoryfail:64-bit atomics: a buffer_atomic_inc_x2 compiled without shaderBufferInt64Atomics64-bit atomics: an image_atomic_swap on a 32_32 image compiled without shaderImageInt64AtomicsChecklist
main; no other open PR implements the same thing🤖 Generated with Claude Code