Repository navigation
test(shader): keep the flat cache bits test within CI's time limit - #677
Merged
boykopovar merged 1 commit intoOct 5, 2026
Merged
Conversation
Co-Authored-By: Claude <noreply@anthropic.com>
This was referenced Oct 5, 2026
This was referenced Oct 5, 2026
8 tasks done
6 tasks done
8 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_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)