From 408ab8793a51b3c61a0f78f09d044159de88b0b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 2 Sep 2026 10:22:33 +0300 Subject: [PATCH] fix(av1): count the 8x8 inter leaf's fall-through CDEF skip-band write too lane-cdef r1 incremented INTER8_SKIP_BAND_HITS only in decode_inter_block8's COMPOUND early-return arm, so its gate's assert really read "a COMPOUND 8x8 leaf wrote the band". On the tree merged with main the 10-bit cq=12 arm's leaves come through the single-ref fall-through instead, which writes the band but did not count -- the gate failed on an instrumentation gap, not on pixels (cdef_skipped_units passed, and all five arms are pixel-exact once past it). --- crates/ec-av1/src/decode.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index dd59d7f3..2d0e879a 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -21780,6 +21780,12 @@ fn decode_inter_block8( // lane-cdef r1: the fall-through twin of the compound arm's skip-band // write above -- `skip` is one flag for the whole 8x8 leaf (read at // `decode.rs`'s `skip_ctx` site), `split8` only splits its transform. + // lane-intersub8 r5: ... and it counts too. r1 incremented the counter in + // the COMPOUND early-return arm only, so the gate's assert really read + // "a COMPOUND 8x8 leaf wrote the band"; once main's inter16ab/r14 routing + // landed, the 10-bit cq12 arm's leaves come through here instead and the + // gate failed on an instrumentation gap, with the band written either way. + INTER8_SKIP_BAND_HITS.with(|c| c.set(c.get() + 1)); neighbours.fill_skip_grid(leaf_mi, 2, skip); neighbours.fill_lf_grid( leaf_mi,