Repository navigation
test(shader): split the global atomics test to keep it within CI's time limit - #688
Merged
oneandonlydean merged 1 commit intoOct 5, 2026
Merged
Conversation
…me limit 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
agc_driver_global_atomics(from #491) takes 29 s on main's Linux CI and 46 s cold on CI's lavapipe locally. It ran one kernel with all 28 atomics three times: wave32, wave64, and once more against a read-only range. Each dispatch recompiles, and CI's lavapipe (LLVM 20) is slow on BDA accesses.It is now three tests. The opcodes, rows and checks are the same:
GlobalAtomics: the 13 32-bitglobal_atomic_*opcodes, 16 HW rows each, wave32.GlobalAtomics64: the 11_x2opcodes, 16 HW rows each, wave32.GlobalAtomicsLanes: the cases that depend on the lanes, as wave32 and wave64:flat_atomic_xorthrough a 64-bit VGPR address, the contended returningglobal_atomic_add(sum and distinct prefix sums), the non-returningglobal_atomic_orunder a partial EXEC, and a per-lane non-returning add. Then the read-only dispatch, which must leave the range untouched.The per-opcode rows depend only on each lane's own address and data, so they run as wave32 only. The wave64 path is still covered by the lanes test, on all 64 lanes. The read-only check used to run all 24 opcodes. Now it runs the lanes kernel, which has a new non-returning
global_atomic_add_x2(per-lane carry into the high dword), so both the 4-byte and the 8-byte write lookups ofEmitBdaAtomichit the read-only range. Theadd_x2expected value is the 64-bit sum:add_x2itself is among the HW-measured opcodes, but this new row was not run on HW.Only tests change.
Tested
glcreturn dropped, x2 data width: each one fails at least one of the three. Droppingnote_bda_writeis still not visible, as on main.BUILD_TESTING=ON): full build,ctest287/290.agc_driver_pixel_helper_lanes,agc_driver_pixel_ldsandagc_driver_pixel_lds_lane_slotsalso fail onmainon this machine's RADV.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)