forge
Explore
Log in

Don't you dare go Hollow

Count the 8x8 inter leaf's fall-through CDEF skip-band write too

Browse files at this commit

408ab8793a51b3c61a0f78f09d044159de88b0b3Ahmet Kaan GümüşParent: 2afc992
  • fix
    • count the 8x8 inter leaf's fall-through CDEF skip-band write too
Show full message
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.rsmodified+6 -0
@@ -21780,6 +21780,12 @@ fn decode_inter_block8(
2178021780 // lane-cdef r1: the fall-through twin of the compound arm's skip-band
2178121781 // write above -- `skip` is one flag for the whole 8x8 leaf (read at
2178221782 // `decode.rs`'s `skip_ctx` site), `split8` only splits its transform.
21783+ // lane-intersub8 r5: ... and it counts too. r1 incremented the counter in
21784+ // the COMPOUND early-return arm only, so the gate's assert really read
21785+ // "a COMPOUND 8x8 leaf wrote the band"; once main's inter16ab/r14 routing
21786+ // landed, the 10-bit cq12 arm's leaves come through here instead and the
21787+ // gate failed on an instrumentation gap, with the band written either way.
21788+ INTER8_SKIP_BAND_HITS.with(|c| c.set(c.get() + 1));
2178321789 neighbours.fill_skip_grid(leaf_mi, 2, skip);
2178421790 neighbours.fill_lf_grid(
2178521791 leaf_mi,