From c28f3209974a363dfe8905ecc40dfb2433752012 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sat, 5 Sep 2026 04:07:11 +0300 Subject: [PATCH] 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.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index 1889bb50..e54cbc99 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -34560,6 +34560,10 @@ mod tests { width, fctx, ) .unwrap(); + // lane-wave1: a direct caller of the block decoder RECORDS its writes + // (the tile decoder is what replays them), so this gate replays its + // own before reading the plane back. + flush_recon(fctx, &mut y, &mut u, &mut v); let (px, py) = (c * SUB, r * SUB); let mut want_near = vec![0u16; side * side];