test(shader): split the flat and global loads test to keep it within CI's time limit #689
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/689"
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:05Z.
What
agc_driver_flat_global_loads(from #547) takes 56 s on main's Linux CI and 73 s cold on CI's lavapipe locally, about half the 120 s ctest timeout. On CI's lavapipe (LLVM 20) almost all of that is compiling the BDA reads. Every load in the test uses an offset or misaligned address, so each one emits the byte path, and the cost grows with the width: about 3 s for a byte or dword load and about 7 s for an unaligneddwordx4, measured one by one.The test is split into six tests, one kernel each, grouped by that cost. The 20 loads, the 32 rows and the region bytes are unchanged:
GlobalLoadsubyte,sbyte,ushort,sshort,dword, SGPR-basedword, the secondubyteGlobalLoadsX2X3dwordx2,dwordx3GlobalLoadsX4dwordx4FlatLoads,FlatLoadsX2X3,FlatLoadsX4Each load reads only its own lane's addresses into its own registers, so splitting the kernel doesn't change any result. The expected values are the HW outputs of #547 for the registers each test loads, plus the sentinel elsewhere, and the generator asserts this for every row. The 6 KiB region moved to
FlatGlobalLoadsRegion.hppnext to the tests, likeVulkanTestDevice.hpp, so it isn't copied six times.The total time goes down a little (64 s cold locally, was 73 s), but each test now takes 9 to 12 s, so none comes close to the timeout. Reducing the total would mean dropping loads.
Only tests change.
Tested
dwordx3reading 2 dwords,dwordx3dropping its last dword, a 64-bit VGPR global address taken as an SGPR-base offset: each one fails at least one test. Mapping an unaligned span through the aligned path is still not caught, as on main.BUILD_TESTING=ON): full build,ctest290/293.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)