Repository navigation
test(shader): cover the bitwise and unsigned image atomics - #667
Merged
oneandonlydean merged 1 commit intoOct 5, 2026
Merged
Conversation
Co-Authored-By: Claude <noreply@anthropic.com>
9 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
image_atomic_and,image_atomic_or,image_atomic_xor,image_atomic_uminandimage_atomic_umaxare decoded and translated, but no execution test runs them. This addsImageAtomicsBitwise.cppwith the same shape asImageAtomics.cpp: each lane swaps its own texel toa, runs the atomic withbandglc, then reads the texel back withimage_atomic_add 0 glc. Pins the returned value (a) and the stored value.The test is a new file, not part of
ImageAtomics.cpp, so that it doesn't conflict with #659, which edits that file. Test only, no emulator change.Rows: 64 lanes. 14 edge pairs (0 and all-ones,
0x7fffffff/0x80000000to separate unsigned from signed min/max, alternating bit patterns, equal values) plus LCG values. It runs as wave32, as native wave64 and as wave64 split into two wave32 halves (ComputeTarget(32)).Behaviour measured on HW
RDNA2 (gfx1035, wave32, 32_UINT 2D T#): all 64 rows match the model
a & b,a | b,a ^ b, unsignedmin/max, and the returned value is the previous texel.mainalready does this, so no bug was found.Tested
main53dc19c: fullctestwithANYPS5_REQUIRE_VULKAN=1. The new test passes on RADV, on local lavapipe and on CI's lavapipe (Mesa 25.2.8, 0 s cold).agc_driver_pixel_helper_lanes,agc_driver_pixel_ldsandagc_driver_pixel_lds_lane_slotsalso fail onmainon this machine's RADV (wave32 lane 32 on a 64-wide subgroup), unrelated.MemoryInstructionDispatch.cppfails it on RADV and lavapipe.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)