Repository navigation
hk: tests: stub hk_cmd_buffer_move_alias_sites() - #571
Merged
Merged
Conversation
The CDM merge helper in hk_cmd_buffer.h now calls hk_cmd_buffer_move_alias_sites() when the merged stream carries alias sites (263ddb7). hk_execution_allowance_test and hk_tess_batch_test build the merge without hk_cmd_buffer.c and stub its other entry point, hk_cmd_buffer_emit_cs_jump(), so both stopped linking. Their streams record no alias sites, so stub the new function the same way, as unreachable. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
This was referenced Nov 20, 2026
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.
Problem
Since 263ddb7 (#552), the CDM merge helper in hk_cmd_buffer.h calls
hk_cmd_buffer_move_alias_sites(). Two unit-test executables build that helper without hk_cmd_buffer.c, so aurora-wip no longer links them:Change
Both tests already stub the helper's other out-of-line call,
hk_cmd_buffer_emit_cs_jump(). Their streams record no alias sites, so the new function gets the same kind of stub, asserting it is never reached. Tests only; no driver change.Testing
-Dtools=asahi,drm-shim: aurora-wip 33d094f fails to link both executables. With this change,meson test --suite asahigives 205/205, both tests included.Assisted-by: LLM (Claude:Opus 5.5)