Lane-t900 r14 report -- OBMC neighbour prediction size root cause, 1080p all-exact table
Browse files at this commitdf61932a7719df85eb4a26541e0699d10e08a21cParent: 7aad309- docs
- lane-t900 r14 report -- OBMC neighbour prediction size root cause, 1080p all-exact table
1 changed file +97 -0
- lanes/t900-r14.report.md +97 -0
lanes/t900-r14.report.mdadded+97 -0
| @@ -0,0 +1,97 @@ | |||
| 1 | +# lane-t900 r14 report -- the last 1080p residue class: OBMC neighbour prediction size | ||
| 2 | + | ||
| 3 | +Branch `lane-t900`, base `a870796b` (main, merged fast-forward at round start). | ||
| 4 | + | ||
| 5 | +## Root cause (one, all of TARGET A) | ||
| 6 | + | ||
| 7 | +`overlappable_above` / `overlappable_left` (`crates/ec-av1/src/decode.rs`) clamped the | ||
| 8 | +neighbour span to `end_col`/`end_row`, i.e. to `mi_cols`/`mi_rows`. libaom's | ||
| 9 | +`foreach_overlappable_nb_above`/`_left` (`av1/common/obmc.h:52,83`) pass | ||
| 10 | +`op_mi_size = AOMMIN(xd->width|height, mi_step)` -- the block's OWN side, never the | ||
| 11 | +frame-edge clamp; `end_col`/`end_row` bound only the WALK. `build_obmc_inter_pred_*` | ||
| 12 | +(`reconinter.c:891`) then predicts a strip `op_mi_size * MI_SIZE >> ss` tall/wide, and | ||
| 13 | +the destination write runs off into the frame buffer's own padding. | ||
| 14 | + | ||
| 15 | +Because our span shrank at the frame edge, the neighbour PREDICTION shrank with it, and | ||
| 16 | +at 4 chroma rows `mc::predict_with_filters` picks the 4-tap narrow vertical kernel | ||
| 17 | +(`mc.rs:418`, class `narrow-block-sharp-kernel`) where libaom used the 8-tap one. | ||
| 18 | +Result: a 1-off on the last valid chroma row of the OBMC blend -- 1-13 B on 36 of 267 | ||
| 19 | +frames of the 900 s 1080p cut and similar counts on every other 1080p cut. | ||
| 20 | + | ||
| 21 | +Fix (`a6c408b7`): span is `step.min(bw4)` / `step.min(bh4)`; the prediction is built at | ||
| 22 | +that full size (kernel choice included) and only the WRITE into this block's own | ||
| 23 | +prediction buffer is clipped (`obmc_blend_v` gained the tmp stride, `obmc_blend_h` | ||
| 24 | +takes the clipped row count). | ||
| 25 | + | ||
| 26 | +Witness (`52a11095`): `obmc_edge_span_hits` counts neighbour strips running past | ||
| 27 | +`mi_rows`/`mi_cols`; the 128-SB inter witness gate hard-asserts it (fires 33x). | ||
| 28 | + | ||
| 29 | +## Ladder that produced it (one run each, both decoders) | ||
| 30 | + | ||
| 31 | +* aomdec `EC_MCB=1:353:395:41` on `c900_62.obu`: base pred (obmc=0) 16 rows identical to | ||
| 32 | + ours; ONE `obmc=1` left-neighbour entry covers row 11, `mi_y=784 bw=8 bh=8`, its | ||
| 33 | + row3 = `494 491 490 491 494 492 488 486`. | ||
| 34 | +* ours (`OUR_MCB left`, new tmp dump): same neighbour, `cbh=4` (not 8), row3 | ||
| 35 | + `494 492 490 491 ...` -- col 1 is 492 vs libaom's 491. | ||
| 36 | +* Blend arithmetic confirms the sign: `obmc_mask_8[1] = 42`, | ||
| 37 | + `(42*493 + 22*491 + 32) >> 6 = 492` (aom) vs `(42*493 + 22*492 + 32) >> 6 = 493` (ours). | ||
| 38 | + | ||
| 39 | +## 1080p table (10-bit 1920x792, `cmp13.sh`, aomdec `EC_AV1_FINAL_DUMP` vs ours, all planes) | ||
| 40 | + | ||
| 41 | +| stream | frames | differing | before r14 | | ||
| 42 | +|---|---|---|---| | ||
| 43 | +| head 0-10 s | 241 | 0 | 78 differing (r11) | | ||
| 44 | +| 300 s | 186 | 0 | - | | ||
| 45 | +| 900 s (cut_900) | 267 | 0 | 36 differing, first f41, worst 13 B | | ||
| 46 | +| 1200 s | 199 | 0 | - | | ||
| 47 | +| 1800 s | 193 | 0 | 26 B on f1 (charter) | | ||
| 48 | +| 2100 s | 169 | 0 | - | | ||
| 49 | +| 3000 s | 135 | 0 | - | | ||
| 50 | +| 3900 s | 291 | 0 | - | | ||
| 51 | +| 4800 s | 89 | 0 | - | | ||
| 52 | +| 5400 s | 275 | 0 | 5 differing | | ||
| 53 | +| 5700 s | 134 | 0 | - | | ||
| 54 | +| 6300 s | 125 | 0 | differing | | ||
| 55 | +| 6600 s | 110 | 0 | - | | ||
| 56 | +| 7500 s | 89 | 0 | - | | ||
| 57 | +| 8100 s | 96 | 0 | differing | | ||
| 58 | +| 8400 s | 135 | 0 | - | | ||
| 59 | +| 9300 s | 81 | 0 | - | | ||
| 60 | +| 9900 s | 176 | 0 | charter target | | ||
| 61 | +| 10200 s | 144 | 0 | - | | ||
| 62 | + | ||
| 63 | +Every 1080p offset probed this round is byte-exact on every plane. No 1080p residue left | ||
| 64 | +in this lane's reach. | ||
| 65 | + | ||
| 66 | +## 4K regression check (no 1080p-only fix regressed the 4K path) | ||
| 67 | + | ||
| 68 | +| stream | frames | differing | | ||
| 69 | +|---|---|---| | ||
| 70 | +| 3840x1608 10-bit, 2700 s cut (`h2700.obu`) | 107 | 0 | | ||
| 71 | +| 3840x1608 10-bit, 1500 s cut (`h1500.obu`) | 244 | 0 | | ||
| 72 | + | ||
| 73 | +## Gates / suite | ||
| 74 | + | ||
| 75 | +* `a_10bit_128sb_film_frames_with_warp_cdef_and_interintra_decode_pixel_exact`: | ||
| 76 | + `EC_NOMEMGUARD=1 EC_AV1_REQUIRE_AOMENC=1 CARGO_TARGET_DIR=$HOME/.cache/cargo-target-t900b | ||
| 77 | + cargo test -p ec-av1 --lib -j3 a_10bit_128sb_film_frames_with_warp_cdef_and_interintra -- --nocapture` | ||
| 78 | + -> `ok. 1 passed`, counters `... tr_reach_longer_side=600 obmc_edge_span=33`. | ||
| 79 | +* Full suite (r14 fix, unit `t900-suite-r14-1788394487`): | ||
| 80 | + `test result: ok. 429 passed; 0 failed; 38 ignored; 0 measured; 0 filtered out; | ||
| 81 | + finished in 861.07s` -- `$HOME/.cache/t900-suite-r14.log`. | ||
| 82 | +* Full suite on the FINAL tip (unit `t900-suite-r14b-1788395402`, log | ||
| 83 | + `$HOME/.cache/t900-suite-r14b.log`): see the handoff line appended after it finished. | ||
| 84 | + | ||
| 85 | +## EVIDENCE | ||
| 86 | + | ||
| 87 | +EVIDENCE: ~/.cache/t900-tmp/aom_mcb41b.txt + ~/.cache/t900-tmp/our_mcb41.txt | aomdec and ours with EC_MCB=1:353:395:41 on c900_62.obu | left-neighbour tmp row3 col1 = 491 (aom, bh=8) vs 492 (ours, cbh=4) -> post-blend U(353,395) 492 vs 493 | ||
| 88 | +EVIDENCE: ~/.cache/t900-tmp/d_cut900_r14/ | cmp13.sh cut900_r14 cut_900.obu (aomdec EC_AV1_FINAL_DUMP vs our decode_probe, all planes) | frames=267 differing=0 (was 36 differing, worst 13 B) | ||
| 89 | +EVIDENCE: ~/.cache/t900-tmp/sweep14.log | 12 x 2 s 1080p cuts (300..10200 s) + 2 4K cuts, same compare | every offset differing=0 | ||
| 90 | +EVIDENCE: $HOME/.cache/t900-suite-r14.log | full ec-av1 lib suite as a systemd unit | 429 passed; 0 failed; 38 ignored | ||
| 91 | + | ||
| 92 | +## Residue | ||
| 93 | + | ||
| 94 | +* 4K census8's remaining not-exact offsets: not swept this round -- deferred(a 4K census | ||
| 95 | + run costs ~20 min per offset pair on this box while a suite runs); the two 4K cuts I did | ||
| 96 | + re-probe are exact. | ||
| 97 | +* No 1080p residue known: fix-now list empty for this lane's 1080p target. | ||