forge
Explore
Log in

Don't you dare go Hollow

R11 report -- films are single-tile, tools-on multi-tile gates, one open defect

Browse files at this commit

60a3b420b60f2a4d9f54c7c310bba16eac386b24Ahmet Kaan GümüşParent: 9c8c214
  • docs
    • r11 report -- films are single-tile, tools-on multi-tile gates, one open defect
Show full message
docs(tiles): r11 report -- films are single-tile, tools-on multi-tile gates, one open defect
lanes/tiles-r11.report.mdadded+104 -0
@@ -0,0 +1,104 @@
1+# lane-tiles r11 — multi-tile gates with the tools ON; the films are single-tile
2+
3+## Charter premises, re-measured first (both stale)
4+1. **"all 45 real-aomenc gates are single-tile"** — false at main 9c35ecc. This lane
5+ already ran 10 rounds, all merged; `crates/ec-av1/src/stream.rs` carries 9 multi-tile
6+ gates (2/4 tile columns, 2/4 tile rows, an inter one, several tile-group OBUs,
7+ non-uniform spacing). The branch was already identical to main at start
8+ (`git log main..HEAD` empty).
9+2. **"round 1"** — this is r11.
10+
11+What was genuinely missing: every one of those 9 gates turns the coding tools OFF
12+(`--enable-rect-partitions=0 --enable-ab-partitions=0 --enable-cdef=0
13+--enable-restoration=0`, some `--loopfilter-control=0`, `--min/--max-partition-size=32`).
14+That is the [[tool-disabled-in-every-gate]] shape: a tile-edge defect inside any of those
15+tools was invisible to all nine.
16+
17+## HIS FILMS' REAL TILING (the charter's decision input)
18+Both films are **one tile**: `cols=1 rows=1 uniform_spacing=1 context_update_tile_id=0`,
19+constant over 181 parsed frame headers each. Cross-checked with a foreign parser
20+(ffmpeg `trace_headers` bsf): `tile_cols_log2 = 0`, `tile_rows_log2 = 0`,
21+`uniform_tile_spacing_flag = 1` on every frame. **Multi-tile is not on the critical path
22+for his library**; it stays a conformance obligation, not a film blocker.
23+
24+EVIDENCE: /tmp/.../scratchpad/reelcB.obu, reelbB.obu (120 frames each, `-ss 300 -c:v copy -f obu`) | `cargo run -p ec-av1 --example decode_probe -- <obu>` + `ffmpeg -v trace -bsf:v trace_headers` | ours: 181 headers, one distinct tiling (1x1); ffmpeg: tile_cols_log2=0 tile_rows_log2=0 on every frame; ReelC 1920x792, ReelB 3840x1608
25+
26+## New gate family (`crates/ec-av1/src/stream.rs`, `run_multi_tile_gate` + 4 arms)
27+256x128 (four 64x64 SBs wide, two tall), through `decode_stream` — the same entry point a
28+caller decoding a file uses, not the tile function the older gates call directly.
29+Recipe: `--enable-rect-partitions=1 --enable-ab-partitions=1 --enable-cdef=1
30+--enable-restoration=1`, deblocking left at its default so it filters across tile
31+boundaries, `--sb-size=64`, `--threads=1 --row-mt=0`, 6 seeds.
32+Hard asserts: parsed `tile_info.cols*rows == expected` on every non-`show_existing_frame`
33+header, and `tile_hits` delta `>= tiles * frames` (a header claiming 4 tiles cannot pass on
34+one decoded tile).
35+
36+| arm | grid | depth | frames | result |
37+|---|---|---|---|---|
38+| `a_real_aomenc_multi_tile_intra_stream_decodes_pixel_exact` | 2x2 | 8 | 1 | 5/6 exact, 1 named refusal |
39+| `a_real_aomenc_multi_tile_intra_10bit_stream_decodes_pixel_exact` | 4 cols | 10 | 1 | 5/6 exact, 1 named refusal |
40+| `a_real_aomenc_multi_tile_inter_10bit_stream_decodes_pixel_exact` | 4 cols | 10 | 16 | 3/6 exact, 3 named refusals |
41+| `a_real_aomenc_multi_tile_inter_stream_decodes_pixel_exact` | 2x2 | 8 | 16 | **`#[ignore]`d — open defect, below** |
42+
43+The two inter arms additionally pass `--max-partition-size=32 --enable-tx-size-search=0`:
44+without them every attempt refuses on two *pre-existing, non-tile* limits (the inter path
45+only recurses a superblock as SPLIT; it reads no `tx_depth` under `TxMode::Select`), so the
46+gate would compare no tile edge at all. Stated here rather than silently folded in.
47+
48+EVIDENCE: cargo test output | `EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib multi_tile -- --nocapture --test-threads=1` | 3 arms pass with tools on, 4th ignored
49+
50+## OPEN DEFECT (fix-now was not reached; deferred)
51+Seed 42, 2 tile rows: one 32x32 luma block at **x[224..255] y[32..63]** (tile row 0, frame
52+right edge) mismatches ffmpeg from **frame 4**, propagating through inter prediction to
53+12 of 16 frames. Localisation and ablations:
54+- bbox with deblocking on: x[221..255] y[30..69] — crosses the tile row boundary (y=64), so
55+ deblock only *spreads* it; with `--loopfilter-control=0` it collapses to the single 32x32
56+ block above.
57+- NOT removed by `--enable-restoration=0`, `--enable-cdef=0`, `--loopfilter-control=0`.
58+- Reproduces with 2 tile rows *and* with the 2x2 grid; seeds 47 and 48 decode 16/16 exact
59+ with two tile rows, so it is content-dependent, not a systematic tile-row defect.
60+- **Tile attribution is UNPROVEN**: the same-content single-tile control re-encodes to
61+ different partitions and refuses ("an inter SB-level partition type other than SPLIT"), so
62+ no one-tile comparison of this content exists ([[gate-recipe-confound]]). Calling it a
63+ tile-edge defect would be a guess.
64+Reproducer: `EC_AV1_GATE_DUMP=/tmp/mt.obu cargo test -p ec-av1 --lib a_real_aomenc_multi_tile_inter_stream -- --ignored`.
65+Disposition: **deferred(a decodable single-tile control of the same content — unblocked by
66+either the inter SB-level non-SPLIT partition capability or an aomenc recipe that keeps
67+partitions identical across tile settings)**.
68+
69+EVIDENCE: /tmp/.../scratchpad/{c11,c01,norest,nocdef,nolf}.obu + cmp.py bboxes | encode seeds 42..48 x tile-rows 0/1 x {restoration,cdef,deblock} off, decode via decode_probe, per-pixel diff vs `ffmpeg -f rawvideo` | seed42 rows=1: 12/16 frames mismatch, nolf bbox x[224..255] y[32..63]; seed47 rows=1 and seed48 rows=0/1: 0/16 mismatch
70+
71+## Neighbour-map sweep (COMMON's NEIGHBOUR MAPS paragraph)
72+`grep -n "> 0" `-swept the per-mi availability guards: `decode.rs` uses
73+`tile_row0_mi`/`tile_col0_mi` (fields at decode.rs:2420-2421, reset in
74+`Neighbours::start_tile`, called per tile at decode.rs:5549 and 10512) and `PlaneBuf`'s
75+reach clamps use `tile_x0/tile_y0`; no `> 0` availability guard remained on a per-mi side
76+band. Nothing to fix — recorded so the next lane does not re-sweep it.
77+
78+## gate_coverage (charter item 3)
79+- Tiling **cannot** join the derivation and needs no entry: the check keys on
80+ `--enable-<tool>=0/1`, and a `--tile-columns=` presence check would read `=0` (one tile)
81+ as coverage. Noted in `gate_coverage.rs` with the gates that do spell it.
82+- Deleted 5 stale `NEVER_EXERCISED_10BIT` entries. Two of them
83+ (`enable-global-motion`, `enable-dist-wtd-comp`) were closed by lane-cwarp's 10-bit
84+ compound-warp gate without updating this list, **so `never_exercised_10bit_matches_the_gate_recipes`
85+ was already failing at main 9c35ecc** — a pre-existing red, fixed here. The other three
86+ (`enable-ab-partitions`, `enable-rect-partitions`, `enable-restoration`) are closed by the
87+ new 10-bit arms.
88+- Also fixed the same body-split shape in my own helper: `gate_coverage` splits gate bodies
89+ on `\n #[`, so a bare helper `fn` is glued onto the preceding gate's recipe.
90+ `run_multi_tile_gate` carries `#[track_caller]` so it owns its body.
91+
92+## Test totals
93+`EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib -- --test-threads=2`:
94+**282 passed, 0 failed, 26 ignored** (1211 s). `cargo check -p ec-av1 --tests`: clean.
95+(A first run at default test-threads was SIGTERMed by `scripts/memguard-runner.sh` under
96+10 concurrent lanes; `--test-threads=2` is the working setting, not a result.)
97+
98+## Files changed
99+- `crates/ec-av1/src/stream.rs` — `run_multi_tile_gate` + 4 arms.
100+- `crates/ec-av1/src/gate_coverage.rs` — 5 stale 10-bit entries deleted, tiling note.
101+- `crates/ec-av1/examples/decode_probe.rs` — prints every frame header's tiling.
102+
103+## Commit
104+- 2e73186 on `lane-tiles`. Never pushed, never merged, main untouched.