R2 handoff -- PREFILT stage, txb_skip ctx root cause, suite unfinished
Browse files at this commit666059244357b182d75de5e77f25560c08289ed3Parent: a13955f- docs
- r2 handoff -- PREFILT stage, txb_skip ctx root cause, suite unfinished
1 changed file +55 -0
lanes/intrarect-r2.handoff.mdadded+55 -0
| @@ -0,0 +1,55 @@ | |||
| 1 | +# lane-intrarect r2 handoff — DEFECT CLOSED, one item left open | ||
| 2 | + | ||
| 3 | +State at `f2efbcd` (branch `lane-intrarect`, worktree clean). r1's pixel defect is FIXED and | ||
| 4 | +both gates are GREEN; this handoff exists only because the full-suite run had not finished | ||
| 5 | +when the turn cap hit. Full detail: `lanes/intrarect-r2.report.md`. | ||
| 6 | + | ||
| 7 | +## Which stage differed (charter STEP 1, answered) | ||
| 8 | + | ||
| 9 | +PREFILT (pre-deblock RECON), not deblock, not CDEF/LR. 8-bit seed 69 frame 5: first wrong | ||
| 10 | +luma sample (80,64), 512 luma samples = exactly the 16x32 strip at mi(16,20) + 120 V samples. | ||
| 11 | +Frames 0..4, 6, 7 byte-identical. So the loop filter, the lf grid and `record_inter_rect` | ||
| 12 | +were all EXONERATED and the charter's deblock branch is a dead end. | ||
| 13 | + | ||
| 14 | +## Root cause (found, fixed, committed) | ||
| 15 | + | ||
| 16 | +`decode_rect_split`'s rect-TU arm read `txb_skip` from `luma_skip_ctx_rect` even when the | ||
| 17 | +transform covers the whole block. libaom `get_txb_ctx` gives luma a flat ctx **0** when | ||
| 18 | +`plane_bsize == txsize_to_bsize[tx_size]`. Ours read ctx 5, aomdec ctx 0 -- same decoded | ||
| 19 | +value, different CDF, msac range diverging at the block's first coefficient symbol | ||
| 20 | +(ours 58117, aomdec 45075, identical ENTRY range 60236). Fix: `decode.rs:5009`, ctx 0 when | ||
| 21 | +`tx_w == bw && tx_h == bh`. After it, all 8 frames of the seed-69 stream are byte-identical. | ||
| 22 | + | ||
| 23 | +## Ruled out (do not re-investigate) | ||
| 24 | + | ||
| 25 | +- Deblock / lf grid / `record_inter_rect` / delta_lf: the mismatch is already in PREFILT. | ||
| 26 | +- Prediction and edge availability: the strip's DC prediction was correct (aomdec's own | ||
| 27 | + edges average 96.9 -> 97, and after the ctx fix the block is exact with no prediction change). | ||
| 28 | +- Mode info (skip / is_inter / y_mode size_group 2 / uv_mode cfl-allowed / tx depth): the | ||
| 29 | + coefficient read's ENTRY range matched aomdec exactly (60236), so every mode symbol before | ||
| 30 | + it was right. | ||
| 31 | +- Every other `luma_skip_ctx*` call site (`decode.rs:5054`, 7947, 8301, 8829, 9648, 14534, | ||
| 32 | + 15368) -- none can reach the unit == block case; the sweep is in the report. | ||
| 33 | +- 10-bit was NOT separately bisected: the 10-bit gate seed 78/84 now passes pixel-exact, | ||
| 34 | + so there is no 10-bit residue to measure. | ||
| 35 | + | ||
| 36 | +## Gates + suite | ||
| 37 | + | ||
| 38 | +`cargo test -p ec-av1 --lib intra_rect_strip` -> `2 passed; 0 failed` (12.20s), | ||
| 39 | +`$HOME/.cache/intrarect-gate-r2.log`, both depths, 45 attempts each, all pixel-compared. | ||
| 40 | +Negative control for r1's `reject_residual` move: 8 attempts in the same sweep still refuse | ||
| 41 | +"a non-skip rectangular (HORZ/VERT/HORZ_B) strip needs rectangular residual coding". | ||
| 42 | + | ||
| 43 | +FULL SUITE: `systemd-run --user --unit=intrarect-suite-r2` was still RUNNING at 249/366 tests | ||
| 44 | +with 0 failures printed when the cap hit -- log `$HOME/.cache/intrarect-suite-r2.log`. It is | ||
| 45 | +NOT claimed green. | ||
| 46 | + | ||
| 47 | +## Exact next step for r3 | ||
| 48 | + | ||
| 49 | +1. `grep -E "^test result|^failures:" -A 12 $HOME/.cache/intrarect-suite-r2.log` (re-run the | ||
| 50 | + unit if it was reaped). Expect `0 failed`; anything else is r3's work. | ||
| 51 | +2. The real open item is the MERGE, not a defect: this branch is **not rebased onto main**. | ||
| 52 | + main now carries lane-fiinter (square intra-in-inter reads `use_filter_intra`) and | ||
| 53 | + lane-rect1d; `decode_intra_rect_in_inter` reads no such symbol, so on the merged tree the | ||
| 54 | + rect arm needs the same read wired (this lane's gate spells `--enable-filter-intra=0`, so | ||
| 55 | + its own streams never carry it and the gate cannot catch a missing read). | ||