From 89542942c6dc2c585e8a5f7921be5b6f5b11a39a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Thu, 3 Sep 2026 02:53:06 +0300 Subject: [PATCH] docs(av1): lane-t900 r13 handoff --- lanes/t900-r13.handoff.md | 58 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 lanes/t900-r13.handoff.md diff --git a/lanes/t900-r13.handoff.md b/lanes/t900-r13.handoff.md new file mode 100644 index 00000000..cb947712 --- /dev/null +++ b/lanes/t900-r13.handoff.md @@ -0,0 +1,58 @@ +# lane-t900 r13 handoff -- start at the OBMC LEFT pass of a bottom-overhanging block + +Tip `f24c9807` on `lane-t900` (base main `2b65cb8e`). Full report: `lanes/t900-r13.report.md`. + +## Facts established this round (do not re-measure) + +1. The four 4K offsets the r13 charter listed as whole-frame desyncs (2700 f73, 3000 f43, + 1500, 5400) are **byte-exact on this tip**: 107/193/244/160 decode frames, 0 differing. + r12's `uv_mode_grid` fix cured them. Cuts (each hashed twice, identical): + `~/.cache/t900-tmp/h{2700,3000,1500,5400}.obu`. Compare script `~/.cache/t900-tmp/cmp13.sh` + (uses `$HOME/.cache/cargo-target-t900b` so it never shares a target dir with a suite). +2. r12's fix now has a witness: `gm_small_side_witness.obu` fires `uv_mode_grid_override` + 138 times and the gate hard-asserts it. `reelc_sb128_inter_witness` fires it 24; the four + `reelb_*` witnesses fire 0. +3. The 1-3 B residue on the 1080p 900 s cut (36 frames, first 41, worst 13) is + **inside the OBMC blend, not the base MC**. On frame 41 the chroma block + `mi_x=704 mi_y=768 bw=16 bh=16` (32x32 luma at mi(192,176), overhanging the bottom: + mi_rows=198), `mm=1 skip=1 mv0=(-4,14) ref0=5`: + * pre-blend chroma prediction = aomdec's, all 16 rows; + * after the blend our prefilter recon differs at exactly one sample, row 11 col 1 + (`U(353,395)`, aom 492 ours 493), which lies in the LEFT pass's 8-column strip and + below the ABOVE pass's 4-row strip. + So: LEFT-pass neighbour prediction or its blend, at the block's last valid chroma row. +4. Dead end (measured, reverted, recorded in a comment at the site): flooring the chroma + OBMC blend length at 4 (libaom's `clamp(..., 4, ...)`) -- that clamp sizes the PREDICTION + buffer only; the blend length is `overlap >> ss`. 36 differing frames -> 266, worst 13 B + -> 11007 B. +5. Ruled out by reading both sources: `build_mc_border`/`update_extend_mc_border_params` + clamp to `uv_crop_width/height` (960x396) = our `true_width/true_height`; + `clamp_mv_to_umv_border_sb` is result-equivalent to tap clamping. + +## Rungs available (both additive and env-gated) + +* aomdec private build (`~/.cache/aom-oracle/src/av1/decoder/decodeframe.c`, rebuilt with + `ninja -C ~/.cache/aom-oracle/build aomdec`): `EC_MCB="::[:]"` prints + every `dec_build_inter_predictors` call whose plane-pixel span covers that pixel -- + including the `obmc=1` neighbour predictions (their rows come from the tmp buffer) -- + with `f=` (decode-order frame, counter `ec_t900_frame`), bw/bh, mode, `mm`, skip, mv0, + refs, interp, `prew/preh/stride`. +* ours: `OUR_MCB` in `decode.rs::obmc_blend`, same env spelling, chroma rows before and + after the blend; `EC_OBMC` (pre-existing) prints the neighbour list on both decoders. +* Cut with frame 41 near the end: `~/.cache/t900-tmp/c900_62.obu` + (`python3 ~/.cache/reelckf-work/trunc.py cut_900.obu 62 c900_62.obu`). + +## Next step (chartered) + +`EC_MCB=1:353:395:41` on aomdec over `c900_62.obu` and read the `obmc=1` entries for +`mi_x=704`: compare each LEFT-pass neighbour (position, span, mv, ref, filter -- `EC_OBMC` +on both) and then the tmp rows at row 11 against ours. Our left pass sizes are +`(bw, bh, oy) = (overlap_left, span4*4, off4*4)` with chroma `(overlap_left/2, bh/2, oy/2)` +(`decode.rs` ~19585); libaom's are `bh = (mi_step*MI_SIZE) >> ss_y` and blend width +`overlap >> ss_x` -- check what libaom does with `mi_step` when the neighbour span runs +past `mi_rows` at the frame bottom. + +## Owed + +* 1080p 0-10 s head re-probe (was 78 differing, first 86 -- unmeasured since r11). +* census8's 24 not-exact 4K offsets (run8.sh) re-probe.