Lane-fi8 r1 report -- root cause, sweep, gate evidence
Browse files at this commitf9dae3305d3ddb581381f0d1734f829ed88a5308Parent: 5a2f5ef- docs
- lane-fi8 r1 report -- root cause, sweep, gate evidence
1 changed file +79 -0
- lanes/fi8-r1.report.md +79 -0
lanes/fi8-r1.report.mdadded+79 -0
| @@ -0,0 +1,79 @@ | ||
| 1 | +# lane-fi8 r1 -- filter intra on a sub-8 4x8/8x4 rect leaf | |
| 2 | + | |
| 3 | +Branch `lane-fi8` off main 8262b99, commit 2d5c425. | |
| 4 | + | |
| 5 | +## Root cause (two defects, one block shape) | |
| 6 | + | |
| 7 | +1. **Wrong CDF row, not a missing symbol.** `read_intra_mode_sub8` | |
| 8 | + (`crates/ec-av1/src/decode.rs`) is shared by `decode_leaf_split4`'s | |
| 9 | + BLOCK_4X4 leaves and `decode_leaf_rect8`'s 4x8/8x4 leaves, and read | |
| 10 | + `use_filter_intra` from `cdfs.filter_intra[0]` -- BLOCK_4X4's row -- | |
| 11 | + unconditionally. `av1_filter_intra_allowed_bsize` (both sides <= 32) allows | |
| 12 | + BLOCK_4X8/BLOCK_8X4, and libaom reads them with | |
| 13 | + `default_filter_intra_cdfs[BLOCK_4X8]`=6743 / `[BLOCK_8X4]`=5893, so the | |
| 14 | + symbol was READ (no `symbol-consumption-gap`) but out of the wrong interval: | |
| 15 | + the same value, a divergent range, a desync a block or two later (class | |
| 16 | + `wrong-alphabet-same-value` / `cdf-row-held-constant`). Fixed by adding | |
| 17 | + `cdf::FILTER_INTRA` rows 8/9 (values generated by | |
| 18 | + `scripts/extract-filter-intra-cdfs.py`), mapping them in | |
| 19 | + `filter_intra_size_class_rect`, and passing the leaf's own class in. | |
| 20 | +2. **Stale refusal.** `"filter intra on a HORZ/VERT strip (this decoder | |
| 21 | + predicts square-only)"` -- `predict_filter_intra` has taken a true `bw`x`bh` | |
| 22 | + since lane-rectsplit. `filter_intra` is now threaded into both whole-leaf | |
| 23 | + `reconstruct_rect` calls and, under `tx_depth=1`, into each 4x4 transform | |
| 24 | + unit's own `reconstruct` / `read_plane` (per-TU prediction off the previous | |
| 25 | + unit's reconstruction). Refusal removed from `refusal_inventory::REFUSALS`. | |
| 26 | + | |
| 27 | +## Same-class sweep (tx_type row under filter intra, the 1a89ed9 defect) | |
| 28 | + | |
| 29 | +`grep "cdfs.txb("`: the coded 16x8/8x16 (`decode_leaf_rect`) and 32x16/16x32 | |
| 30 | +strips still passed the block's raw `mode` (always DC_PRED under filter intra) | |
| 31 | +as the `intra_ext_tx_cdf` row. All three rect sites plus the new sub-8 one now | |
| 32 | +go through `fi_tx_row` (`fimode_to_intradir`), which `read_plane` shares | |
| 33 | +instead of its private const. 64x32/32x64/32x8 sites are past | |
| 34 | +`av1_filter_intra_allowed_bsize` and were left alone. | |
| 35 | + | |
| 36 | +## Gate | |
| 37 | + | |
| 38 | +`a_real_aomenc_stream_with_filter_intra_on_a_sub8_rect_leaf_decodes_pixel_exact` | |
| 39 | +(`crates/ec-av1/src/stream.rs`): the `sub8_rect_leaf` recipe with | |
| 40 | +`--enable-filter-intra=1` and `--enable-tx-size-search=1|0` as the FIRST | |
| 41 | +occurrence of each flag (aomenc keeps the first). Three arms (8-bit txs=1, | |
| 42 | +8-bit txs=0, 10-bit txs=1), 80 attempts each, and an attempt only counts when | |
| 43 | +the per-attempt `filter_intra_rect_sub8_hits` delta is nonzero AND all three | |
| 44 | +planes match ffmpeg. No SKIP path except the tool-absence one | |
| 45 | +(`EC_AV1_REQUIRE_AOMENC=1` was set for every run below). | |
| 46 | + | |
| 47 | +EVIDENCE: /home/user/.cache/fi8-suite.log | cargo test -p ec-av1 filter_intra | |
| 48 | +-- --nocapture (worktree edith_codecs-fi8, commit 2d5c425) | new gate | |
| 49 | +3 pixel-exact runs per arm with 5 / 5 / 4 filter-intra 4x8/8x4 leaves and | |
| 50 | +split_tx = 6 / 0 / 6; siblings green: | |
| 51 | +a_real_aomenc_stream_with_filter_intra_on_a_horz_vert_strip_decodes_pixel_exact | |
| 52 | +37 matches / filter_intra_rect_hits delta 9, | |
| 53 | +a_pinned_aomenc_16x8_strip_reads_its_use_filter_intra_flag ok, | |
| 54 | +filter_intra_classes_carry_their_own_libaom_default_row ok (4x8/8x4 now | |
| 55 | +claimed, not refused), intra::filter_intra_matches_the_libaom_predictor ok. | |
| 56 | + | |
| 57 | +EVIDENCE: /home/user/.cache/fi8-suite.log | systemd-run --user | |
| 58 | +--unit=fi8-suite cargo test -p ec-av1 -- --test-threads=4 | 322 passed, 0 | |
| 59 | +failed, 30 ignored (647 s). (Run on the identical tree, before a `cargo fmt` | |
| 60 | +that had to be reverted because main is not rustfmt-clean; re-run on 2d5c425 is | |
| 61 | +recorded at the end of this file.) | |
| 62 | + | |
| 63 | +EVIDENCE: hg-head.obu | release decode_probe (10-bit, his AV1 film head) | | |
| 64 | +refusal MOVED: was "filter intra on a HORZ/VERT strip (this decoder predicts | |
| 65 | +square-only)", now "a masked compound 64x64 inter block (compound_type is | |
| 66 | +inferred, not coded, at this size)". Still refused, so no ffmpeg byte compare | |
| 67 | +is owed yet. | |
| 68 | + | |
| 69 | +## Residue / dispositions | |
| 70 | + | |
| 71 | +- deferred: masked compound 64x64 inter block -- next refusal on hg-head.obu, | |
| 72 | + a different lane's ceiling -- unblocked by porting inferred compound_type at | |
| 73 | + 64x64. | |
| 74 | +- known ceiling: the gate's `split_tx > 0` assertion proves a depth-1 sub-8 | |
| 75 | + rect transform fired in the same pixel-exact frame, not that the FILTER-INTRA | |
| 76 | + leaf itself was the split one; a per-leaf (filter-intra AND depth-1) counter | |
| 77 | + would tighten it. Both depths are exercised across arms. | |
| 78 | + | |
| 79 | +EVIDENCE: /home/user/.cache/fi8-suite.log | systemd-run --user --unit=fi8-suite2 cargo test -p ec-av1 -- --test-threads=4, on committed 2d5c425 | 322 passed, 0 failed, 30 ignored (357.7 s). |