forge
Explore
Log in

Don't you dare go Hollow

Merge branch 'lane-t900' (4dc075f9): the multi-tile compound mv-stack gate un-ignored (residue gone on the merged tip); straddling gate asserts a per-arm-class compared counter

Browse files at this commit

f5d348d9406e4eca44c229874b9a640ba418944fAhmet Kaan GümüşParent: 11648e071319e8
crates/ec-av1/src/stream.rsmodified+29 -22
@@ -19742,16 +19742,14 @@ mod tests {
1974219742 );
1974319743 }
1974419744
19745- /// KNOWN OPEN DEFECT, found by lane-mvtwin r1 and NOT caused by it: a
19746- /// real aomenc stream 128 px wide with `--tile-columns=1` (two 64-px tile
19747- /// columns) mis-decodes frame 1's luma against ffmpeg, at seed 200 with
19748- /// this exact recipe. ABLATION-PROVEN pre-existing: the same arm fails
19749- /// identically with r1's tile-origin reach clamp
19750- /// (`MiGrid::tile_origin`) forced back to `(0, 0)`, so the cause is
19751- /// somewhere else in the multi-tile path, not in `mvstack`. Kept as the
19752- /// exact reproducer for the lane that owns tiles -- it is `#[ignore]`d
19753- /// rather than deleted so the repro command survives:
19754- /// `cargo test -p ec-av1 --lib across_two_tile_columns -- --ignored --nocapture`.
19745+ /// Was a KNOWN OPEN DEFECT (found by lane-mvtwin r1, `#[ignore]`d for it):
19746+ /// a real aomenc stream 128 px wide with `--tile-columns=1` (two 64-px
19747+ /// tile columns) mis-decoded frame 1's luma against ffmpeg at seed 200
19748+ /// with this exact recipe. lane-t900 r15 RE-MEASURED it on the merged tip
19749+ /// (after the motion-field tile clamp, the per-tile txfm/mode band resets
19750+ /// and the 8x8-compound interp-filter read landed): the arm decodes
19751+ /// pixel-exact, so the `#[ignore]` is removed and the multi-tile mv-stack
19752+ /// coverage is live.
1975519753 ///
1975619754 /// It is also the ONLY arm that reaches r1 defect 3 (the col reach is
1975719755 /// clamped to `tile_col0`, not the frame edge): the counter
@@ -19759,7 +19757,6 @@ mod tests {
1975919757 /// itself is proven deterministically by
1976019758 /// `mvstack::tests::the_row_reach_is_clamped_to_the_tile_origin_not_the_frame_edge`.
1976119759 #[test]
19762- #[ignore = "known pre-existing multi-tile-column decode defect, see doc comment"]
1976319760 fn a_real_aomenc_compound_mv_stack_across_two_tile_columns_decodes_pixel_exact() {
1976419761 let name = "a_real_aomenc_compound_mv_stack_across_two_tile_columns_decodes_pixel_exact";
1976519762 let before = crate::mvstack::tile_reach_clips();
@@ -25033,17 +25030,13 @@ mod tests {
2503325030 /// Arms: 192x68 and 68x192 (a 4-px straddling band on one axis), 5 frames,
2503425031 /// 8-bit and 10-bit, plus a `--tile-columns=1` twin of each (COMMON's
2503525032 /// neighbour-map rule -- the skip band CDEF reads is a per-mi side band).
25036- /// MEASURED 2026-09-02: all 32 multi-tile attempts refuse BY NAME today,
25037- /// so that half of the gate compares nothing yet (class
25038- /// `counter-from-refused-stream`); the census is 10x "an inter SB-level AB
25039- /// partition", 6x "a non-skip rectangular (HORZ/VERT/HORZ_B) strip needs
25040- /// rectangular residual coding", 6x "an 8x8 intra leaf in an inter frame
25041- /// whose tx_depth splits it into 4x4 transform units", 5x "an inter
25042- /// partition below 8x8", 3x "an inter 16x16-level AB or 1:4 partition",
25043- /// 1x "a split intra strip whose transform unit is 32x64", 1x "an
25044- /// intra-coded 1:4 (or other non-2:1) rect strip on the inter block path".
25045- /// The arms stay so the coverage appears the day those lift; every assert
25046- /// below is carried by the single-tile arms.
25033+ /// RE-MEASURED lane-t900 r15 on the merged tip: all 64 attempts (8 arms x
25034+ /// 8 cq levels, single- and multi-tile alike) decode pixel-exact with ZERO
25035+ /// named refusals -- on 2026-09-02 all 32 multi-tile attempts still refused
25036+ /// by name, so that half compared nothing (class
25037+ /// `counter-from-refused-stream`). `compared_multi_tile` is asserted below
25038+ /// so the multi-tile twins can never silently go back to comparing
25039+ /// nothing.
2504725040 /// Hard-asserts `decode::cdef_straddle_units()` grew: a FILTERED 8x8 CDEF
2504825041 /// unit whose extent crosses the crop edge is the only shape for which
2504925042 /// clamping and padding differ, so a zero delta would make these arms
@@ -25128,6 +25121,11 @@ mod tests {
2512825121 let cqs: [u32; 8] = [35, 40, 45, 50, 55, 57, 59, 61];
2512925122 let mut totals = [0usize; 8];
2513025123 let mut compared = 0usize;
25124+ // lane-t900 r15 (class `counter-from-refused-stream`): the aggregate
25125+ // `compared` counter is carried by the single-tile arms alone, so the
25126+ // `--tile-columns=1` twins were free to refuse every attempt and keep
25127+ // the gate green. Counted separately and asserted below.
25128+ let mut compared_multi_tile = 0usize;
2513125129 let mut refusals: Vec<String> = Vec::new();
2513225130 let straddle = name == "a_frame_edge_straddling_band_decodes_pixel_exact";
2513325131 let mut straddle_units = 0usize;
@@ -25305,6 +25303,9 @@ mod tests {
2530525303 }
2530625304 }
2530725305 compared += 1;
25306+ if tile_cols > 0 {
25307+ compared_multi_tile += 1;
25308+ }
2530825309 straddle_units += crate::decode::cdef_straddle_units() - straddle_before;
2530925310 for i in 0..8 {
2531025311 totals[i] += delta[i];
@@ -25316,6 +25317,12 @@ mod tests {
2531625317 "{NAME}: every attempt hit a named refusal:\n{}",
2531725318 refusals.join("\n")
2531825319 );
25320+ assert!(
25321+ !straddle || compared_multi_tile > 0,
25322+ "{NAME}: every `--tile-columns=1` attempt hit a named refusal -- the \
25323+ multi-tile twins compared nothing:\n{}",
25324+ refusals.join("\n")
25325+ );
2531925326 assert!(
2532025327 !straddle || straddle_units > 0,
2532125328 "{NAME}: no FILTERED 8x8 CDEF unit crossed the cropped frame edge over \
lanes/t900-r15.report.mdadded+70 -0
@@ -0,0 +1,70 @@
1+# lane-t900 r15 report — the last synthetic residue is GONE
2+
3+## Verdict
4+The lane-tile2 r3 residue (192x68 cq35 10-bit `--tile-columns=1`, frame 3 luma
5+26 px +-1 at row 61 col 185) NO LONGER REPRODUCES on the merged tip. Nothing was
6+fixed this round: the fixes that landed since (motion-field tile clamp, per-tile
7+txfm/mode band resets, the 8x8 COMPOUND interp-filter read, mv clamp window)
8+already cover it. This round converts that into standing coverage.
9+
10+## Re-measurement (the charter's first step)
11+Regenerated the pinned stream with `~/.cache/tile2-tmp/strad10.sh`
12+(md5 `a4399a4d5d1dc2e225f612a78a4a016a`, unchanged), decoded with the oracle
13+aomdec and with `decode_probe` (`EC_PROBE_OUT16`), both under
14+`systemd-run --user --scope -q -p MemoryMax=6G`:
15+
16+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)
17+
18+## Changes (crates/ec-av1/src/stream.rs only)
19+- `a_real_aomenc_compound_mv_stack_across_two_tile_columns_decodes_pixel_exact`
20+ (:19762): `#[ignore = "known pre-existing multi-tile-column decode defect"]`
21+ REMOVED — it passes on the merged tip; doc comment rewritten to record the
22+ re-measurement instead of the open defect.
23+- `edge32_gate` (:25132, :25311, :25325): new `compared_multi_tile` counter,
24+ hard-asserted `> 0` for the straddling gate. Class
25+ `counter-from-refused-stream`: the aggregate `compared > 0` was carried by the
26+ single-tile arms alone, so the `--tile-columns=1` twins could refuse every
27+ attempt and keep the gate green.
28+- `a_frame_edge_straddling_band_decodes_pixel_exact` doc (:25036): the "all 32
29+ multi-tile attempts refuse BY NAME" census was STALE — replaced with the
30+ measured 64/64 compared, 0 refusals.
31+
32+## Gates
33+`cargo test -p ec-av1 --lib -- --include-ignored a_frame_edge_straddling_band_decodes_pixel_exact across_two_tile_columns two_tile_inter_sequence`
34+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`
35+
36+`cargo test -p ec-av1 --lib -- --nocapture a_frame_edge_straddling_band_decodes_pixel_exact` (with the new assert)
37+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`
38+
39+## Suite
40+`cargo test -p ec-av1 --lib` as unit `t900-suite-r15-1788399226`, log `$HOME/.cache/t900-suite-r15.log`:
41+`test result: ok. 431 passed; 0 failed; 37 ignored; 0 measured; 0 filtered out; finished in 828.22s`
42+(37 ignored, one fewer than before: the multi-tile mv-stack gate is live now.)
43+
44+## Same-shape sweep: every per-mi side band vs the tile rule
45+Guard = availability read through `tile_row0_mi`/`tile_col0_mi`; reset = cleared
46+over the tile's own column span in `start_tile` / per SB row in `start_row`.
47+
48+| band | guard | reset |
49+|---|---|---|
50+| `above`/`left`, `above_side_mi`/`left_side_mi` | yes | start_tile + start_row |
51+| `above_mode`/`above_side` (SUB grid) | yes (:5960) | start_tile |
52+| `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 |
53+| `above_txfm`/`left_txfm` | yes (:7013, :13911) | start_tile + start_row |
54+| `sub8_mode_col/row`, `uv_mode_col/row` | yes (:5762, :5769) | start_tile + start_row |
55+| `uv_mode_grid` (mi-exact, lane-t900 r12) | yes (:5852-5882) | mi-exact per-cell writes; frame-scoped by construction |
56+| `above_palette_*`, `left_palette_*` | yes (:5030, :5041) | left: start_row; above: NOT in start_tile |
57+| `above_uv_mode` | yes (:5852-5871) | NOT in start_tile (documented at :2649) |
58+| `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 |
59+
60+The two "NOT in start_tile" rows are safe, not fixed: an `above[c]` cell is only
61+ever written by a block in the SAME tile column, so a stale value is reachable
62+only at the tile's first mi row, which the `mi_r > tile_row0_mi` guard blocks —
63+and `uv_mode_grid_override_hits()` (asserted 0 by the uv_mode gate, and 0 in
64+this round's decode of the pinned stream) is the standing counter for exactly
65+that read. Disposition: accepted.
66+
67+## Residue
68+- 4K film census (r14's open item) NOT advanced this round — the charter scoped
69+ r15 to the synthetic residue. deferred: 4K/film wall census — out of this
70+ round's charter — a lane charter naming the film cut.