test(shader): keep the flat cache bits test within CI's time limit #677
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/677"
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-05T14:55:18Z.
What
agc_driver_flat_cache_bits(from #495) takes 113 s on main's Linux CI and goes past the 120 s ctest timeout on PR runs: #545, #593, #668 and #672 fail on it with(Timeout)and nothing else. CI's lavapipe (LLVM 20) spends about 3 s compiling each BDA access per shader and wave size. The old kernel had 19 of them and ran twice (wave32 and wave64).The test now runs one wave32 kernel with 5 BDA accesses, each with
glc slc dlc:global_load_dwordx2andflat_load_dword(loads, global and flat segment)global_store_dwordandflat_store_dword(stores)global_atomic_add(glckeeps the pre-op return, withslcset)It checks the 4 results per lane and the final 16 bytes per lane against values measured on HW, and that nothing else in the 64 KiB guest block changes. The cache bits don't depend on the lane, so one wave size is enough. The decoder condition and the translation paths that #495 changed are the same for every data size, so dropping the sub-dword and per-bit rows doesn't lose a case those paths can tell apart.
Only the test changes.
Tested
slcdropping the atomic return, adlcstore skipped.BUILD_TESTING=ON): full build,ctest285/288.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)