From 094999a256728dc9e3d30a43e8f7cbc8488682e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 2 Sep 2026 04:07:28 +0300 Subject: [PATCH] docs(palette2): r11 full-suite totals -- 306 passed / 1 failed / 26 ignored, the seed-46 gate is the only red r10's inherited nz_map_ctx_offset_tables_match_the_rect_rule failure is gone (main deleted the stale test; the merge took the deletion). --- lanes/palette2-r11.report.md | 33 +++++++++++------ lanes/palette2-r12.report.md | 72 ++++++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+), 11 deletions(-) create mode 100644 lanes/palette2-r12.report.md diff --git a/lanes/palette2-r11.report.md b/lanes/palette2-r11.report.md index 1ed437e6..b47b9de6 100644 --- a/lanes/palette2-r11.report.md +++ b/lanes/palette2-r11.report.md @@ -88,14 +88,25 @@ EVIDENCE: scratchpad/s46.obu (146 B, sha256 a109adab4397...) + aomstep.log/ourst 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 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 -## STEP 3 -- suite status at the turn cap -`systemd-run --user --unit=palette2-suite-r11-1788310477` (full `cargo test -p ec-av1 --lib --- --test-threads=1`, log `$HOME/.cache/palette2-suite-r11.log`) was still RUNNING when this -round hit its tool cap -- no `test result` line yet, so NO suite totals are claimed for r11. -The three tests run by name on the merged tree before it started: -`refusal_inventory` (3 tests) and `gate_coverage` (7 tests) PASS; -`a_real_aomenc_stream_with_filter_intra_on_a_horz_vert_strip_decodes_pixel_exact` FAILS, -same message as r10 (seed 46, first luma mismatch (188,62) ours=116 ffmpeg=115, 2242 samples, -bbox x135..191 y62..127). -`deferred: full-suite totals -- run was mid-flight at the cap -- read -$HOME/.cache/palette2-suite-r11.log (unit palette2-suite-r11-1788310477) at the start of r12`. +## STEP 3 -- full suite on the merged tree +``` +systemd-run --user --unit=palette2-suite-r11-1788310477 -p MemoryMax=10G --same-dir \ + bash -lc 'EC_NOMEMGUARD=1 EC_AV1_REQUIRE_AOMENC=1 CARGO_TARGET_DIR=$HOME/.cache/cargo-target-palette2 \ + nice -n 10 cargo test -p ec-av1 --lib -j3 -- --test-threads=1 \ + > $HOME/.cache/palette2-suite-r11.log 2>&1' +``` +-> **306 passed; 1 failed; 26 ignored** (735.05s). r10 was 294/2/27. +The ONE failure is this lane's known red gate, +`stream::tests::a_real_aomenc_stream_with_filter_intra_on_a_horz_vert_strip_decodes_pixel_exact` +(seed 46, message unchanged). r10's second failure, +`decode::tests::nz_map_ctx_offset_tables_match_the_rect_rule`, is gone: main deleted that +stale test and the merge took the deletion. Both palette gates, `filter_intra_*`, +`split_transform_*`, `superblock_level_*`, the tiny sweep, `tx_select`, `refusal_inventory`, +`gate_coverage` and `base_ctx_rect_offsets_match_the_transcribed_tables_over_the_whole_domain` +all pass inside that run. + +`fix-now: r12 -- the lane does not merge into main until seed 46 is pixel-exact (see STEP 2 +for the localization; it is a reconstruction defect behind the refusal this lane lifted, not +an entropy or palette defect).` + +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 diff --git a/lanes/palette2-r12.report.md b/lanes/palette2-r12.report.md new file mode 100644 index 00000000..84df7238 --- /dev/null +++ b/lanes/palette2-r12.report.md @@ -0,0 +1,72 @@ +# lane-palette2 r12 -- root cause of seed 46: a transform unit inside a block used the standalone-block reach tables + +VERDICT: GREEN on the defect. Merge with main `4a29b4e` committed (`ed07bdc`), +seed-46 gate RED -> GREEN (`e8cc1c2`), full-suite totals below. + +## STEP 1 -- merge main 4a29b4e (commit ed07bdc) +`git merge --no-commit --no-ff main` -> 5 conflicts, all in `decode.rs` +(`refusal_inventory.rs`/`stream.rs`/`cdf.rs` auto-merged clean). +All five are the same shape: main's sub8merge mi-granular neighbour maps +(`modes_above_left`, `record_mode_mi`, `record_uv_mode_mi`) against the lane's +palette reads/refusals/stamps in `decode_block_rect` and `decode_block_rect64`. +Resolution: BOTH sides at every hunk -- main's `modes_above_left(r, c)` replaces +the lane's `above_mode[c]`/`left_mode[r]` cell reads (that is exactly the +mi-granular fix), the lane's palette ctx/cache + refusals + neighbour stamps +kept, main's `EC_AV1_RECTX_TRACE` print kept. +`refusal_inventory` 3/3 and `gate_coverage` 9/9 green on the merged tree. + +## STEP 2 -- seed 46 root cause (commit e8cc1c2) +Premise re-measured, not inherited: regenerated `s46.obu` from the gate recipe +(seed 46 gradients, sha256 `a109adab4397...`, 146 B, same hash as r11) and +re-ran the gate on the merged tree -- still RED, same 2242 samples. + +r11 had ruled out entropy, the loop filter, palette and filter intra, and had +verified block-level `has_bottom_left` by hand. What it could not see is that +the block is NOT predicted as one 16x16: added an `EC_PRED` rung to the oracle +(`~/.cache/aom-oracle/src/av1/common/reconintra.c`, printing +`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`) +and aomdec reports the TL 16x16 as FOUR 8x8 luma TUs: + + 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 + EC_PRED mi_row=16 mi_col=32 plane=0 row_off=0 col_off=2 ... n_bl=0 + EC_PRED mi_row=16 mi_col=32 plane=0 row_off=2 col_off=0 ... n_bl=8 + EC_PRED mi_row=16 mi_col=32 plane=0 row_off=2 col_off=2 ... n_bl=0 + +`n_bl=0` for both `col_off > 0` units: libaom's `has_bottom_left` returns 0 +outright there. Our `decode_block` multi-TU branch built the unit's reach with +`Reach::of(logical_tx, tu_px, tu_py, ..)` -- the STANDALONE-BLOCK tables at the +unit's position (with `VERT_AB_PARTITION` set, `has_bl_vert_8x8` bit 1 = 1), so +the top-right 8x8 unit read 8 bottom-left samples libaom never gives it. That +is the 25-pixel diagonal wedge at rows 68..71 x136..143 (D203 = zone 3, reads +down-left), which then propagated across the last superblock. + +FIX: `Reach::of_tu(bw, bh, col_off, row_off, tx, block_reach)` in `encode.rs` +(the TU branches of both libaom functions, one place), used at all three +per-TU sites: +- `decode.rs` `decode_block` multi-TU branch (the defect), +- `decode.rs` `decode_leaf8`'s 2x2 grid of 4x4 TUs (same shape, same fix), +- `decode.rs` `decode_rect_split` (had the rule inline since lane-rectsplit r1; + now shares it -- one transcription, not three). +CLASS SWEEP: every other `Reach::of(...)` in `decode.rs` is a whole block or a +whole chroma block (4x4 leaf, 8x8 chroma group), not a unit inside one -- those +are correct and untouched. + +## Files changed +- `crates/ec-av1/src/encode.rs` -- `Reach::of_tu` + `Debug` on `Reach`; new test + `of_tu_matches_libaom_has_top_right_and_has_bottom_left_per_unit`. +- `crates/ec-av1/src/decode.rs` -- three per-TU reach sites through `of_tu`; + merge resolution in `decode_block_rect`/`decode_block_rect64`. +- `crates/ec-av1/src/refusal_inventory.rs` -- merge (auto). + +## Gates +- `a_real_aomenc_stream_with_filter_intra_on_a_horz_vert_strip_decodes_pixel_exact` + (seed 46 is the regression pin): `cargo test -p ec-av1 --lib filter_intra_on_a_horz_vert_strip` + -> `ok. 1 passed` (was FAILED with 2242 mismatching samples). +- `encode::tests::of_tu_matches_libaom_has_top_right_and_has_bottom_left_per_unit`: + enumerates 10 block shapes x tx in {4,8,16,32} x every (row_off, col_off) x both + block-level answers against an MI-unit transcription of libaom's + `has_top_right`/`has_bottom_left` -> ok. + +## EVIDENCE +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 +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