From 71319e83bc6c2e4b77450a757b70fd0568949f9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Thu, 3 Sep 2026 04:49:22 +0300 Subject: [PATCH] test(av1): the last synthetic multi-tile residue is gone -- un-ignore the two-tile-column mv-stack gate and make the straddling gate's multi-tile twins non-vacuous Re-measured lane-tile2 r3's pinned 192x68 cq35 10-bit --tile-columns=1 stream on the merged tip: our decoder and the oracle aomdec now agree byte for byte over all 5 frames (195840 B, was 26 luma pixels differing on frame 3). The fixes that landed since (motion-field tile clamp, per-tile txfm/mode band resets, the 8x8 COMPOUND interp-filter read) already cover it, so nothing is fixed here -- the round converts the result into coverage: * a_real_aomenc_compound_mv_stack_across_two_tile_columns_decodes_pixel_exact loses its #[ignore] (it passes), with the doc comment rewritten from "known open defect" to the re-measurement. * edge32_gate counts compared MULTI-TILE attempts separately and hard-asserts it, class counter-from-refused-stream: the aggregate compared > 0 was carried by the single-tile arms, so the --tile-columns=1 twins were free to refuse everything and keep the gate green. * that gate's refusal census was stale -- all 64 attempts now compare with zero named refusals (was: all 32 multi-tile attempts refused by name). Suite: 431 passed; 0 failed; 37 ignored. --- crates/ec-av1/src/stream.rs | 51 +++++++++++++++------------ lanes/t900-r15.report.md | 70 +++++++++++++++++++++++++++++++++++++ 2 files changed, 99 insertions(+), 22 deletions(-) create mode 100644 lanes/t900-r15.report.md diff --git a/crates/ec-av1/src/stream.rs b/crates/ec-av1/src/stream.rs index 38fbd4ae..3fbc8cae 100644 --- a/crates/ec-av1/src/stream.rs +++ b/crates/ec-av1/src/stream.rs @@ -19742,16 +19742,14 @@ mod tests { ); } - /// KNOWN OPEN DEFECT, found by lane-mvtwin r1 and NOT caused by it: a - /// real aomenc stream 128 px wide with `--tile-columns=1` (two 64-px tile - /// columns) mis-decodes frame 1's luma against ffmpeg, at seed 200 with - /// this exact recipe. ABLATION-PROVEN pre-existing: the same arm fails - /// identically with r1's tile-origin reach clamp - /// (`MiGrid::tile_origin`) forced back to `(0, 0)`, so the cause is - /// somewhere else in the multi-tile path, not in `mvstack`. Kept as the - /// exact reproducer for the lane that owns tiles -- it is `#[ignore]`d - /// rather than deleted so the repro command survives: - /// `cargo test -p ec-av1 --lib across_two_tile_columns -- --ignored --nocapture`. + /// Was a KNOWN OPEN DEFECT (found by lane-mvtwin r1, `#[ignore]`d for it): + /// a real aomenc stream 128 px wide with `--tile-columns=1` (two 64-px + /// tile columns) mis-decoded frame 1's luma against ffmpeg at seed 200 + /// with this exact recipe. lane-t900 r15 RE-MEASURED it on the merged tip + /// (after the motion-field tile clamp, the per-tile txfm/mode band resets + /// and the 8x8-compound interp-filter read landed): the arm decodes + /// pixel-exact, so the `#[ignore]` is removed and the multi-tile mv-stack + /// coverage is live. /// /// It is also the ONLY arm that reaches r1 defect 3 (the col reach is /// clamped to `tile_col0`, not the frame edge): the counter @@ -19759,7 +19757,6 @@ mod tests { /// itself is proven deterministically by /// `mvstack::tests::the_row_reach_is_clamped_to_the_tile_origin_not_the_frame_edge`. #[test] - #[ignore = "known pre-existing multi-tile-column decode defect, see doc comment"] fn a_real_aomenc_compound_mv_stack_across_two_tile_columns_decodes_pixel_exact() { let name = "a_real_aomenc_compound_mv_stack_across_two_tile_columns_decodes_pixel_exact"; let before = crate::mvstack::tile_reach_clips(); @@ -25033,17 +25030,13 @@ mod tests { /// Arms: 192x68 and 68x192 (a 4-px straddling band on one axis), 5 frames, /// 8-bit and 10-bit, plus a `--tile-columns=1` twin of each (COMMON's /// neighbour-map rule -- the skip band CDEF reads is a per-mi side band). - /// MEASURED 2026-09-02: all 32 multi-tile attempts refuse BY NAME today, - /// so that half of the gate compares nothing yet (class - /// `counter-from-refused-stream`); the census is 10x "an inter SB-level AB - /// partition", 6x "a non-skip rectangular (HORZ/VERT/HORZ_B) strip needs - /// rectangular residual coding", 6x "an 8x8 intra leaf in an inter frame - /// whose tx_depth splits it into 4x4 transform units", 5x "an inter - /// partition below 8x8", 3x "an inter 16x16-level AB or 1:4 partition", - /// 1x "a split intra strip whose transform unit is 32x64", 1x "an - /// intra-coded 1:4 (or other non-2:1) rect strip on the inter block path". - /// The arms stay so the coverage appears the day those lift; every assert - /// below is carried by the single-tile arms. + /// RE-MEASURED lane-t900 r15 on the merged tip: all 64 attempts (8 arms x + /// 8 cq levels, single- and multi-tile alike) decode pixel-exact with ZERO + /// named refusals -- on 2026-09-02 all 32 multi-tile attempts still refused + /// by name, so that half compared nothing (class + /// `counter-from-refused-stream`). `compared_multi_tile` is asserted below + /// so the multi-tile twins can never silently go back to comparing + /// nothing. /// Hard-asserts `decode::cdef_straddle_units()` grew: a FILTERED 8x8 CDEF /// unit whose extent crosses the crop edge is the only shape for which /// clamping and padding differ, so a zero delta would make these arms @@ -25128,6 +25121,11 @@ mod tests { let cqs: [u32; 8] = [35, 40, 45, 50, 55, 57, 59, 61]; let mut totals = [0usize; 8]; let mut compared = 0usize; + // lane-t900 r15 (class `counter-from-refused-stream`): the aggregate + // `compared` counter is carried by the single-tile arms alone, so the + // `--tile-columns=1` twins were free to refuse every attempt and keep + // the gate green. Counted separately and asserted below. + let mut compared_multi_tile = 0usize; let mut refusals: Vec = Vec::new(); let straddle = name == "a_frame_edge_straddling_band_decodes_pixel_exact"; let mut straddle_units = 0usize; @@ -25305,6 +25303,9 @@ mod tests { } } compared += 1; + if tile_cols > 0 { + compared_multi_tile += 1; + } straddle_units += crate::decode::cdef_straddle_units() - straddle_before; for i in 0..8 { totals[i] += delta[i]; @@ -25316,6 +25317,12 @@ mod tests { "{NAME}: every attempt hit a named refusal:\n{}", refusals.join("\n") ); + assert!( + !straddle || compared_multi_tile > 0, + "{NAME}: every `--tile-columns=1` attempt hit a named refusal -- the \ + multi-tile twins compared nothing:\n{}", + refusals.join("\n") + ); assert!( !straddle || straddle_units > 0, "{NAME}: no FILTERED 8x8 CDEF unit crossed the cropped frame edge over \ diff --git a/lanes/t900-r15.report.md b/lanes/t900-r15.report.md new file mode 100644 index 00000000..d07695ce --- /dev/null +++ b/lanes/t900-r15.report.md @@ -0,0 +1,70 @@ +# lane-t900 r15 report — the last synthetic residue is GONE + +## Verdict +The lane-tile2 r3 residue (192x68 cq35 10-bit `--tile-columns=1`, frame 3 luma +26 px +-1 at row 61 col 185) NO LONGER REPRODUCES on the merged tip. Nothing was +fixed this round: the fixes that landed since (motion-field tile clamp, per-tile +txfm/mode band resets, the 8x8 COMPOUND interp-filter read, mv clamp window) +already cover it. This round converts that into standing coverage. + +## Re-measurement (the charter's first step) +Regenerated the pinned stream with `~/.cache/tile2-tmp/strad10.sh` +(md5 `a4399a4d5d1dc2e225f612a78a4a016a`, unchanged), decoded with the oracle +aomdec and with `decode_probe` (`EC_PROBE_OUT16`), both under +`systemd-run --user --scope -q -p MemoryMax=6G`: + +EVIDENCE: ~/.cache/t900-tmp/{o10.y,a10.y} | aomdec --rawvideo vs decode_probe EC_PROBE_OUT16 on strad10.obu (5 frames, yuv420p10le) | `cmp` IDENTICAL, 195840 B both (was 26 luma px differing on frame 3) + +## Changes (crates/ec-av1/src/stream.rs only) +- `a_real_aomenc_compound_mv_stack_across_two_tile_columns_decodes_pixel_exact` + (:19762): `#[ignore = "known pre-existing multi-tile-column decode defect"]` + REMOVED — it passes on the merged tip; doc comment rewritten to record the + re-measurement instead of the open defect. +- `edge32_gate` (:25132, :25311, :25325): new `compared_multi_tile` counter, + hard-asserted `> 0` for the straddling gate. Class + `counter-from-refused-stream`: the aggregate `compared > 0` was carried by the + single-tile arms alone, so the `--tile-columns=1` twins could refuse every + attempt and keep the gate green. +- `a_frame_edge_straddling_band_decodes_pixel_exact` doc (:25036): the "all 32 + multi-tile attempts refuse BY NAME" census was STALE — replaced with the + measured 64/64 compared, 0 refusals. + +## Gates +`cargo test -p ec-av1 --lib -- --include-ignored a_frame_edge_straddling_band_decodes_pixel_exact across_two_tile_columns two_tile_inter_sequence` +EVIDENCE: ~/.cache/t900-gates-r15.log | 3 tile gates incl. the previously-#[ignore]d multi-tile mv-stack one | `test result: ok. 3 passed; 0 failed; 0 ignored; 465 filtered out; finished in 24.08s` + +`cargo test -p ec-av1 --lib -- --nocapture a_frame_edge_straddling_band_decodes_pixel_exact` (with the new assert) +EVIDENCE: ~/.cache/t900-strad-r15.log | 8 arms x 8 cq, single- and multi-tile | `64 pixel-exact attempts, ... 1560 straddling CDEF units, 0 named refusals`; `test result: ok. 1 passed; 0 failed` + +## Suite +`cargo test -p ec-av1 --lib` as unit `t900-suite-r15-1788399226`, log `$HOME/.cache/t900-suite-r15.log`: +`test result: ok. 431 passed; 0 failed; 37 ignored; 0 measured; 0 filtered out; finished in 828.22s` +(37 ignored, one fewer than before: the multi-tile mv-stack gate is live now.) + +## Same-shape sweep: every per-mi side band vs the tile rule +Guard = availability read through `tile_row0_mi`/`tile_col0_mi`; reset = cleared +over the tile's own column span in `start_tile` / per SB row in `start_row`. + +| band | guard | reset | +|---|---|---| +| `above`/`left`, `above_side_mi`/`left_side_mi` | yes | start_tile + start_row | +| `above_mode`/`above_side` (SUB grid) | yes (:5960) | start_tile | +| `above_skip`, `above_skip_mode`, `above_inter`, `above_ref`, `above_ref1`, `above_comp_group_idx`, `above_compound_idx`, `above_filter` | yes (:5350) | start_tile + start_row | +| `above_txfm`/`left_txfm` | yes (:7013, :13911) | start_tile + start_row | +| `sub8_mode_col/row`, `uv_mode_col/row` | yes (:5762, :5769) | start_tile + start_row | +| `uv_mode_grid` (mi-exact, lane-t900 r12) | yes (:5852-5882) | mi-exact per-cell writes; frame-scoped by construction | +| `above_palette_*`, `left_palette_*` | yes (:5030, :5041) | left: start_row; above: NOT in start_tile | +| `above_uv_mode` | yes (:5852-5871) | NOT in start_tile (documented at :2649) | +| `skip_grid`, `skip_written`, `blk_org_grid`, `tx_grid`, `tx_h_grid`, `uv_tx_grid`, `uv_tx_h_grid`, `ref_grid`, `delta_lf_grid` | n/a — post-decode filter data, deliberately frame-wide (AV1 loop-filters/CDEFs across tile edges) | per frame | + +The two "NOT in start_tile" rows are safe, not fixed: an `above[c]` cell is only +ever written by a block in the SAME tile column, so a stale value is reachable +only at the tile's first mi row, which the `mi_r > tile_row0_mi` guard blocks — +and `uv_mode_grid_override_hits()` (asserted 0 by the uv_mode gate, and 0 in +this round's decode of the pinned stream) is the standing counter for exactly +that read. Disposition: accepted. + +## Residue +- 4K film census (r14's open item) NOT advanced this round — the charter scoped + r15 to the synthetic residue. deferred: 4K/film wall census — out of this + round's charter — a lane charter naming the film cut.