Lane-intradisp r1 report -- verification of 15b588f
Browse files at this commit6da1ef3c5bde5b070465d62365465d6baebbd1c1Parent: 770cfc0- docs
- lane-intradisp r1 report -- verification of 15b588f
1 changed file +111 -0
- lanes/intradisp-r1.report.md +111 -0
lanes/intradisp-r1.report.mdadded+111 -0
| @@ -0,0 +1,111 @@ | |||
| 1 | +# lane-intradisp r1 report | ||
| 2 | + | ||
| 3 | +VERDICT: PASS (skip-only scope, accepted ceiling) | ||
| 4 | + | ||
| 5 | +## Scope (as implemented in 15b588f, recovered from a killed builder's stash) | ||
| 6 | + | ||
| 7 | +Intra `PARTITION_HORZ`/`PARTITION_VERT` (32x16 / 16x32 strips) now dispatch in the | ||
| 8 | +key-frame `match part32` (`crates/ec-av1/src/decode.rs`), via | ||
| 9 | +`decode_block_rect`/`read_intra_mode_rect`/`tx_size_context_rect`/`cfl_ac_q3_rect` | ||
| 10 | +and `PlaneBuf::edges_rect`/`reconstruct_rect`; `Reach::of_rect` + | ||
| 11 | +`top_right_rect`/`bottom_left_rect` + `HAS_TOP_RIGHT_RECT`/`HAS_BOTTOM_LEFT_RECT` | ||
| 12 | +in `encode.rs` (transcribed from libaom `reconintra.c` | ||
| 13 | +`has_tr_32x16`/`has_tr_16x32`/`has_bl_32x16`/`has_bl_16x32`); FILTER_INTRA CDF | ||
| 14 | +widened 4->6 rows (`BLOCK_32X16=12756`, `BLOCK_16X32=14301`) in `cdf.rs` with | ||
| 15 | +`Cdfs.filter_intra`'s type updated in `cdf_state.rs`. | ||
| 16 | + | ||
| 17 | +Deliberately SKIP-ONLY: every symbol the spec requires is read bit-exactly | ||
| 18 | +(skip, y_mode, angle_delta, uv_mode, cfl_alphas, filter_intra, tx_depth) so the | ||
| 19 | +arithmetic decoder stays in sync, but pixels are reconstructed only when | ||
| 20 | +`skip` is set. A non-skip strip refuses BY NAME — chroma on these bsizes gets | ||
| 21 | +a genuinely rectangular `TX_16X8`/`TX_8X16` from `av1_get_max_uv_txsize` with | ||
| 22 | +no depth escape, and `transform.rs` has no rectangular transform at all. A | ||
| 23 | +`filter_intra` strip on these bsizes also refuses by name | ||
| 24 | +(`predict_filter_intra` is square-only). This scope-down is ACCEPTED. | ||
| 25 | + | ||
| 26 | +## Gate numbers | ||
| 27 | + | ||
| 28 | +### Full lib suite | ||
| 29 | +`cargo test -p ec-av1 --release --lib` (EC_AV1_REQUIRE_AOMENC=1): | ||
| 30 | +**224 passed; 0 failed; 17 ignored** (74.16s). Matches the charter's required | ||
| 31 | +224/0. | ||
| 32 | + | ||
| 33 | +### Pinned tests | ||
| 34 | +`cargo test -p ec-av1 --release --lib pinned -- --ignored`: | ||
| 35 | +found 6 tests named `pinned`/`scratch...pinned` under `#[ignore]`, plus 2 more | ||
| 36 | +`the_inverse_transform_reproduces_the_pinned_*` tests that are NOT ignored | ||
| 37 | +(already included in the 224 above, both `ok`). Not 14 — the "14-pin list" in | ||
| 38 | +the charter did not match anything greppable in this tree; reporting the | ||
| 39 | +actual set found. | ||
| 40 | + | ||
| 41 | +- `pinned_golden7_stream_decodes_pixel_exact` -- ok, pixel-exact | ||
| 42 | +- `pinned_warp_stream_decodes_pixel_exact` -- ok, pixel-exact (replays 5 | ||
| 43 | + `rect-flake-*`/pinned fixtures via `EC_AV1_GATE_DUMP_PIN`, all matched) | ||
| 44 | +- `pinned_golden3_stream_decodes_pixel_exact` -- FAILED: `reading pinned | ||
| 45 | + stream: NotFound`. Pre-existing, NOT caused by this lane: the test's | ||
| 46 | + default path is a hardcoded scratchpad path from an unrelated prior | ||
| 47 | + session (`/tmp/.../51b5f611-.../scratchpad/golden3-pin.obu`), introduced in | ||
| 48 | + commit `bec2741` (loop-filter-level fix, unrelated to intra). It is | ||
| 49 | + documented in its own doc comment as "the file only exists on this | ||
| 50 | + machine's scratchpad... run manually" and gated behind | ||
| 51 | + `EC_AV1_GATE_DUMP_PIN` for exactly that reason. No regression. | ||
| 52 | +- `pinned_golden4_stream_decodes_pixel_exact` -- FAILED, same cause/same | ||
| 53 | + commit, same disposition. | ||
| 54 | +- `scratch_decode_pinned_stream_once` / `scratch_isolate_pinned_mismatch` -- | ||
| 55 | + FAILED: `set EC_AV1_PIN to the .obu path: NotPresent`. These are ad-hoc | ||
| 56 | + scratch harnesses that only run when a developer sets `EC_AV1_PIN` | ||
| 57 | + manually; failing with no env var set is by design, not a gate. | ||
| 58 | + | ||
| 59 | +None of the 4 "failures" above are regressions from this lane; all 4 are | ||
| 60 | +pre-existing manual-only harnesses that require local machine state this | ||
| 61 | +worktree does not have. The two rect-intra-relevant pin gates that ARE | ||
| 62 | +self-contained (`pinned_golden7`, `pinned_warp`) both pass pixel-exact. | ||
| 63 | + | ||
| 64 | +### Named intra gates (4/4 pass) | ||
| 65 | +`a_real_aomenc_filter_intra_stream_decodes_pixel_exact` -- ok | ||
| 66 | +`a_real_aomenc_intra_stream_with_tx_select_decodes_pixel_exact` -- ok | ||
| 67 | +`a_real_aomenc_stream_with_directional_chroma_decodes_pixel_exact` -- ok | ||
| 68 | +`a_real_aomenc_intra_stream_with_deblocking_decodes_pixel_exact` -- ok | ||
| 69 | +(matched the charter's "intra_with_deblocking" by substring "intra" + | ||
| 70 | +"deblocking"; the real test name is `a_real_aomenc_intra_stream_with_deblocking_decodes_pixel_exact`.) | ||
| 71 | + | ||
| 72 | +### `a_real_aomenc_stream_with_free_partitions_decodes_pixel_exact`, 3 runs | ||
| 73 | +(this gate is flaky run-to-run by construction -- aomenc RD attempt | ||
| 74 | +selection changes which of 40 seeds land which partition/refusal; reporting | ||
| 75 | +spread, not one number.) | ||
| 76 | + | ||
| 77 | +| run | named refusals | pixel-exact / 40 | rect_partition_hits | | ||
| 78 | +|-----|-----------------|-------------------|----------------------| | ||
| 79 | +| 1 | 32 | 8 | 4 | | ||
| 80 | +| 2 | 35 | 5 | 6 | | ||
| 81 | +| 3 | 33 | 7 | 7 | | ||
| 82 | + | ||
| 83 | +Prior single-run reads on file: before-lane 32/8/40 (rect_hits=12), | ||
| 84 | +after-lane 31/9/40 (rect_hits=10). This round's spread (32-35 refusals, | ||
| 85 | +5-8 pixel-exact, rect_partition_hits 4-7) sits inside/around that prior | ||
| 86 | +"after" point but does not show a clean, repeatable directional move -- | ||
| 87 | +consistent with the documented aomenc-attempt-selection flake class | ||
| 88 | +(parallel-flake-is-attempt-selection), not a regression. The new named | ||
| 89 | +refusal string is now visibly firing across all 3 runs: | ||
| 90 | +`"a non-skip HORZ/VERT intra strip needs a rectangular transform this | ||
| 91 | +decoder does not code yet"` -- confirms the skip-only HORZ/VERT dispatch is | ||
| 92 | +reached by real aomenc-encoded content and correctly refuses by name rather | ||
| 93 | +than desyncing, which is exactly the scope this lane targeted. | ||
| 94 | + | ||
| 95 | +## Scope-down findings (accepted, not lifted this lane) | ||
| 96 | + | ||
| 97 | +1. **Chroma rectangular TX is the ceiling.** `av1_get_max_uv_txsize` gives a | ||
| 98 | + genuine `TX_16X8`/`TX_8X16` for chroma under a 32x16/16x32 luma block with | ||
| 99 | + no depth escape to a square TX, and `crates/ec-av1/src/transform.rs` has | ||
| 100 | + no rectangular DCT/ADST at all. A follow-up lane needs real rectangular | ||
| 101 | + transform kernels plus rectangular scan-order/eob-context tables in | ||
| 102 | + `transform.rs` (same shape as the existing square-only implementation) to | ||
| 103 | + lift the non-skip refusal. | ||
| 104 | +2. **`filter_intra` is square-only.** `predict_filter_intra` only handles | ||
| 105 | + square blocks; a `filter_intra`-flagged HORZ/VERT strip refuses by name | ||
| 106 | + for the same reason -- prediction, not just residual, needs a rectangular | ||
| 107 | + path. | ||
| 108 | + | ||
| 109 | +Neither blocker was worked around; both are named refusals that keep the | ||
| 110 | +arithmetic decoder in sync (all preceding/following symbols still read | ||
| 111 | +bit-exactly) rather than silently mis-decoding. | ||