Lane-sub8x4 r2 handoff -- deblock tx-width root cause, sub-8x8 intra gate green, multi-tile defect disproved as this lane's
Browse files at this commitb57fa91e948b2e06d4f504389882f42ee4a0673fParent: d94fd8e- docs
- lane-sub8x4 r2 handoff -- deblock tx-width root cause, sub-8x8 intra gate green, multi-tile defect disproved as this lane's
1 changed file +101 -0
- lanes/sub8x4-r2.handoff.md +101 -0
lanes/sub8x4-r2.handoff.mdadded+101 -0
| @@ -0,0 +1,101 @@ | |||
| 1 | +# lane-sub8x4 r2 HANDOFF (tip = `2515eb1`, branch lane-sub8x4) | ||
| 2 | + | ||
| 3 | +Two commits on top of `94bda2f`: | ||
| 4 | + | ||
| 5 | +* `f0bd09d` fix: compound 8x8 leaf published transform width 8 to the deblock grid even | ||
| 6 | + when its var-tx split it into 4x4 units | ||
| 7 | +* `2515eb1` feat: both sub-8x8 intra refusals lifted behind the new gate | ||
| 8 | + | ||
| 9 | +## STEP A -- DONE, gate GREEN, both refusals LIFTED | ||
| 10 | + | ||
| 11 | +### The last defect (root cause, class `early-return-skips-tail`, 3rd instance in that arm) | ||
| 12 | + | ||
| 13 | +`decode_inter_block8`'s COMPOUND early return called | ||
| 14 | +`neighbours.fill_lf_grid(leaf_mi, 2, 8, ..)` with a LITERAL 8 where the fall-through | ||
| 15 | +single-ref tail writes `if split8 { 4 } else { 8 }` (decode.rs, ~line 24990 vs ~25980). | ||
| 16 | +libaom `get_transform_size` (av1_loopfilter.c:207) reads the per-TU `inter_tx_size` for a | ||
| 17 | +non-skip inter LUMA block, so a var-tx-split 8x8's interior edges at `x % 8 == 4` are real | ||
| 18 | +filter edges; ours never filtered them and widened the neighbouring x=64 edge from filter4 | ||
| 19 | +to filter8. | ||
| 20 | + | ||
| 21 | +Ladder that named it, on `~/.cache/sub8intra-tmp/g_8_63_128x128.obu`: | ||
| 22 | +* `EC_OBMC` trace ours vs instrumented aomdec: **404 = 404 lines, byte-identical** (OBMC | ||
| 23 | + neighbour lists are exact -- do not re-audit them). | ||
| 24 | +* `EC_AV1_PREFILT_DUMP` (ours, no `EC_AV1_DEBUG_SKIP_CDEF`) vs aomdec's: decode frames | ||
| 25 | + 0,1,2 **SAME**; only f3+ differ (propagation). | ||
| 26 | +* `EC_AV1_POSTDEBLOCK_DUMP` both sides: frame 2 differs, 12 luma px at rows 78..80 cols | ||
| 27 | + 58..63, max delta 3 -> the deblocker is the stage. | ||
| 28 | +* `EC_AV1_DEBLOCK_TRACE_V`: no `VEDGE x0=60` in frame 2 where frames 0/1/3 have one; | ||
| 29 | + `EC_TXGRID_TRACE` (new `EC_LFLEAF` line added this round in `fill_lf_grid_leaf_luma`) | ||
| 30 | + showed the 8x8 at mi(20,14) publishing `tx_px=8` with no leaf fill. | ||
| 31 | + | ||
| 32 | +Probe sweep `~/.cache/sub8intra-tmp/sweep3.sh` (12 streams): **10/12 -> 12/12 pixel-EXACT**. | ||
| 33 | + | ||
| 34 | +### The gate | ||
| 35 | + | ||
| 36 | +`a_real_aomenc_inter_sequence_with_intra_sub8x8_leaves_decodes_pixel_exact` | ||
| 37 | +(`crates/ec-av1/src/stream.rs`, end of the test module). | ||
| 38 | + | ||
| 39 | +* 12 arms: 8/10-bit x cq 48/55/63 x 128x128/192x128, recipe copied from sweep3.sh | ||
| 40 | + (`--min-partition-size=4 --max-partition-size=8 --enable-1to4-partitions=0 | ||
| 41 | + --enable-rect-partitions=1 --cpu-used=0 --sb-size=64 --lag-in-frames=0`), streams | ||
| 42 | + re-encoded BY the gate, first arm encoded twice and compared byte for byte. | ||
| 43 | +* 6 decode-order frames per arm, all three planes, vs `ffmpeg_decode_sequence` / | ||
| 44 | + `_10bit`. Continue-and-sweep: only `unsupported: ` is recorded and skipped; any other | ||
| 45 | + error or ANY pixel mismatch fails. | ||
| 46 | +* End-of-sweep asserts `exact_arms >= 12` and all five `sub8_intra_rect_hits` cells > 0. | ||
| 47 | +* **Result: 12/12 arms EXACT, counters `[8x4=362, 4x8=80, chroma_ref=156, mixed=153, | ||
| 48 | + split4x4=98]`, 7.42 s.** | ||
| 49 | +* `SUB8_INTRA_RECT_HITS` grew a 5th cell (split 4x4 leaves); `decode_probe` prints | ||
| 50 | + `split4x4=`. | ||
| 51 | + | ||
| 52 | +Lifted: `EC_SUB8INTRA_DECODE` (both sites) and the two refusal strings, removed from | ||
| 53 | +`refusal_inventory.rs` in the same commit. `gate_coverage.rs` needed no edit (this gate | ||
| 54 | +spells no tool flag that was previously never-on); `refusal_inventory` + all 12 | ||
| 55 | +`gate_coverage` tests pass. | ||
| 56 | + | ||
| 57 | +Siblings re-run (`-- sub8 obmc mv_stack 1to4 refusal_inventory gate_coverage`): | ||
| 58 | +**33 passed, 2 failed, 5 ignored**. The 2 failures are the pre-existing zero-COUNTER | ||
| 59 | +recipe defects this branch already carried (`..._16x16_level_1to4_partitions...` | ||
| 60 | +stream.rs:10994, `real_aomenc_1to4_streams_..._rect_vartx_leaves_fire` stream.rs:8876); | ||
| 61 | +neither is a pixel mismatch and neither moved this round. | ||
| 62 | + | ||
| 63 | +### NOT in the gate: the `--tile-columns=1` arm (measured, not assumed) | ||
| 64 | + | ||
| 65 | +The arm was written, run, and **failed** at decode-order frame 4 (12056 luma px). It then | ||
| 66 | +failed IDENTICALLY with `--min-partition-size=16 --max-partition-size=16` (frame 3, 13256 | ||
| 67 | +luma px) -- a stream with no sub-8x8 block of any kind -- so this is a PRE-EXISTING | ||
| 68 | +multi-tile defect, not this lane's bands. Streams pinned: | ||
| 69 | +`~/.cache/sub8x4-tmp/tiles.obu` (sub-8x8) and `~/.cache/sub8x4-tmp/t16.obu` (none); | ||
| 70 | +`diff.py` in the same dir prints per-frame/plane deltas. The gate carries the repro in a | ||
| 71 | +comment with the one line to restore. This is the single most valuable open item. | ||
| 72 | + | ||
| 73 | +## STEP B -- NOT DONE, its premise is STALE | ||
| 74 | + | ||
| 75 | +`~/.cache/intra16x4-tmp/g_8.obu` is NOT an intra-16x4 witness: re-measured this round with | ||
| 76 | +`EC_INTRA16X4_DECODE=1`, it reports `intra16x4_in_inter: 16x4=0 4x16=0 chroma_ref=0` and | ||
| 77 | +still mismatches at byte 53825. Its mismatch is another shape's defect (the ledger already | ||
| 78 | +records the same stream as never-exact on unmodified HEAD). There is no firing witness at | ||
| 79 | +all: the r3 49-row sweep found 0 EXACT rows and every row had `16x4=0`. Next step for B is | ||
| 80 | +therefore NOT the prediction/OBMC/deblock comparison in the charter -- it is finding a | ||
| 81 | +stream where the counter fires AND the rest of the frame is clean (r1's dead-end: every | ||
| 82 | +firing film frame also carries a sub-8x8 intra block -- which is now DECODABLE, so re-run | ||
| 83 | +`~/.cache/intra16x4-tmp/films.sh` and the reelb0-5x prefixes on this tip: that dead-end may | ||
| 84 | +have expired with this commit). | ||
| 85 | + | ||
| 86 | +## STEP C -- suite armed, not read | ||
| 87 | + | ||
| 88 | +Unit `sub8x4-suite-r2-1788363069.service`, log **`$HOME/.cache/sub8x4-suite.log`**. | ||
| 89 | +Check with a single `grep -E "^test result|FAILED" $HOME/.cache/sub8x4-suite.log`. | ||
| 90 | + | ||
| 91 | +## STEP D -- NOT RUN (turn cap). No film probe, no `EC_RECT64_SPLIT` measurement, no | ||
| 92 | +fixture pinned. Inputs are in place: `~/.cache/hg-0.obu`, `~/.cache/hg-300.obu`, | ||
| 93 | +`~/.cache/intra16x4-tmp/reelb0-{50,52,55}.obu`. | ||
| 94 | + | ||
| 95 | +## Next step, in order | ||
| 96 | + | ||
| 97 | +1. Read the suite log; if a gate outside this lane's files is red, bisect against `94bda2f`. | ||
| 98 | +2. Re-run the film/reelb0 probes on this tip (STEP D) -- the sub-8x8 intra lift removes one of | ||
| 99 | + the two walls the r1 film sweep hit, so the refusal STRING each cut stops at has moved. | ||
| 100 | +3. The multi-tile defect above (own lane; it is not sub-8x8 specific and it blocks the | ||
| 101 | + neighbour-map arm COMMON asks every lane for). | ||