R3 handoff -- reduced-vs-full 8x8 intra tx_type set, gate green, suite in flight
Browse files at this commit82b6c95b70020906904e02b2991fda6c74297a1dParent: 564bd72- docs
- r3 handoff -- reduced-vs-full 8x8 intra tx_type set, gate green, suite in flight
1 changed file +54 -0
- lanes/uv8-r3.handoff.md +54 -0
lanes/uv8-r3.handoff.mdadded+54 -0
| @@ -0,0 +1,54 @@ | ||
| 1 | +# lane-uv8 r3 — HANDOFF (GREEN gate; suite still running at the turn cap) | |
| 2 | + | |
| 3 | +## ROOT CAUSE (fixed, committed) | |
| 4 | +`decode_inter_block8`'s INTRA arm passed a hardcoded `TxbSet::Luma8` to `read_plane` for the | |
| 5 | +8x8 leaf's LUMA transform. `TxbSet::Luma8` is the `reduced_tx_set == 1` alphabet | |
| 6 | +(`EXT_TX_SET_DTT4_IDTX`, FIVE types). libaom `av1_get_ext_tx_set_type` (`av1/common/blockd.h`) | |
| 7 | +returns `EXT_TX_SET_DTT4_IDTX_1DDCT` (SEVEN types, `TxbSet::Luma8Set1`) for `is_inter == 0`, | |
| 8 | +`tx_size_sqr == TX_8X8`, `use_reduced_set == 0` — and an INTRA leaf inside an INTER frame is | |
| 9 | +`is_inter == 0`. Same symbol value, different narrowing (class [[wrong-alphabet-same-value]]); | |
| 10 | +the msac range diverged at the leaf's first `tx_type` and desynced the rest of the tile, which | |
| 11 | +manufactured the 30/30 "named refusals" of r1/r2 (class [[refusal-from-own-desync]]). | |
| 12 | +FIX: `crates/ec-av1/src/decode.rs:22057` -> `txbset_for(8, reduced_tx_set)` (the parameter was | |
| 13 | +already in scope). Charter suspects (1) `fimode_to_intradir` and (2) `tx_depth` were BOTH already | |
| 14 | +correct: `fi_tx_row` is applied at every luma txb call site, `fimode_to_intradir[0] == DC_PRED` | |
| 15 | +equals this block's y_mode anyway, and `read_block_tx_size` returns depth 0 here. | |
| 16 | + | |
| 17 | +## GATE AFTER THE FIX — GREEN (unit uv8-gate-r3, log $HOME/.cache/uv8-gate-r3.log) | |
| 18 | +`cargo test -p ec-av1 --lib -- --test-threads=1 --nocapture non_dc_chroma_8x8_intra_leaf` | |
| 19 | +-> 3 passed / 0 failed, 5.53s. Every arm exact on ATTEMPT 0 with all three chroma classes | |
| 20 | +firing (directional / smooth-paeth / CfL): | |
| 21 | + 8-bit 1-tile seed42 cq12: 159 / 172 / 211 | |
| 22 | + 10-bit 1-tile seed42 cq12: 112 / 126 / 120 | |
| 23 | + 8-bit 2-tile seed42 cq12: 83 / 66 / 80 | |
| 24 | +buckets on each arm: counted-exact=1 uncounted-exact=0 named-refusals=0 (attempts 1). | |
| 25 | +All 8 frames of each stream pixel-compared vs ffmpeg (Y/U/V), no mismatch. | |
| 26 | +`stream.rs:5897` tightened: `counted` now requires ALL THREE classes on the same compared | |
| 27 | +attempt (was sum-nonzero) — this stricter predicate is what the green run above satisfies. | |
| 28 | + | |
| 29 | +## REFUSAL STATE | |
| 30 | +The lifted non-DC-uv_mode refusal STAYS LIFTED (gate green). Still refused by name and NOT part | |
| 31 | +of this lane: "an 8x8 intra leaf in an inter frame whose tx_depth splits it into 4x4 transform | |
| 32 | +units" (decode.rs ~21996) and "a nonzero angle delta on an 8x8 intra leaf in an inter frame". | |
| 33 | + | |
| 34 | +## SWEEP (class: hardcoded reduced-set TxbSet) | |
| 35 | +`grep -n 'TxbSet::Luma\(4\|8\|16\|32\),' crates/ec-av1/src/decode.rs` — after the fix there are | |
| 36 | +ZERO reduced-sensitive hardcodes outside `txbset_for`/`txbset_for_inter`; every remaining | |
| 37 | +`Luma16`/`Luma32` literal is alphabet-invariant to `reduced_tx_set`. The rect-strip and >=16 | |
| 38 | +square intra-in-inter arms already route through `txbset_for` (decode.rs 6053, 7167, 7777, | |
| 39 | +7857, 9594, 11075). | |
| 40 | + | |
| 41 | +## SUITE — RUNNING, NOT VERIFIED | |
| 42 | +Unit `uv8-gate-r3.service` (still active at the turn cap) is now in its suite phase: | |
| 43 | +log `$HOME/.cache/uv8-suite-r3.log`. At hand-off: 233 tests `ok`, 0 FAILED, 0 `failures:` lines | |
| 44 | +(of ~425). NO green suite claim. | |
| 45 | + | |
| 46 | +## EXACT NEXT STEP | |
| 47 | +1. `grep -E "^test result|FAILED|^failures:" $HOME/.cache/uv8-suite-r3.log` once the unit goes | |
| 48 | + inactive; expect N/0. If a gate reddens, it is a SIBLING of this alphabet fix — re-run it | |
| 49 | + before touching the fix. | |
| 50 | +2. Then the lane is mergeable at its tip. | |
| 51 | + | |
| 52 | +## EVIDENCE | |
| 53 | +EVIDENCE: ~/.cache/uv8-tmp/ref.tu + ours3.tu | instrumented aomdec EC_TRACE_COEFF vs our EC_TRACE_COEFF on ~/.cache/uv8-tmp/a0.obu, per-TU (all_zero,eob) msac RANGE ladder | before: first divergence at TU-line 3392 (ref eob rng=32776 vs ours 34568; the preceding tx_type read ref rng=33532 vs ours 35240 at plane=0 tx_size=1, the mi(2,34) filter-intra leaf of decode-order frame 2) — after: 13986/13986 identical over the whole stream, decode_probe rc=0, no refusal | |
| 54 | +EVIDENCE: $HOME/.cache/uv8-gate-r3.log | the three-arm gate command above | 3 passed / 0 failed, counted-exact=1 named-refusals=0 per arm, counts as listed |