forge
Explore
Log in

Don't you dare go Hollow

1b74214356d38ccb22c0a2584493d2a4cc27e399Ahmet Kaan GümüşParent: 1fd22e3
  • docs
    • r4 handoff
Show full message
docs(sb128c): r4 handoff
lanes/sb128c-r4.handoff.mdadded+79 -0
@@ -0,0 +1,79 @@
1+# lane-sb128c r4 -> r5 handoff
2+
3+Tip `lane-sb128c` (worktree `edith_codecs-sb128c`,
4+`CARGO_TARGET_DIR=$HOME/.cache/cargo-target-sb128c`). Full detail:
5+`lanes/sb128c-r4.report.md`.
6+
7+## Done in r4
8+
9+- r3 suite line: `371 passed; 1 failed; 32 ignored` (the known-RED gate).
10+- **Deblock root cause fixed** (`6226c27`): libaom's `curr_skipped` suppression
11+ (`set_one_param_for_line_luma`, `av1_loopfilter.c`) -- a TU edge that is not
12+ a PU edge is never filtered when `skip_txfm && is_inter`. Our 128 root
13+ published four TX_64X64 luma leaves and a capped 32-px uv extent into the lf
14+ grid even when skipped. Gated the per-leaf `fill_lf_grid_rect` loop on
15+ `!(skip && is_inter)`; dropped the inert-and-harmful `.min(32)` uv cap.
16+- `dump_stage` now indexes per decode-order picture (`EC_AV1_POSTDEBLOCK_DUMP`
17+ used to overwrite `.f0`). This is the instrument that found the defect.
18+- CDEF-for-128-root claim in the r4 charter DISPROVED by reading `read_cdef`:
19+ ONE `cdef_idx` symbol for a NONE 128 root (one block => one call => index 0),
20+ replicated across the four units via the shared `MB_MODE_INFO`. r1 was right;
21+ no change needed. Four symbols only when the root SPLITs.
22+- ReelC re-probe: same stop string, 1 `EC_AV1_FINAL_DUMP` frame, and that frame
23+ is byte-identical to ffmpeg's 10-bit decode (`cmp` clean, 4561920 bytes).
24+
25+## The residue -- this is r5's first job
26+
27+Gate `a_real_aomenc_inter_128x128_none_root_decodes_pixel_exact` is still RED,
28+now on a DIFFERENT, independent defect one frame later.
29+
30+Stream `$HOME/.cache/sb128c-work/g-61-8-0.obu` (8-bit, 256x256, sb-size 128,
31+9 decode-order pictures, 8 shown). All stages of decode-order frames 0..4 are
32+now exact -- pre-filter, post-deblock and final (`EC_AV1_FINAL_DUMP`, which
33+includes the hidden frame). Decode-order frame 5 is wrong ALREADY AT
34+PRE-FILTER, so every reference it uses is exact and this is not propagation:
35+
36+```
37+frame 5 pre-filter Y: 19609 px, rows 128..255, cols 0..255, maxd 33, first (128,0)
38+frame 5 pre-filter C: 5207 px
39+per-64x64 quadrant Y: [0,0,0,0] [0,0,0,0] [3707,844,3137,3889] [183,177,3844,3828]
40+```
41+
42+The whole BOTTOM superblock row (both 128x128 SBs), rows 0..127 exact.
43+Our mode trace lists that row as two `side=128 is_inter=1 skip=1` blocks -- a
44+skipped inter block is pure motion compensation. Entropy stays in sync for all
45+9 frames. The quadrant diff is content-dependent (flat quadrants mostly match),
46+which is a slightly-wrong PREDICTOR, not a wrong write geometry. Frame 4's own
47+`(32,0)` 128 skip block is exact, so 128-wide MC itself works.
48+
49+Suspects, in order: the 128 block's mv (mv stack / GLOBALMV resolution), its
50+`ref_frame`, its `switchable_interp` filter, and `motion_mode`/OBMC for a
51+128x128 block. NOT the lf grid (pre-filter dump).
52+
53+Reproduce:
54+```
55+cd $HOME/.cache/sb128c-work
56+rm -f pf-o.f* pf-m.f*
57+systemd-run --user --scope -q -p MemoryMax=6G env EC_AV1_PREFILT_DUMP=$PWD/pf-o \
58+ ~/.cache/aom-oracle/build/aomdec --rawvideo -o /dev/null g-61-8-0.obu
59+systemd-run --user --scope -q -p MemoryMax=6G env EC_NOMEMGUARD=1 EC_AV1_PREFILT_DUMP=$PWD/pf-m \
60+ $HOME/.cache/cargo-target-sb128c/debug/examples/decode_probe g-61-8-0.obu
61+# compare pf-o.fN vs pf-m.fN, 256x256 yuv420p8
62+```
63+Oracle rungs available: `EC_AV1_PREFILT_DUMP`, `EC_AV1_POSTDEBLOCK_DUMP`,
64+`EC_AV1_FINAL_DUMP` (all indexed, decode order, hidden frames included), and
65+`EC_TRACE_MODE` (`EC_MODE_MV` / `EC_MODE_VAL` carry `mode`, `ref0`, `ref1`,
66+`mv0`, `stack`, `rng` -- 62 lines on this stream, none in the bottom SB row of
67+the failing frame, so a per-block mv trace for skip blocks has to come from
68+`EC_PRED`/`EC_PREDOUT` or a new rung).
69+
70+## (3) 128-level HORZ/VERT + AB -- NOT STARTED
71+
72+deferred: 128x64 / 64x128 and AB at the 128 root, key and inter paths -- r4's
73+budget went to the stage bisection; unblocked by nothing. This is the exact
74+string both ReelC extracts still stop at and it is the film frontier.
75+Charter facts from r4's charter that are still unverified: max tx TX_64X64,
76+2 mu chunks, chroma 64x32 -> 2x TX_32X32 with offset-10 `txb_skip` rows,
77+lf grid per unit, cdef per 64x64 quadrant (NOTE: for HORZ/VERT the 128 root has
78+TWO blocks, so `read_cdef` is called twice and can read up to 2 literals --
79+re-derive the index per block from `decodemv.c:read_cdef` rather than assuming).