forge
Explore
Log in

Don't you dare go Hollow

R2 handoff -- merge state, firing-but-red 10-bit gate, pinned stream, next ladder step

Browse files at this commit

fd8e31a14b1581da8fad5c8aeb2be3775565ed7dAhmet Kaan GümüşParent: c30dbf2
  • docs
    • r2 handoff -- merge state, firing-but-red 10-bit gate, pinned stream, next ladder step
Show full message
docs(intrasplit): r2 handoff -- merge state, firing-but-red 10-bit gate, pinned stream, next ladder step
lanes/intrasplit-r2.handoff.mdadded+58 -0
@@ -0,0 +1,58 @@
1+# lane-intrasplit r2 HANDOFF (tip 6e883c9, branch lane-intrasplit)
2+
3+## Merge state (all committed on this branch)
4+main 48b35ab -> lane-sqdrift 7d498c0 -> lane-r14 b86eb38 -> lane-inter16ab 4811488 (tip
5+moved from the charter's af7de9f) -> lane-intra14 f4b5419 (was 8313c4a). cdf.rs byte-equal
6+to main. Conflict resolutions: stream.rs (three gates interleaved in ONE hunk — all three
7+kept), decode.rs (both thread-locals; sbrect10 is_cfl_allowed narrowing BEFORE intra14's
8+INTRA_IN_INTER_MODE skip/mode split in read_intra_mode_rect), refusal_inventory.rs (kept
9+only intra14's narrowed "an intra-coded 16x4/4x16 strip ..."), decode_probe.rs (both).
10+
11+## Fix applied this round
12+decode.rs `rect_inter_luma_set` + cdf_state.rs `TxbSet::LumaRect8x4Inter{,1}`: a SPLIT
13+16x4/4x16 inter strip resolves to an 8x4 leaf (`sub_tx_size_map[TX_16X4] == TX_8X4`,
14+oracle av1/common/common_data.h:180) and used to hit `unreachable!()`. Set = LumaRect4x8's
15+coefficient tables (Luma8 + 32-position eob_pt) with inter tx_type row TX_4X4
16+(`inter_tx_type_4` / `_set1`). `rect_inter_residual_supported` untouched — no refusal moved.
17+New diagnostic: `EC_SPLITSTRIP=1` prints mi_row/mi_col/bw/bh/depth at the counter bump.
18+
19+## Gate: RED, but FIRING for the first time
20+- 8-bit arm: 40/40 refusals (histogram in the r2 report), never fires.
21+- 10-bit arm: seed 74 / cq 12 / cpu-used 2 decodes all 8 frames, fires depth1=1, and
22+ MISMATCHES ffmpeg: frame 1 Y first diff (163, 58), 5203 samples; frames 2-7 ~24.5k.
23+- Stream pinned: `<scratchpad>/intrasplit/s74.obu`, md5 50ea2b42423f1c8b4eed9fa48c4775a6
24+ (192x128 yuv420p10le mandelbrot start_scale=3.08; full aomenc recipe = the gate's).
25+- The ONLY split strip in the stream is decode-order frame 1, mi(8,0), 32x16, depth 1
26+ (pixels x0..31 y32..47) and ITS OWN footprint is pixel-clean: raster first diff is the
27+ LAST block of the same 32-px block row. So the divergence is downstream of the strip.
28+- NOT yet done: the msac RANGE ladder. Our tags: EC_MODE / EC_MODE_VAL / EC_STACK
29+ (EC_TRACE_MODE=1, 338 lines). aomdec: EC_IMODE* (key frame) + EC_MODE* / EC_MODE_MV /
30+ EC_STACK (219 lines) — emitters do not line up 1:1; ledger says our EC_MODE_VAL rng is
31+ printed at libaom's EC_MODE_MV point, so compare VALUES on the mode ladder and use
32+ EC_TRACE_COEFF ranges for the coefficient ladder.
33+- Do NOT use `decode_probe -o` for 10-bit triage: it writes 8-bit samples.
34+
35+## Suite
36+385 passed / 3 failed / 35 ignored, 1082 s ($HOME/.cache/intrasplit-suite-r2.log).
37+2 = this lane's own arms. 1 = MERGE CROSS-PRODUCT, not this lane's code:
38+`a_real_aomenc_inter_sequence_with_16x16_level_1to4_partitions_decodes_pixel_exact`
39+(stream.rs:9167, frame 4 luma, attempt 1, 8-bit, arms [0,4,2,2]) — green on inter16ab's own
40+tip, red once r14 b86eb38 is in the same tree.
41+
42+## Film probes (merged tree, EC_AV1_FINAL_DUMP=1, 0 frames dumped both)
43+- 2160p10 HDR segment -ss 1200: now stops at "a split intra strip whose transform unit is
44+ 32x64" (was the non-skip rect-strip residual refusal at r1).
45+- 1080p10 segment -ss 1800: now stops at "a COMPOUND_WEDGE mask on a rectangular inter
46+ block" (was the intra 1:4 rect-strip refusal, lifted by lane-intra14).
47+
48+## Exact next step (r3)
49+1. Ladder s74.obu frame 1 from the strip at mi(8,0) forward: ours
50+ `EC_TRACE_COEFF=1 EC_SPLITSTRIP=1 decode_probe s74.obu` vs
51+ `EC_TRACE_COEFF=1 ~/.cache/aom-oracle/build/aomdec --rawvideo -o /dev/null s74.obu`;
52+ find the first element whose RANGE step differs, in the blocks AFTER the strip in that
53+ block row (target block x160..191, y32..63).
54+2. Prime suspects, in order: the strip's TXFM_CONTEXT bands written by r1's `set_txfm_ctxs`
55+ tail (wrong span/value would desync the NEXT block's tx_depth), the depth-1 sub-unit
56+ walk in `decode_rect_split` for a 32x16 strip at 10 bit, and the skip/txfm side maps the
57+ strip leaves behind (class new-map-ignores-tile-edge / early-return-skips-tail).
58+3. Then re-run BOTH gate arms + the inter16ab 1:4 gate above (sibling-gate rule).