Skip to content

hk: tests: stub hk_cmd_buffer_move_alias_sites() - #571

Merged
RyanTheTide merged 1 commit into
aurora-wipfrom
fix/hk-tests-alias-sites-stub
Nov 20, 2026
Merged

RyanTheTide merged 1 commit into
aurora-wipfrom
fix/hk-tests-alias-sites-stub

Conversation

@RyanTheTide

Copy link
Copy Markdown

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:

FAILED: src/asahi/vulkan/hk_execution_allowance_test
FAILED: src/asahi/vulkan/hk_tess_batch_test
undefined reference to `hk_cmd_buffer_move_alias_sites'

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

  • x86 clang, release with asserts, -Dtools=asahi,drm-shim: aurora-wip 33d094f fails to link both executables. With this change, meson test --suite asahi gives 205/205, both tests included.

Assisted-by: LLM (Claude:Opus 5.5)

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant