test(shader): cover the bitwise and unsigned image atomics #667
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/667"
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 adriadam10 on 2026-10-05T13:05:34Z.
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
main53dc19cf: 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)