From b615bdc0cbabe1664d7195656f824e039ecec35a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sun, 30 Aug 2026 19:31:12 +0300 Subject: [PATCH] diag(av1): sbpart r10's EC_SBPART_DUMP64 trace; scratch probe stripped r10 hit its cap without committing. Keeping the env-gated dump in decode_block_rect64 (reusable); removed its throwaway transform test, which was hand-verification scaffolding and had served its purpose. Its scratch fixtures moved to fixtures/sbpart/ (gitignored) so the repro survives. Its finding is in the r11 charter: the defect is NOT in decode_block_rect64. --- crates/ec-av1/src/decode.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index e43dbdef..e1c66b3f 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -3515,6 +3515,20 @@ fn decode_block_rect64( filter_intra, smooth_neighbor, ); + if std::env::var_os("EC_SBPART_DUMP64").is_some() { + let leftcol: Vec = if px > 0 { + (py..py + bh).map(|row| y.data[row * y.width + px - 1]).collect() + } else { + vec![] + }; + eprintln!( + "DUMP64 mi_r={mi_r} mi_c={mi_c} px={px} py={py} bw={bw} bh={bh} mode={mode} \ + skip={skip} eob_nonzero={} row0={:?} leftcol={:?}", + luma_corner.iter().any(|&v| v != 0), + &y.data[py * y.width + px..][..bw], + leftcol, + ); + } // CHROMA: a real, untruncated chroma_w x chroma_h transform -- no // corner crop needed (see doc comment). let ac = alpha.map(|_| cfl_ac_q3_rect(y, px, py, bw, bh));