R2 report -- root cause was the no-CFL uv_mode alphabet, rect-side gate pinned, suite 385/0
Browse files at this commitad2dcf6afcbe691fe204b3aefe59db01439ac9d3Parent: 732ea3b- docs
- r2 report -- root cause was the no-CFL uv_mode alphabet, rect-side gate pinned, suite 385/0
1 changed file +73 -0
- lanes/mc64-r2.report.md +73 -0
lanes/mc64-r2.report.mdadded+73 -0
| @@ -0,0 +1,73 @@ | |||
| 1 | +# lane-mc64 r2 -- the frame-2 64x64 intra-in-inter drift was the no-CFL uv_mode alphabet (fixed by the merge) | ||
| 2 | + | ||
| 3 | +## Verdict: GREEN. No decoder line of mine; the merge fixed it, and the round pins it. | ||
| 4 | + | ||
| 5 | +Tip `5bfb38b` on `lane-mc64` (base main `727f29a`, merged `lane-sqdrift` `7d498c0` at `0a2269b`). | ||
| 6 | + | ||
| 7 | +## 1. What the defect was | ||
| 8 | + | ||
| 9 | +Charter defect (r1 handoff): `crates/ec-av1/fixtures/av1_192x128_8bit_intra64_in_inter.obu`, | ||
| 10 | +decode-order frame 2, mi(16,32), 64x64 `PARTITION_NONE` INTRA block inside an INTER frame -- | ||
| 11 | +3720/4096 luma samples wrong (-12..+9), chroma bit-exact, decode then dying at frame 3 on | ||
| 12 | +lane-intra64split's "a split intra strip whose transform unit is 64x32" refusal. | ||
| 13 | + | ||
| 14 | +None of the six charter suspects (tx_depth granularity, 64x64 edge availability, edge filter | ||
| 15 | +with inter neighbours, TX_64X64 coded corner, palette-at-64, delta_q) is the cause. The cause | ||
| 16 | +is the one lane-sbrect10 found (`9f1f108`) and lane-sqdrift confirmed by ablation (`7d498c0`): | ||
| 17 | +libaom `is_cfl_allowed` (`blockd.h`, spec 5.11.5: `block_size_wide[bsize] <= 32 && | ||
| 18 | +block_size_high[bsize] <= 32`) excludes a 64-axis block from CFL, so its `uv_mode` comes off | ||
| 19 | +the 13-symbol `uv_mode_no_cfl` alphabet. We read the 14-symbol CFL one -- same `DC_PRED` | ||
| 20 | +value, different interval narrowing (class `wrong-alphabet-same-value`). The luma-only, | ||
| 21 | +chroma-exact signature that pointed r1 at the 64-length luma transform is a red herring: the | ||
| 22 | +desynced tail happened to leave chroma intact on this frame, and the frame-3 refusal was a | ||
| 23 | +phantom of our own desync (class `refusal-from-own-desync`). | ||
| 24 | + | ||
| 25 | +`decode.rs:6270` and `decode.rs:18781` (`cfl_allowed = bw.max(bh) <= 32`) arrive with the | ||
| 26 | +merge; the merge conflicts I resolved were in the per-frame dump index (kept r1's shared | ||
| 27 | +`stage_dump_idx()`) and two test blocks appended at the same point (both kept). | ||
| 28 | + | ||
| 29 | +## 2. Measurement, on the merged tree, same fixture, same command as r1 | ||
| 30 | + | ||
| 31 | +EVIDENCE: /home/user/.cache/mc64-tmp/R2.{ref,our}.f0..f5 | `bash ~/.cache/mc64-tmp/cmp.sh crates/ec-av1/fixtures/av1_192x128_8bit_intra64_in_inter.obu R2` under `systemd-run --user --scope -q -p MemoryMax=6G` (instrumented aomdec `EC_AV1_PREFILT_DUMP` vs our `decode_probe`) | f0..f5 all `0` differing bytes; probe reports `OK: 6 frames decoded, 192x128` (r1: f2 = 3720 bytes differing, decode stopped at f3) | ||
| 32 | + | ||
| 33 | +## 3. The gate (new) | ||
| 34 | + | ||
| 35 | +`crates/ec-av1/src/stream.rs:7400` | ||
| 36 | +`a_pinned_rect_stream_with_a_64x64_intra_block_in_an_inter_frame_decodes_pixel_exact` | ||
| 37 | + | ||
| 38 | +The RECT-ON twin of sqdrift's square-only gate (which the merge brings in and which is | ||
| 39 | +rect-OFF by construction). The fixture is pinned rather than regenerated because its recipe | ||
| 40 | +is not reproducible (r1 measured: re-encoding the same y4m gives 19003 bytes md5 | ||
| 41 | +`278be003743daed5ea116cd41056537a`, not the fixture's `add55f625b6302c523455bb8662b19f5`; | ||
| 42 | +class `seeded-fixture-not-reproducible`). It asserts all 6 decode-order frames byte-exact | ||
| 43 | +against the oracle through the existing `decode_all_frames_vs_oracle` helper (hidden frames | ||
| 44 | +included, no SKIP on mismatch or decode error) and `nocfl_uv_mode_hits() > 0` as the witness | ||
| 45 | +that the 64-axis no-CFL narrowing fired. `have_aomenc()` under `EC_AV1_REQUIRE_AOMENC=1` | ||
| 46 | +fails instead of skipping. | ||
| 47 | + | ||
| 48 | +EVIDENCE: `cargo test -p ec-av1 --lib a_pinned_rect_stream_with_a_64x64` | run on the merged tree | `test result: ok. 1 passed; 0 failed` | ||
| 49 | + | ||
| 50 | +Non-vacuity, proved this round, not remembered: | ||
| 51 | + | ||
| 52 | +EVIDENCE: ablation `decode.rs:18781 let cfl_allowed = true;` rebuilt, test re-run, line reverted (`git diff --stat` after revert = stream.rs only) | same command | `test result: FAILED. 0 passed; 1 failed` (panic at stream.rs:2047, the oracle frame compare) | ||
| 53 | + | ||
| 54 | +## 4. Refusals | ||
| 55 | + | ||
| 56 | +None lifted. The frame-3 "split intra strip whose transform unit is 64x32" refusal this | ||
| 57 | +stream used to hit was a phantom of the desync and is simply not reached now; it remains a | ||
| 58 | +real ceiling for other streams, so `refusal_inventory.rs` is untouched. `refusal_inventory` | ||
| 59 | ++ `gate_coverage` tests green. | ||
| 60 | + | ||
| 61 | +## 5. Suite | ||
| 62 | + | ||
| 63 | +`$HOME/.cache/mc64-suite-r2.log` (unit `mc64-suite-r2-1788332399.service`): `test result: ok. 385 passed; 0 failed; 33 ignored; 0 measured; 0 filtered out; finished in 1152.96s` | ||
| 64 | + | ||
| 65 | +r1's unit `mc64-suite-1788331999.service` was still running at r2 start (186 ok, 0 FAILED, | ||
| 66 | +`$HOME/.cache/mc64-suite-r1.log`) and was stopped -- one suite per target dir. | ||
| 67 | + | ||
| 68 | +## 6. Residue | ||
| 69 | + | ||
| 70 | +- accepted: no new decoder code this round; the lane's defect was fixed upstream in | ||
| 71 | + lane-sqdrift/lane-sbrect10 and is now pinned from the rect side too. | ||
| 72 | +- deferred(another lane owns it): the "split intra strip whose transform unit is 64x32" | ||
| 73 | + refusal (lane-intra64split) -- unblocked by that lane's 64x32 TU work, not by this fixture. | ||