test(shader): split the global atomics test to keep it within CI's time limit #688
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/688"
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-05T15:34:02Z.
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)