From ddd8c16605a667caccfbcc6d40845d4547c22dbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Thu, 27 Aug 2026 18:47:44 +0300 Subject: [PATCH] diag(av1): report worst pixel delta in the pinned-mismatch scratch probe Re-measured the cdf-forwarding gate's flake on HEAD (4/30, ~13%, matches the prior ~17% sample -- not stale). Pinned a failing stream and used scratch_isolate_pinned_mismatch to triage it: frame 2 is small (+-1, MC-rounding shape); frame 3's much larger mismatch is downstream propagation through frame 3's own inter reference to frame 2's already-wrong pixels, not a second independent defect. Added worst-delta to the probe's report so this triage doesn't need a manual pass next time. Root cause not fixed this round -- see ledger for the numeric reproduction (a 16x16 chroma block, mv=(7,15) eighth-pel, subpel xfrac=15/yfrac=7) that lands outside the previously-fixed leaf8 4-tap case, still open. --- crates/ec-av1/src/stream.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/ec-av1/src/stream.rs b/crates/ec-av1/src/stream.rs index ec9afea8..7d495def 100644 --- a/crates/ec-av1/src/stream.rs +++ b/crates/ec-av1/src/stream.rs @@ -1529,17 +1529,19 @@ mod tests { ] { let mut first = None; let mut count = 0; + let mut worst = 0i32; for (i, (x, y)) in a.iter().zip(b.iter()).enumerate() { if x != y { count += 1; if first.is_none() { first = Some(i); } + worst = worst.max((*x as i32 - *y as i32).abs()); } } if let Some(i) = first { eprintln!( - "frame {f} plane {plane_name}: {count} mismatches, first at offset {i} (row {}, col {}) ours={} theirs={}", + "frame {f} plane {plane_name}: {count} mismatches (worst delta {worst}), first at offset {i} (row {}, col {}) ours={} theirs={}", i / w, i % w, a[i],