Merge branch 'lane-mc64' (2be1f92): pinned 192x128 stream with a 64x64 intra block in an inter frame
Browse files at this commit8 changed files +260 -1
- crates/ec-av1/fixtures/av1_192x128_8bit_intra64_in_inter.obu +0 -0
- crates/ec-av1/src/decode.rs +14 -1
- crates/ec-av1/src/mc.rs +8 -0
- crates/ec-av1/src/stream.rs +42 -0
- crates/ec-av1/src/warp.rs +3 -0
- lanes/mc64-r1.handoff.md +29 -0
- lanes/mc64-r1.report.md +91 -0
- lanes/mc64-r2.report.md +73 -0
crates/ec-av1/fixtures/av1_192x128_8bit_intra64_in_inter.obuadded+0 -0
Binary file changed
crates/ec-av1/src/decode.rsmodified+14 -1
| @@ -9566,6 +9566,15 @@ fn cfl_scaled(alpha_q3: i32, ac_q3: i32) -> i32 { | ||
| 9566 | 9566 | /// lane-hgkf r2: 16-bit cropped stage dump, the high-bitdepth twin of |
| 9567 | 9567 | /// [`dump_stage`] (whose `as u8` truncation hides |delta| <= 2 defects) -- |
| 9568 | 9568 | /// matches aomdec's own `ec_dump16` rung byte for byte (crop dims, u16 LE). |
| 9569 | +/// lane-mc64 r1: the decode-order index the stage dumps below key their file | |
| 9570 | +/// name on. `PREFILT_PICTURE_IDX` is bumped once per frame just BEFORE the | |
| 9571 | +/// deblock/CDEF stages run, so the frame being dumped here is `idx - 1` -- | |
| 9572 | +/// without this every frame overwrote `.f0` and a per-frame bisection silently | |
| 9573 | +/// compared the LAST decoded frame (ledger, class stale-output-faked-measurement). | |
| 9574 | +fn stage_dump_idx() -> usize { | |
| 9575 | + PREFILT_PICTURE_IDX.load(std::sync::atomic::Ordering::SeqCst).saturating_sub(1) | |
| 9576 | +} | |
| 9577 | + | |
| 9569 | 9578 | fn dump_stage16(var: &str, y: &PlaneBuf, u: &PlaneBuf, v: &PlaneBuf, fw: usize, fh: usize) { |
| 9570 | 9579 | use std::io::Write; |
| 9571 | 9580 | // lane-sbrect10 r2 / lane-cdef r1 (one shared helper): index the dump by |
| @@ -17569,6 +17578,9 @@ fn decode_inter_block( | ||
| 17569 | 17578 | } |
| 17570 | 17579 | _ => (write_w / 2, write_h / 2), |
| 17571 | 17580 | }; |
| 17581 | + if std::env::var_os("EC_MC_TRACE").is_some() { | |
| 17582 | + eprintln!("EC_IB px={px} py={py} side={side} w={write_w} h={write_h}"); | |
| 17583 | + } | |
| 17572 | 17584 | |
| 17573 | 17585 | if std::env::var_os("EC_AV1_TELL").is_some() { |
| 17574 | 17586 | eprintln!( |
| @@ -17626,9 +17638,10 @@ fn decode_inter_block( | ||
| 17626 | 17638 | let is_inter = skip_mode || dec.symbol(&mut cdfs.intra_inter[ii_ctx]) == 1; |
| 17627 | 17639 | if std::env::var_os("EC_TRACE_MODE").is_some() { |
| 17628 | 17640 | eprintln!( |
| 17629 | - "EC_MODE mi_row={} mi_col={} rng={}", | |
| 17641 | + "EC_MODE mi_row={} mi_col={} is_inter={} skip={skip} rng={}", | |
| 17630 | 17642 | rmi, |
| 17631 | 17643 | cmi, |
| 17644 | + is_inter as u8, | |
| 17632 | 17645 | dec.debug_state().0 |
| 17633 | 17646 | ); |
| 17634 | 17647 | } |
crates/ec-av1/src/mc.rsmodified+8 -0
| @@ -375,6 +375,11 @@ pub fn predict_with_filters_kern( | ||
| 375 | 375 | let xfrac = x_q4.rem_euclid(16) as usize; |
| 376 | 376 | let y0 = y_q4.div_euclid(16); |
| 377 | 377 | let yfrac = y_q4.rem_euclid(16) as usize; |
| 378 | + if std::env::var_os("EC_MC_TRACE").is_some() && block_w >= 4 { | |
| 379 | + eprintln!( | |
| 380 | + "EC_MC_CALL x_q4={x_q4} y_q4={y_q4} w={block_w} h={block_h} xfrac={xfrac} yfrac={yfrac} hk={h_kind:?} vk={v_kind:?} tw={true_width} th={true_height} stride={stride}" | |
| 381 | + ); | |
| 382 | + } | |
| 378 | 383 | |
| 379 | 384 | // Whole-pel fast path: `SUBPEL_FILTERS[0]` is the identity tap (`128` at |
| 380 | 385 | // its centre, everything else `0`), and both rounding shifts are exactly |
| @@ -769,6 +774,9 @@ pub fn predict_compound_intermediate_kern( | ||
| 769 | 774 | |
| 770 | 775 | let y0 = y_q4.div_euclid(16); |
| 771 | 776 | let yfrac = y_q4.rem_euclid(16) as usize; |
| 777 | + if std::env::var_os("EC_MC_TRACE").is_some() { | |
| 778 | + eprintln!("EC_MC_COMP x_q4={x_q4} y_q4={y_q4} w={block_w} h={block_h} hk={h_kind:?} vk={v_kind:?}"); | |
| 779 | + } | |
| 772 | 780 | |
| 773 | 781 | let (v_wide, v_narrow) = v_kind.tables(); |
| 774 | 782 | note_narrow_kern(block_w, block_h, kern_w, kern_h); |
crates/ec-av1/src/stream.rsmodified+42 -0
| @@ -8214,6 +8214,48 @@ mod tests { | ||
| 8214 | 8214 | } |
| 8215 | 8215 | } |
| 8216 | 8216 | |
| 8217 | + /// lane-mc64 r2: the RECT-ON twin of the square-only gate above, pinned | |
| 8218 | + /// as a stream fixture because its aomenc recipe is not reproducible | |
| 8219 | + /// (the r2 recipe re-encoded to a different file, measured md5 | |
| 8220 | + /// `278be00...` vs the fixture's `add55f6...`; class | |
| 8221 | + /// `seeded-fixture-not-reproducible`). | |
| 8222 | + /// | |
| 8223 | + /// `crates/ec-av1/fixtures/av1_192x128_8bit_intra64_in_inter.obu` | |
| 8224 | + /// (sha256 `e4cff46cb1700527c68efc866db27a2835705e949d646f73f0c9df577d594bd6`) | |
| 8225 | + /// carries a 64x64 `PARTITION_NONE` INTRA block inside an INTER frame at | |
| 8226 | + /// decode-order frame 2, mi(16,32), in a stream whose OTHER superblocks | |
| 8227 | + /// are rect-partitioned -- so the 64-axis `is_cfl_allowed` narrowing | |
| 8228 | + /// (`blockd.h`: `wide <= 32 && high <= 32`) has to hold on the intra | |
| 8229 | + /// arm that the rect recipe reaches, not only on the whole-superblock | |
| 8230 | + /// one. Before lane-sbrect10's fix this frame reconstructed with 3720 | |
| 8231 | + /// wrong luma samples (delta -12..+9, chroma bit-exact) and the decode | |
| 8232 | + /// then died at frame 3 on a phantom refusal of its own desync (class | |
| 8233 | + /// `refusal-from-own-desync`); all 6 decode-order frames are byte-exact | |
| 8234 | + /// against the oracle now. | |
| 8235 | + #[test] | |
| 8236 | + fn a_pinned_rect_stream_with_a_64x64_intra_block_in_an_inter_frame_decodes_pixel_exact() { | |
| 8237 | + const NAME: &str = | |
| 8238 | + "a_pinned_rect_stream_with_a_64x64_intra_block_in_an_inter_frame_decodes_pixel_exact"; | |
| 8239 | + let _gate_lock = lock_gate_counters(); | |
| 8240 | + if !have_aomenc() { | |
| 8241 | + eprintln!("SKIP {NAME}: no aomenc/aomdec oracle at {}", aomenc_path().display()); | |
| 8242 | + return; | |
| 8243 | + } | |
| 8244 | + let path = std::path::Path::new(env!("CARGO_MANIFEST_DIR")) | |
| 8245 | + .join("fixtures/av1_192x128_8bit_intra64_in_inter.obu"); | |
| 8246 | + let stream = std::fs::read(&path) | |
| 8247 | + .unwrap_or_else(|e| panic!("{NAME}: reading {}: {e}", path.display())); | |
| 8248 | + let before = crate::decode::nocfl_uv_mode_hits(); | |
| 8249 | + let (frames, hidden) = decode_all_frames_vs_oracle(&stream, NAME); | |
| 8250 | + let hits = crate::decode::nocfl_uv_mode_hits() - before; | |
| 8251 | + assert_eq!(frames, 6, "{NAME}: expected 6 decode-order frames ({hidden} hidden)"); | |
| 8252 | + assert!( | |
| 8253 | + hits > 0, | |
| 8254 | + "{NAME}: no 64-axis intra block read the no-CFL uv_mode alphabet -- the fixture no \ | |
| 8255 | + longer carries the shape this test gates" | |
| 8256 | + ); | |
| 8257 | + } | |
| 8258 | + | |
| 8217 | 8259 | /// lane-inter4 r2: the 32x32-level inter `PARTITION_HORZ`/`PARTITION_VERT` |
| 8218 | 8260 | /// strips (32x16 / 16x32) carrying a REAL residual -- the capability r1 |
| 8219 | 8261 | /// found missing ("a non-skip rectangular (HORZ/VERT/HORZ_B) strip needs |
crates/ec-av1/src/warp.rsmodified+3 -0
| @@ -444,6 +444,9 @@ pub fn warp_affine( | ||
| 444 | 444 | subsampling_x: i32, |
| 445 | 445 | subsampling_y: i32, |
| 446 | 446 | ) { |
| 447 | + if std::env::var_os("EC_MC_TRACE").is_some() { | |
| 448 | + eprintln!("EC_MC_WARP x={p_col} y={p_row} w={p_width} h={p_height}"); | |
| 449 | + } | |
| 447 | 450 | let bd = i32::from(crate::decode::bit_depth()); |
| 448 | 451 | // `reduce_bits_vert`, non-compound: `2 * FILTER_BITS - round_0`. |
| 449 | 452 | let reduce_bits_vert = 2 * FILTER_BITS - REDUCE_BITS_HORIZ; |
lanes/mc64-r1.handoff.mdadded+29 -0
| @@ -0,0 +1,29 @@ | ||
| 1 | +# lane-mc64 r1 handoff | |
| 2 | + | |
| 3 | +STREAM: `crates/ec-av1/fixtures/av1_192x128_8bit_intra64_in_inter.obu` | |
| 4 | +(md5 add55f625b6302c523455bb8662b19f5, sha256 e4cff46cb1700527c68efc866db27a2835705e949d646f73f0c9df577d594bd6). | |
| 5 | +The r2 aomenc recipe does NOT regenerate it (measured: 19003 bytes md5 278be003743daed5ea116cd41056537a). Use the fixture. | |
| 6 | + | |
| 7 | +DEFECT, restated correctly: | |
| 8 | +decode-order frame 2, superblock at px(128,64) = mi(16,32), `EC_PART_VAL bsize=12 value=0` | |
| 9 | +(PARTITION_NONE 64x64), **INTRA block in an inter frame** (aomdec prints no EC_MODE/EC_IMODE | |
| 10 | +for it because `read_intra_block_mode_info` is uninstrumented; ours prints | |
| 11 | +`EC_MODE ... is_inter=0 skip=false`). Pre-deblock luma differs in exactly that 64x64 | |
| 12 | +(3720/4096 samples, delta -12..+9), chroma bit-exact. Frames 0 and 1 exact. | |
| 13 | +The charter's `mode=16 ref0=4 mv0=(-340,-116)` belongs to FRAME 1's mi(16,32), which is | |
| 14 | +PARTITION_SPLIT there and decodes exactly. Do not chase MC: `EC_MC_TRACE=1` shows zero | |
| 15 | +MC/warp/compound calls for this block. | |
| 16 | + | |
| 17 | +REPRO (both under systemd-run --user --scope -q -p MemoryMax=6G): | |
| 18 | + EC_AV1_PREFILT_DUMP=<dir>/ref ~/.cache/aom-oracle/build/aomdec --rawvideo -o /dev/null <obu> | |
| 19 | + EC_NOMEMGUARD=1 EC_AV1_PREFILT_DUMP=<dir>/our <target>/debug/examples/decode_probe <obu> | |
| 20 | + cmp -l <dir>/ref.f2 <dir>/our.f2 | wc -l # 3720 | |
| 21 | +Scratch scripts: ~/.cache/mc64-tmp/{cmp.sh,gen.sh,gen2.sh}. Decode stops at frame 3 with | |
| 22 | +lane-intra64split's "a split intra strip whose transform unit is 64x32" refusal — unrelated. | |
| 23 | + | |
| 24 | +NEXT: luma-only + chroma-exact on a 64x64 intra block points at the 64-length luma transform. | |
| 25 | +Bisect in this order: (1) TX_64X64 coefficient region (`av1_get_adjusted_tx_size` -> only the | |
| 26 | +top-left 32x32 is coded) and its eob domain; (2) the 64-point inverse (`transform.rs:276` | |
| 27 | +`hadamard` tail, `row_shift_wh(64,64) == 2`); (3) the 64x64 intra prediction itself. | |
| 28 | +`transform.rs:1412 a_64x64_transform_keeps_what_fits_in_its_coded_quarter` is the existing | |
| 29 | +64x64 self-check — it passes, so whatever is wrong is outside its span. |
lanes/mc64-r1.report.mdadded+91 -0
| @@ -0,0 +1,91 @@ | ||
| 1 | +# lane-mc64 r1 — RED (charter premise disproved; real defect re-localised) | |
| 2 | + | |
| 3 | +## Verdict | |
| 4 | +RED. The charter's defect description is wrong in its central fact: the | |
| 5 | +mismatching block is **not** an inter NEWMV block off GOLDEN with a half-pel | |
| 6 | +mv. It is a **64x64 INTRA block inside an inter frame** (no motion | |
| 7 | +compensation happens for it in either decoder), so every one of the charter's | |
| 8 | +six candidate causes (a)..(f) is about a code path this block never enters. | |
| 9 | +No fix shipped; the lane is re-pointed, with the measurement chain below. | |
| 10 | + | |
| 11 | +## Premise re-measurement (all commands run this round) | |
| 12 | +Stream pinned as `crates/ec-av1/fixtures/av1_192x128_8bit_intra64_in_inter.obu` | |
| 13 | +(byte-identical to the r2 scratch `s48.obu`, md5 `add55f625b6302c523455bb8662b19f5`, | |
| 14 | +sha256 `e4cff46cb1700527c68efc866db27a2835705e949d646f73f0c9df577d594bd6`). | |
| 15 | + | |
| 16 | +The r2 recipe **does not regenerate it**: re-running the gate's exact aomenc | |
| 17 | +argv (attempt 6 => seed 48, 192x128, `--cpu-used=2 --cq-level=40`, mandelbrot | |
| 18 | +`start_scale=4.64`) on the identical y4m (md5 `6de0c8c6c3ff90715b476d966c622932`, | |
| 19 | +hashed twice) yields a 19003-byte stream md5 `278be003743daed5ea116cd41056537a`, | |
| 20 | +not the 26321-byte `s48.obu`. Both file-output and the gate's stdin/stdout form | |
| 21 | +give the same 19003-byte result. So `s48.obu` came from some *other* r2 scratch | |
| 22 | +invocation; the .obu is therefore pinned as a fixture instead of as a recipe. | |
| 23 | + | |
| 24 | +EVIDENCE: ~/.cache/mc64-tmp/{gen.sh,gen2.sh,g48.obu,g48b.obu,s48.obu} | ffmpeg lavfi -> aomenc twice, file and pipe forms | md5 278be00... twice vs pinned add55f6..., sizes 19003 vs 26321 | |
| 25 | + | |
| 26 | +Mismatch itself reproduces exactly as reported: | |
| 27 | +EVIDENCE: ~/.cache/mc64-tmp/{A.ref.f0..f2,A.our.f0..f2} | aomdec EC_AV1_PREFILT_DUMP vs our EC_AV1_PREFILT_DUMP on the pinned obu | frame 0 diff 0, frame 1 diff 0, frame 2 luma diff 3720 confined to x 128..191 y 64..127, chroma diff 0 | |
| 28 | + | |
| 29 | +## ROOT LOCALISATION — the block is intra, not inter | |
| 30 | +1. `aomdec EC_TRACE=1 EC_TRACE_MODE=1` interleaved: the frame-2 superblock at | |
| 31 | + mi(16,32) reads `EC_PART_VAL mi_row=16 mi_col=32 bsize=12 value=0` | |
| 32 | + (PARTITION_NONE, 64x64) and then **no `EC_MODE` and no `EC_IMODE` line at | |
| 33 | + all** — the next trace line is the following frame's first `EC_PART` | |
| 34 | + (`tell=1`). | |
| 35 | +2. Oracle source, `av1/decoder/decodemv.c:1698-1710`: `read_inter_frame_mode_info` | |
| 36 | + prints `EC_MODE` only from `read_inter_block_mode_info`; the | |
| 37 | + `read_intra_block_mode_info` arm (intra block in an inter frame) is | |
| 38 | + **uninstrumented**. Silence there means `inter_block == 0`, not "no block". | |
| 39 | +3. Our decoder agrees: `EC_MODE mi_row=16 mi_col=32 is_inter=0 skip=false` | |
| 40 | + with `EC_IB px=128 py=64 side=64 w=64 h=64`, and **zero** MC / warp / | |
| 41 | + compound calls for it (`EC_MC_TRACE` instruments `mc::predict_with_filters`, | |
| 42 | + `mc::predict_compound_intermediate` and `warp::warp_affine`; 33 MC calls in | |
| 43 | + the whole decode, none at this block). | |
| 44 | +4. The charter's `mode=16 ref0=4 mv0=(-340,-116)` line is real but belongs to | |
| 45 | + **decode-order frame 1**, where mi(16,32) is `EC_PART_VAL bsize=12 value=3` | |
| 46 | + (SPLIT) into four 32x32 blocks. Frame 1 is pixel-exact for us. This is the | |
| 47 | + class `[[dump-not-call-unique]]` / `[[stale-output-faked-measurement]]` | |
| 48 | + again: a coordinate-keyed grep with no frame key picked the wrong call. | |
| 49 | + | |
| 50 | +EVIDENCE: ~/.cache/mc64-tmp/{aom_both.log,aom_part.log,mct4.log} | aomdec EC_TRACE+EC_TRACE_MODE and our EC_MC_TRACE on the pinned obu | frame-2 mi(16,32) = PARTITION_NONE 64x64 with no mode trace line; ours is_inter=0, 0 MC calls; frame-1 mi(16,32) = PARTITION_SPLIT, that is where mv=(-340,-116) lives | |
| 51 | + | |
| 52 | +## What the defect actually is (direction, not yet a fix) | |
| 53 | +A 64x64 **intra** block in an inter frame: luma wrong by -12..+9 over 3720 of | |
| 54 | +4096 samples, chroma (32x32, TX_32X32) bit-exact. Luma is the only plane with a | |
| 55 | +64-length transform, and `av1_get_adjusted_tx_size` codes only the top-left | |
| 56 | +32x32 of a TX_64X64. So the suspects are, in order: the TX_64X64 coefficient | |
| 57 | +region / eob domain, the 64-point inverse transform's row/col zeroing, and the | |
| 58 | +intra prediction of a 64x64 block. The error is structured, not a constant | |
| 59 | +offset, which argues residual over prediction — 376 of 4096 samples are equal, | |
| 60 | +so it is not a wholesale desync either. | |
| 61 | + | |
| 62 | +## What changed | |
| 63 | +* `crates/ec-av1/src/decode.rs` — `stage_dump_idx()`; `dump_stage`/`dump_stage16` | |
| 64 | + now key their file on the decode-order picture index instead of always | |
| 65 | + writing `.f0`. Before this, `EC_AV1_POSTDEBLOCK_DUMP`/`POSTCDEF_DUMP` compared | |
| 66 | + the LAST decoded frame no matter which frame you meant (the ledger records | |
| 67 | + this for the pre-8c6065e prefilt dump; the postdeblock/postcdef twins were | |
| 68 | + never fixed). This is a real instrument defect, fixed, not a workaround. | |
| 69 | +* `crates/ec-av1/src/decode.rs` — `EC_MC_TRACE` prints `EC_IB px py side w h` | |
| 70 | + at `decode_inter_block` entry; `EC_MODE` now carries `is_inter=` and `skip=`. | |
| 71 | +* `crates/ec-av1/src/mc.rs`, `crates/ec-av1/src/warp.rs` — `EC_MC_TRACE` prints | |
| 72 | + `EC_MC_CALL` / `EC_MC_COMP` / `EC_MC_WARP` with the q4 position, block size, | |
| 73 | + subpel fractions and resolved kernels. Placed BEFORE the whole-pel fast path | |
| 74 | + so a block that takes no MC call at all is visible as an absence. | |
| 75 | +* `crates/ec-av1/fixtures/av1_192x128_8bit_intra64_in_inter.obu` — the stream, | |
| 76 | + pinned (`git add -f`), because its recipe does not reproduce it. | |
| 77 | + | |
| 78 | +## Refusals | |
| 79 | +None lifted, none added. No gate added: a gate asserting a counter for a shape | |
| 80 | +whose cause is unidentified would be theatre, and the charter's counter | |
| 81 | +("64x64 NEWMV single-ref blocks with half-pel mvs") counts a population this | |
| 82 | +defect is not in. | |
| 83 | +deferred(root cause): the gate — needs the TX_64X64-vs-prediction split below. | |
| 84 | + | |
| 85 | +## Residue | |
| 86 | +* fix-now (r2): split prediction from residual for frame-2 mi(16,32) by | |
| 87 | + reconstructing the block with the residual forced to zero and comparing the | |
| 88 | + *shape* of the error; then bisect TX_64X64 (adjusted 32x32 coefficient | |
| 89 | + region, eob domain, `row_shift_wh(64,64)==2`, the 64-point `hadamard` tail at | |
| 90 | + `transform.rs:276`) against `EC_TRACE_COEFF` from the oracle. | |
| 91 | +* accepted: the r2 recipe is not reproducible; the .obu is a fixture now. |
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. |