Skip to content

tools/asahi: extract the AV1 reference guard in the AV1 tail host test - #754

Merged
RyanTheTide merged 1 commit into
aurora-wipfrom
fix/avd-av1-tail-host-test
Oct 31, 2026
Merged

RyanTheTide merged 1 commit into
aurora-wipfrom
fix/avd-av1-tail-host-test

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

Since #725, run-host-tests on aurora-wip has been 148/158. The ten failures are all avd-av1-tail-tests. #725's AV1 reference guard added avd_av1_ref_ts(), a u64 helper that avd_av1_set_prob() and avd_av1_run_preamble() now call. The test extracts those functions onto the host but did not pick up the helper, so the generated file stopped compiling.

This is a test-only change. The extractor's function matcher now accepts a u64 return type and extracts avd_av1_ref_ts() as well, and the host prelude gains u64 and U64_MAX. Driver code is untouched.

Tests on 65a2821 (aurora-wip, files unchanged at d24c57f), on the buildbox:

  • avd-av1-tail-tests.py: 1804 production controls PASS.
  • All six mutations (round-up, cpu-unaligned, seg-cpu-unaligned, seg-any-size, ref-index-upper, frame-width-unchecked) are still caught (rc 250).
  • tools/asahi/run-host-tests.py --jobs 8: 158/158 passed.

🤖 Generated with Claude Code

avd-av1-tail-tests.py builds avd_av1_set_prob() and friends from
avd-av1.c on the host. Since "media: apple: avd: bound AV1 reference
indices before using them", those functions call avd_av1_ref_ts(), a
u64 helper the extractor did not pick up, so the generated file stopped
compiling and run-host-tests went from 158/158 to 148/158.

Extract avd_av1_ref_ts() too (the function matcher now accepts a u64
return type) and give the host prelude u64 and U64_MAX. The production
controls pass again and all six mutations are still caught.

Assisted-by: LLM
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