R11 full-suite totals -- 306 passed / 1 failed / 26 ignored, the seed-46 gate is the only red
Browse files at this commit094999a256728dc9e3d30a43e8f7cbc8488682e7Parent: b7ad53c- docs
- r11 full-suite totals -- 306 passed / 1 failed / 26 ignored, the seed-46 gate is the only red
2 changed files +94 -11
- lanes/palette2-r11.report.md +22 -11
- lanes/palette2-r12.report.md +72 -0
lanes/palette2-r11.report.mdmodified+22 -11
| @@ -88,14 +88,25 @@ EVIDENCE: scratchpad/s46.obu (146 B, sha256 a109adab4397...) + aomstep.log/ourst | |||
| 88 | EVIDENCE: scratchpad/ourpre.yuv.f0 vs aompre.yuv.f0 | `EC_AV1_PREFILT_DUMP` both decoders, same stream | 2165 luma samples differ, bbox x136..191 y64..127 (the last superblock only); post-filter 2242, so the loop filter is not the source | 88 | EVIDENCE: scratchpad/ourpre.yuv.f0 vs aompre.yuv.f0 | `EC_AV1_PREFILT_DUMP` both decoders, same stream | 2165 luma samples differ, bbox x136..191 y64..127 (the last superblock only); post-filter 2242, so the loop filter is not the source |
| 89 | EVIDENCE: scratchpad (per-block diff map) | counted prefilter diffs inside every block aomdec reported for SB(128,64) | first defective block = TL 16x16 at px(128,64) of a 32x32 VERT_A, 25/256 wrong, wedge rows 68..71 | 89 | EVIDENCE: scratchpad (per-block diff map) | counted prefilter diffs inside every block aomdec reported for SB(128,64) | first defective block = TL 16x16 at px(128,64) of a 32x32 VERT_A, 25/256 wrong, wedge rows 68..71 |
| 90 | 90 | ||
| 91 | -## STEP 3 -- suite status at the turn cap | 91 | +## STEP 3 -- full suite on the merged tree |
| 92 | -`systemd-run --user --unit=palette2-suite-r11-1788310477` (full `cargo test -p ec-av1 --lib | 92 | +``` |
| 93 | --- --test-threads=1`, log `$HOME/.cache/palette2-suite-r11.log`) was still RUNNING when this | 93 | +systemd-run --user --unit=palette2-suite-r11-1788310477 -p MemoryMax=10G --same-dir \ |
| 94 | -round hit its tool cap -- no `test result` line yet, so NO suite totals are claimed for r11. | 94 | + bash -lc 'EC_NOMEMGUARD=1 EC_AV1_REQUIRE_AOMENC=1 CARGO_TARGET_DIR=$HOME/.cache/cargo-target-palette2 \ |
| 95 | -The three tests run by name on the merged tree before it started: | 95 | + nice -n 10 cargo test -p ec-av1 --lib -j3 -- --test-threads=1 \ |
| 96 | -`refusal_inventory` (3 tests) and `gate_coverage` (7 tests) PASS; | 96 | + > $HOME/.cache/palette2-suite-r11.log 2>&1' |
| 97 | -`a_real_aomenc_stream_with_filter_intra_on_a_horz_vert_strip_decodes_pixel_exact` FAILS, | 97 | +``` |
| 98 | -same message as r10 (seed 46, first luma mismatch (188,62) ours=116 ffmpeg=115, 2242 samples, | 98 | +-> **306 passed; 1 failed; 26 ignored** (735.05s). r10 was 294/2/27. |
| 99 | -bbox x135..191 y62..127). | 99 | +The ONE failure is this lane's known red gate, |
| 100 | -`deferred: full-suite totals -- run was mid-flight at the cap -- read | 100 | +`stream::tests::a_real_aomenc_stream_with_filter_intra_on_a_horz_vert_strip_decodes_pixel_exact` |
| 101 | -$HOME/.cache/palette2-suite-r11.log (unit palette2-suite-r11-1788310477) at the start of r12`. | 101 | +(seed 46, message unchanged). r10's second failure, |
| 102 | +`decode::tests::nz_map_ctx_offset_tables_match_the_rect_rule`, is gone: main deleted that | ||
| 103 | +stale test and the merge took the deletion. Both palette gates, `filter_intra_*`, | ||
| 104 | +`split_transform_*`, `superblock_level_*`, the tiny sweep, `tx_select`, `refusal_inventory`, | ||
| 105 | +`gate_coverage` and `base_ctx_rect_offsets_match_the_transcribed_tables_over_the_whole_domain` | ||
| 106 | +all pass inside that run. | ||
| 107 | + | ||
| 108 | +`fix-now: r12 -- the lane does not merge into main until seed 46 is pixel-exact (see STEP 2 | ||
| 109 | +for the localization; it is a reconstruction defect behind the refusal this lane lifted, not | ||
| 110 | +an entropy or palette defect).` | ||
| 111 | + | ||
| 112 | +EVIDENCE: $HOME/.cache/palette2-suite-r11.log | full `cargo test -p ec-av1 --lib -- --test-threads=1` under systemd unit palette2-suite-r11-1788310477 on the merged tree (b79b698) | test result: FAILED. 306 passed; 1 failed; 26 ignored; 735.05s -- the single failure is the seed-46 gate | ||
lanes/palette2-r12.report.mdadded+72 -0
| @@ -0,0 +1,72 @@ | |||
| 1 | +# lane-palette2 r12 -- root cause of seed 46: a transform unit inside a block used the standalone-block reach tables | ||
| 2 | + | ||
| 3 | +VERDICT: GREEN on the defect. Merge with main `4a29b4e` committed (`ed07bdc`), | ||
| 4 | +seed-46 gate RED -> GREEN (`e8cc1c2`), full-suite totals below. | ||
| 5 | + | ||
| 6 | +## STEP 1 -- merge main 4a29b4e (commit ed07bdc) | ||
| 7 | +`git merge --no-commit --no-ff main` -> 5 conflicts, all in `decode.rs` | ||
| 8 | +(`refusal_inventory.rs`/`stream.rs`/`cdf.rs` auto-merged clean). | ||
| 9 | +All five are the same shape: main's sub8merge mi-granular neighbour maps | ||
| 10 | +(`modes_above_left`, `record_mode_mi`, `record_uv_mode_mi`) against the lane's | ||
| 11 | +palette reads/refusals/stamps in `decode_block_rect` and `decode_block_rect64`. | ||
| 12 | +Resolution: BOTH sides at every hunk -- main's `modes_above_left(r, c)` replaces | ||
| 13 | +the lane's `above_mode[c]`/`left_mode[r]` cell reads (that is exactly the | ||
| 14 | +mi-granular fix), the lane's palette ctx/cache + refusals + neighbour stamps | ||
| 15 | +kept, main's `EC_AV1_RECTX_TRACE` print kept. | ||
| 16 | +`refusal_inventory` 3/3 and `gate_coverage` 9/9 green on the merged tree. | ||
| 17 | + | ||
| 18 | +## STEP 2 -- seed 46 root cause (commit e8cc1c2) | ||
| 19 | +Premise re-measured, not inherited: regenerated `s46.obu` from the gate recipe | ||
| 20 | +(seed 46 gradients, sha256 `a109adab4397...`, 146 B, same hash as r11) and | ||
| 21 | +re-ran the gate on the merged tree -- still RED, same 2242 samples. | ||
| 22 | + | ||
| 23 | +r11 had ruled out entropy, the loop filter, palette and filter intra, and had | ||
| 24 | +verified block-level `has_bottom_left` by hand. What it could not see is that | ||
| 25 | +the block is NOT predicted as one 16x16: added an `EC_PRED` rung to the oracle | ||
| 26 | +(`~/.cache/aom-oracle/src/av1/common/reconintra.c`, printing | ||
| 27 | +`mi_row/mi_col/plane/row_off/col_off/txw/txh/mode/p_angle/have_*/n_top/n_left/n_tr/n_bl/bsize/partition`) | ||
| 28 | +and aomdec reports the TL 16x16 as FOUR 8x8 luma TUs: | ||
| 29 | + | ||
| 30 | + EC_PRED mi_row=16 mi_col=32 plane=0 row_off=0 col_off=0 txw=8 txh=8 mode=7 p_angle=200 n_top=8 n_left=8 n_tr=-1 n_bl=8 bsize=6 part=6 | ||
| 31 | + EC_PRED mi_row=16 mi_col=32 plane=0 row_off=0 col_off=2 ... n_bl=0 | ||
| 32 | + EC_PRED mi_row=16 mi_col=32 plane=0 row_off=2 col_off=0 ... n_bl=8 | ||
| 33 | + EC_PRED mi_row=16 mi_col=32 plane=0 row_off=2 col_off=2 ... n_bl=0 | ||
| 34 | + | ||
| 35 | +`n_bl=0` for both `col_off > 0` units: libaom's `has_bottom_left` returns 0 | ||
| 36 | +outright there. Our `decode_block` multi-TU branch built the unit's reach with | ||
| 37 | +`Reach::of(logical_tx, tu_px, tu_py, ..)` -- the STANDALONE-BLOCK tables at the | ||
| 38 | +unit's position (with `VERT_AB_PARTITION` set, `has_bl_vert_8x8` bit 1 = 1), so | ||
| 39 | +the top-right 8x8 unit read 8 bottom-left samples libaom never gives it. That | ||
| 40 | +is the 25-pixel diagonal wedge at rows 68..71 x136..143 (D203 = zone 3, reads | ||
| 41 | +down-left), which then propagated across the last superblock. | ||
| 42 | + | ||
| 43 | +FIX: `Reach::of_tu(bw, bh, col_off, row_off, tx, block_reach)` in `encode.rs` | ||
| 44 | +(the TU branches of both libaom functions, one place), used at all three | ||
| 45 | +per-TU sites: | ||
| 46 | +- `decode.rs` `decode_block` multi-TU branch (the defect), | ||
| 47 | +- `decode.rs` `decode_leaf8`'s 2x2 grid of 4x4 TUs (same shape, same fix), | ||
| 48 | +- `decode.rs` `decode_rect_split` (had the rule inline since lane-rectsplit r1; | ||
| 49 | + now shares it -- one transcription, not three). | ||
| 50 | +CLASS SWEEP: every other `Reach::of(...)` in `decode.rs` is a whole block or a | ||
| 51 | +whole chroma block (4x4 leaf, 8x8 chroma group), not a unit inside one -- those | ||
| 52 | +are correct and untouched. | ||
| 53 | + | ||
| 54 | +## Files changed | ||
| 55 | +- `crates/ec-av1/src/encode.rs` -- `Reach::of_tu` + `Debug` on `Reach`; new test | ||
| 56 | + `of_tu_matches_libaom_has_top_right_and_has_bottom_left_per_unit`. | ||
| 57 | +- `crates/ec-av1/src/decode.rs` -- three per-TU reach sites through `of_tu`; | ||
| 58 | + merge resolution in `decode_block_rect`/`decode_block_rect64`. | ||
| 59 | +- `crates/ec-av1/src/refusal_inventory.rs` -- merge (auto). | ||
| 60 | + | ||
| 61 | +## Gates | ||
| 62 | +- `a_real_aomenc_stream_with_filter_intra_on_a_horz_vert_strip_decodes_pixel_exact` | ||
| 63 | + (seed 46 is the regression pin): `cargo test -p ec-av1 --lib filter_intra_on_a_horz_vert_strip` | ||
| 64 | + -> `ok. 1 passed` (was FAILED with 2242 mismatching samples). | ||
| 65 | +- `encode::tests::of_tu_matches_libaom_has_top_right_and_has_bottom_left_per_unit`: | ||
| 66 | + enumerates 10 block shapes x tx in {4,8,16,32} x every (row_off, col_off) x both | ||
| 67 | + block-level answers against an MI-unit transcription of libaom's | ||
| 68 | + `has_top_right`/`has_bottom_left` -> ok. | ||
| 69 | + | ||
| 70 | +## EVIDENCE | ||
| 71 | +EVIDENCE: scratchpad/aompred.log (EC_PRED rung added to reconintra.c) | `EC_PRED=1 aomdec s46.obu`, grep `mi_row=16 mi_col=32` | the 16x16 D203 block is four 8x8 luma TUs with n_bl = 8,0,8,0 -- the two `col_off>0` units get NO bottom-left | ||
| 72 | +EVIDENCE: scratchpad/s46.obu (146 B, sha256 a109adab4397...) | regenerated from the gate recipe, `cargo test -p ec-av1 --lib filter_intra_on_a_horz_vert_strip` before/after the `of_tu` change | 2242 mismatching luma samples -> 0, test FAILED -> ok | ||