R2 handoff -- phase table pointer, both twin drifts, range ladders, gate now RED on pixels only
Browse files at this commita65c70ec4c69a8bf3f92337056a899d19e667783Parent: 969c1b9- docs
- r2 handoff -- phase table pointer, both twin drifts, range ladders, gate now RED on pixels only
2 changed files +54 -0
- lanes/COMMON-20260901.md +6 -0
- lanes/interp3-r2.handoff.md +48 -0
lanes/COMMON-20260901.mdmodified+6 -0
| @@ -100,3 +100,9 @@ If you ran it: extract your own hunks, `git checkout -- crates/`, re-apply. | |||
| 100 | never two suites per lane; film extracts ≤2 s; a watchdog (`ec-memwatch` user unit, log | 100 | never two suites per lane; film extracts ≤2 s; a watchdog (`ec-memwatch` user unit, log |
| 101 | `$HOME/.cache/ec-memwatch.log`) SIGKILLs any codec/test process above 6 GiB RSS or the largest one | 101 | `$HOME/.cache/ec-memwatch.log`) SIGKILLs any codec/test process above 6 GiB RSS or the largest one |
| 102 | when MemAvailable < 3 GiB — a killed run means YOUR command exceeded the budget: bound it, do not retry as-is. | 102 | when MemAvailable < 3 GiB — a killed run means YOUR command exceeded the budget: bound it, do not retry as-is. |
| 103 | + | ||
| 104 | +## WORKTREE SETUP (2026-09-02, three lanes lost a round to this) | ||
| 105 | +A new worktree needs the TOP-LEVEL fixtures symlink: `ln -s /home/user/Documents/Code/Rust/edith_codecs/fixtures <worktree>/fixtures`. | ||
| 106 | +Without it exactly one gate fails: a_real_aomenc_stream_with_film_grain_decodes_pixel_exact with Os NotFound — it is NOT a decode defect. | ||
| 107 | +New files under crates/ec-av1/fixtures/ need `git add -f` (bare `fixtures` in .gitignore); verify with `git ls-files`. | ||
| 108 | +Commit-msg hook rejects film titles / home paths: describe streams by codec/resolution/bit depth. | ||
lanes/interp3-r2.handoff.mdadded+48 -0
| @@ -0,0 +1,48 @@ | |||
| 1 | +# lane-interp3 r2 HANDOFF (turn cap) | ||
| 2 | + | ||
| 3 | +Tip: see `git log -1` on branch `lane-interp3` (r2 fix commit + report commit). | ||
| 4 | +Base: r1 b702853 + `git merge main` (4eff3a1, lane-mvtwin mvstack fixes). Merge touched | ||
| 5 | +only mvstack.rs / stream.rs / lanes/mvtwin-r1.report.md; cdf.rs untouched both sides. | ||
| 6 | + | ||
| 7 | +## Phase table + divergences: see lanes/interp3-r2.report.md (complete, 17 rows) | ||
| 8 | +Two divergences found in `decode_inter_block8`'s compound arm, both FIXED: | ||
| 9 | +1. decode.rs:19151 `read_compound_ref_frames` got a hard-coded `LAST_FRAME` (or -1) | ||
| 10 | + for the above/left neighbour reference instead of the real per-mi bands | ||
| 11 | + (`above_ref0`/`left_ref0`, what `decode_inter_block` passes) -> every | ||
| 12 | + `av1_collect_neighbors_ref_counts` vote off the wrong CDF row. | ||
| 13 | +2. decode.rs:19410 the leaf's grid stamp cleared BOTH per-slot `is_global_mv_block` | ||
| 14 | + flags; now computed as libaom blockd.h:421-429 (mode GLOBAL_GLOBALMV + that slot's | ||
| 15 | + gm model > TRANSLATION). | ||
| 16 | +Also added: decode.rs:19726 per-entry `EC_STACK` print in the leaf's SINGLE-ref arm. | ||
| 17 | + | ||
| 18 | +## Ladder (EC_TRACE_MODE=1, ours vs instrumented aomdec, RANGE never tell) | ||
| 19 | +- Before fix 1, frames=5 stream: first divergence at compound leaf mi (10,2) -- | ||
| 20 | + both enter the mode info at rng=61097; aomdec reads refs (LAST,GOLDEN) mode | ||
| 21 | + NEAREST_NEARESTMV -> rng 49516; ours read (LAST,LAST2) NEW_NEWMV -> rng 50496. | ||
| 22 | +- Before fix 2, frames=16 stream: first divergence at single-ref 8x8 leaf mi (8,8), | ||
| 23 | + entry rng=43099 both; aomdec stack = [(-1,-1) w648, (0,0) w644] (2 entries), | ||
| 24 | + ours = [(0,0) w644, (2,-4) w644, (-1,-1) w4] (3) -- the extra (2,-4) is the | ||
| 25 | + neighbour's stored mv1 where libaom substitutes the reader's global mv. | ||
| 26 | +- AFTER both fixes: 570 vs 570 mode elements, `diff` EMPTY, no refusal. | ||
| 27 | + | ||
| 28 | +## Gate state | ||
| 29 | +`a_real_aomenc_dual_filter_obmc_8x8_inter_sequence_decodes_pixel_exact` still | ||
| 30 | +`#[ignore]`d (ignore text updated with this measurement). Now RED on RECONSTRUCTION, | ||
| 31 | +not entropy: luma-only, frames 0-6 byte-exact, frame 7 = 36 Y wrong (max |d| 5, first | ||
| 32 | +(42,15), the 8x8 leaf at mi (10,4), 1-px spill across its left/bottom deblock edges), | ||
| 33 | +propagating to 222 Y + 4 U + 1 V at frame 15. | ||
| 34 | +Artifacts: scratchpad .../{pin.obu (5 frames), pin16.obu==mm.obu (16), aom16.trace, | ||
| 35 | +ours16e.trace, mm.aom.yuv, mm.ours.yuv, aom.obmc}. | ||
| 36 | + | ||
| 37 | +## Suite | ||
| 38 | +Unit `interp3-suite-r2-1788327820.service`, log `$HOME/.cache/interp3-suite-r2.log`. | ||
| 39 | +Armed at the r2 fix commit; still running at the cap -- read the log's `test result:` | ||
| 40 | +line, do not re-run blindly. | ||
| 41 | + | ||
| 42 | +## EXACT NEXT STEP | ||
| 43 | +Build an `EC_OBMC` emitter in decode.rs (both OBMC call sites) printing the oracle's | ||
| 44 | +own byte format -- `EC_OBMC above|left mi=(r,c) wh=(WxH) rel=%d op=%d nbmv=(y,x) | ||
| 45 | +nbref=%d nbbsize=%d filt=%d` -- then diff it against the 325 lines of | ||
| 46 | +`EC_OBMC=1 aomdec --rawvideo -o /dev/null mm.obu`, starting at `mi=(10,4)`. The leaf | ||
| 47 | +now records a REAL filter pair where it used to record the [3,3] sentinel, so an OBMC | ||
| 48 | +blend over a compound neighbour is the first suspect for the residue. | ||