forge
Explore
Log in

Don't you dare go Hollow

The direct-call NEARMV gate replays its own recorded writes

Browse files at this commit

c28f3209974a363dfe8905ecc40dfb2433752012Ahmet Kaan GümüşParent: f7306dd
  • test
    • the direct-call NEARMV gate replays its own recorded writes
Show full message
test(av1): the direct-call NEARMV gate replays its own recorded writes

Left red by step (i) (ace5dcb9), which this lane inherited: the gate calls
the inter block decoder itself and reads the luma plane back, but a direct
caller records its writes now -- only the tile decoder replays them -- so
it compared an untouched plane against the reference prediction. It is
the one test in `ec-av1 --lib` in that shape (499 passed, this one
failed).
crates/ec-av1/src/decode.rsmodified+4 -0
@@ -34560,6 +34560,10 @@ mod tests {
34560 width, fctx,34560 width, fctx,
34561 )34561 )
34562 .unwrap();34562 .unwrap();
34563+ // lane-wave1: a direct caller of the block decoder RECORDS its writes
34564+ // (the tile decoder is what replays them), so this gate replays its
34565+ // own before reading the plane back.
34566+ flush_recon(fctx, &mut y, &mut u, &mut v);
34563 34567
34564 let (px, py) = (c * SUB, r * SUB);34568 let (px, py) = (c * SUB, r * SUB);
34565 let mut want_near = vec![0u16; side * side];34569 let mut want_near = vec![0u16; side * side];