diff --git a/crates/ec-av1/fixtures/422_muchunk_compound_128root.obu b/crates/ec-av1/fixtures/422_muchunk_compound_128root.obu new file mode 100644 index 0000000000000000000000000000000000000000..eae785ad221ecea2ca26734581a5f6effd431cd4 GIT binary patch literal 895 zcmV-_1AzPz0165~0009w|L_0I2r~5p6aYK`006W9|A6pz+(D;V#L%S$H3$ps(y}G{ z@U>y1g+>nBQw>JF42r^O#L#ahk8HAhc%GO<;bT;N(x`GDNVz--jEUP+v@-qi97N%y zuX)}_aNU1SBDQSzpq$0OGv#H|>Cn0GMbC6pfFCS(%lB~-kHX@PrEjj2RJo$=E($be z7b|A8MG;p+`G*$vV$6cpTM*J_qg#J40Dl|lT^rFRrr)P4S+i4FLuUN7#KK@l_=9If z~{Z{uSl;AGm=1JED(jXVFuAFgZ%axmQ)O6$Jnlr-%p?B zbweP~V1V8b27l>SR51p}Z*BvY)cGt+kz>dFshTknd}YKY7!IY3T$XG~?2uvs4NEN{ z=dg0f6V^1qNzsCNpltb@9csTxx&gZ$hA!|9A_JBV z{FjbJ5E1|~$N?b&@E`yH0lnY=0I|RGkO1&@|D)($`n{HF&0004C007_s*+3Ei8Ud&h05T*p10n>#0E2x% z00CitfS>@pRB3wIcm|#9XX>;gy02}?%@a-%05TCW1Oy0}0E2!&00CeC0N?=B5&$w1 VG6et&5MYCTKmY+?002M$-5{MMpWFZd literal 0 HcmV?d00001 diff --git a/crates/ec-av1/fixtures/422_muchunk_intra_in_inter_128root.obu b/crates/ec-av1/fixtures/422_muchunk_intra_in_inter_128root.obu new file mode 100644 index 0000000000000000000000000000000000000000..08621636d7e094ff71b9d17ffc6b39037cb822c4 GIT binary patch literal 391 zcmWe);No&%U|=@?|Nj3O4x_n@0t|l`7?{o;XYhEFz1F&wFYj32v%qb$vvQM`obA8P z`NOh#gO=Un*=6g+R%RR2zhk<;*)5<+tKanGMfV*WicVg0|M`QXbIGH>ItIJkp6_D$ z`~O6^wZyrr#{^GjR9#sWDCwIk!0;n_+B(K+gZe3JJI;7FJD6Yd-aq97OUcn3n~moUX1pb2BV&t$`4OQH%oX0|y2M*&hrHtX(~f3`}iP zq@MCkpL1Dd8CrU>A}*i+F`$*dN4VPXG*+_3|(+J zdewp3s_lU;xfQ!ad~ck;u%UYAUUr+L*$qZA8cYuw7#QY)OmARhbzt}#KEX&)Z@IBg z#{3ONLI%u-7#JGeKp}L1fzg5ChL;e76ypjZ1|uN@HW$tYMugPW7O*G>hoAwY+n)xg WhD%q#qFfAO3J2LBq6`fTw;KRoqMUmG literal 0 HcmV?d00001 diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index 155a0c18..ae8a24af 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -36022,6 +36022,46 @@ thread_local! { pub(crate) static CHROMA_SPLIT_TX_HITS: std::cell::Cell = const { std::cell::Cell::new(0) }; } +thread_local! { + /// lane-av1muchunk422b: how many TX_32X32 chroma units the **compound** + /// `side > 64` mu-chunk walk allocated (`decode_inter_block`'s compound + /// arm, `mu_units(.., chroma_side * chroma_side)`). This is the walk + /// `lanes/av1muchunk422.report.md` called site 2 and could not reach at + /// 4:2:2; `CHROMA_SPLIT_TX_HITS` fires at all seventeen unit sites and + /// cannot attribute a bump to this arm. The single-reference twin (that + /// report's site 5) shares this exact source text, so the bump is routed + /// through `is_compound` and only this counter names site 2. + /// + /// Counted at the ALLOCATION, not at the `side > 64` guard: the arm's + /// lossless branch returns before the unit loop, so `W_intrabc.obu` + /// reaches the guard at ss (1,0) four times and allocates nothing -- a + /// guard-level counter would call that stream a witness of this walk. + pub(crate) static MU_CHUNK_COMPOUND_UNITS: std::cell::Cell = const { std::cell::Cell::new(0) }; +} + +thread_local! { + /// lane-av1muchunk422b: the intra-in-inter twin of + /// [`MU_CHUNK_COMPOUND_UNITS`] -- TX_32X32 chroma units allocated by the + /// intra-in-inter `side > 64` mu-chunk walk (site 8 of the same report). + /// Same allocation-vs-guard argument: `INTRA_128_IN_INTER_MU_CHROMA_HITS` + /// is bumped once per mu chunk BEFORE this arm's own lossless branch, so + /// it is not a witness of the per-unit walk, and `W_intrabc.obu` fires it + /// eight times at ss (1,0) with zero allocations. + pub(crate) static MU_CHUNK_INTRA_IN_INTER_UNITS: std::cell::Cell = const { std::cell::Cell::new(0) }; +} + +/// Current value of [`MU_CHUNK_COMPOUND_UNITS`], for a gate's before/after +/// delta. +pub fn mu_chunk_compound_units() -> usize { + MU_CHUNK_COMPOUND_UNITS.with(std::cell::Cell::get) +} + +/// Current value of [`MU_CHUNK_INTRA_IN_INTER_UNITS`], for a gate's +/// before/after delta. +pub fn mu_chunk_intra_in_inter_units() -> usize { + MU_CHUNK_INTRA_IN_INTER_UNITS.with(std::cell::Cell::get) +} + thread_local! { /// lane-av1h5: how many blocks had their leaf walk actually PERMUTED into /// libaom's chunk-major order by [`mu_chunk_order`] -- a block above 64 @@ -43944,6 +43984,16 @@ fn decode_inter_block( ); hit!(CHROMA_SPLIT_TX_HITS); mu_chroma = true; + // lane-av1muchunk422b: the allocation of this + // mu-chunk walk, counted per TX_32X32 UNIT. + // The compound and single-reference arms share + // this source text, so `is_compound` routes the + // bump: `MU_CHUNK_COMPOUND_UNITS` names site 2 + // and the single-reference twin (site 5) stays + // out of it. + if is_compound { + hit!(MU_CHUNK_COMPOUND_UNITS); + } let dst = mu_units( if plane_idx == 1 { &mut u_units @@ -45737,6 +45787,16 @@ fn decode_inter_block( ); hit!(CHROMA_SPLIT_TX_HITS); mu_chroma = true; + // lane-av1muchunk422b: the allocation of this + // mu-chunk walk, counted per TX_32X32 UNIT. + // The compound and single-reference arms share + // this source text, so `is_compound` routes the + // bump: `MU_CHUNK_COMPOUND_UNITS` names site 2 + // and the single-reference twin (site 5) stays + // out of it. + if is_compound { + hit!(MU_CHUNK_COMPOUND_UNITS); + } let dst = mu_units( if plane_idx == 1 { &mut u_units @@ -46751,6 +46811,9 @@ fn decode_inter_block( // libaom never selects (class // `override-slot-on-one-arm`). mu_chroma = true; + // lane-av1muchunk422b: the allocation of the intra-in-inter + // mu-chunk walk (site 8), per TX_32X32 unit. + hit!(MU_CHUNK_INTRA_IN_INTER_UNITS); let dst = mu_units( if plane_idx == 1 { &mut u_units diff --git a/crates/ec-av1/src/stream.rs b/crates/ec-av1/src/stream.rs index 753fcc70..42b06a45 100644 --- a/crates/ec-av1/src/stream.rs +++ b/crates/ec-av1/src/stream.rs @@ -42836,6 +42836,256 @@ exit 0 } } + /// lane-av1muchunk422b: read a pinned 4:2:2 128-root mu-chunk fixture, + /// asserting its byte length and FNV-1a64 -- a missing fixture is a + /// failure, not a skip. + fn read_pinned_muchunk_fixture(name: &str, len: usize, fnv: u64, gate: &str) -> Vec { + let path = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR")) + .join("fixtures") + .join(name); + let bytes = std::fs::read(&path).unwrap_or_else(|e| { + panic!( + "{gate}: pinned fixture {} is missing ({e}) -- the gate cannot run, which is a \ + failure, not a skip", + path.display() + ) + }); + assert_eq!(bytes.len(), len, "{gate}: {name} length moved"); + assert_eq!(fnv1a64(&bytes), fnv, "{gate}: {name} bytes moved"); + bytes + } + + /// lane-av1muchunk422b: `(use_128x128_superblock, ss_x, ss_y, mono_chrome)` + /// of an OBU stream's sequence header. Shape first: a stream that came back + /// 4:2:0 would leave the `side > 64` mu-chunk walk unexercised while every + /// counter assert below still passed. + fn obu_stream_shape(stream: &[u8]) -> Option<(bool, u8, u8, bool)> { + let mut parser = ec_av1_syntax::Av1Parser::new(); + let mut pos = 0usize; + while let Ok(obu) = parser.parse_obu(&stream[pos..]) { + pos += obu.total_size; + if pos >= stream.len() { + break; + } + } + parser.sequence_header().map(|q| { + ( + q.use_128x128_superblock, + q.color_config.subsampling_x, + q.color_config.subsampling_y, + q.color_config.mono_chrome, + ) + }) + } + + /// lane-av1muchunk422b: the **compound** `side > 64` mu-chunk walk -- + /// per-unit chroma allocation of `decode_inter_block`'s compound arm, site + /// 2 of `lanes/av1muchunk422.report.md`, which that lane's recipes all + /// missed (`part128 none=0` on a 384x256 frame). + /// + /// Reachability, shared with the intra-in-inter twin below: the streams + /// that reach this walk are 128-as-the-whole-frame (`--sb-size=128 + /// --min-partition-size=128 --max-partition-size=128`, PARTITION_NONE + /// forced; here `part128 none=7`) and LOSSY, which is load-bearing: each arm + /// has a lossless branch that returns before the unit loop, and + /// `W_intrabc.obu` reaches both guards at ss (1,0) allocating nothing. That + /// is why [`crate::decode::mu_chunk_compound_units`] counts at the + /// ALLOCATION and not at the guard; the counter-proof at the end of the + /// intra test pins that gap. The single-reference twin of site 2 (site 5) + /// shares this exact source text and is routed out of the counter by + /// `is_compound`. + /// + /// **7 of the 8 streams this lane generated DIVERGE from ffmpeg; only + /// `i6_grad128_iis` (the intra-in-inter fixture, pinned in the twin test + /// below) is byte-exact. This compound pin is therefore the COUNTER + /// WITNESS, not an exactness witness** -- it asserts the walk ran, and + /// nothing about pixels. The divergence on this tip is Y and U exact, V + /// differing on a fixed column band (2063/8192, 2138/8192, 2105/8192 and + /// 1988/8192 V samples on shown frames 1-4, first at V row 60 col 36), the + /// same shape on all four compound streams this lane produced, while the + /// committed 4:2:2 128-root SINGLE-reference stream (`422_sb128_3f.obu`) + /// and the committed compound-warp stream whose blocks are all <= 64 + /// (`422_residual_compound_warp_16f.obu`) both stay exact against the same + /// oracle -- so it tracks the 128-root COMPOUND path these counters name. + /// It is a NEW defect and fixing the walk is explicitly out of this lane's + /// charter. When a fix lane lands, add the oracle compare to this test; the + /// counter half already stops this fixture silently ceasing to reach the + /// walk it was pinned for. + /// + /// Recipe (byte-reproducible; whole aomenc argv): + /// ```text + /// ffmpeg -v error -f lavfi -i "testsrc2=size=128x128:rate=25" -t 0.24 \ + /// -pix_fmt yuv422p -f yuv4mpegpipe - > tsrc128.y4m + /// aomenc --codec=av1 --profile=2 --input-chroma-subsampling-x=1 \ + /// --input-chroma-subsampling-y=0 --passes=1 --end-usage=q --cq-level=62 \ + /// --cpu-used=0 --threads=1 --row-mt=0 --sb-size=128 \ + /// --min-partition-size=128 --max-partition-size=128 \ + /// --enable-rect-partitions=0 --enable-ab-partitions=0 \ + /// --enable-1to4-partitions=0 --enable-palette=0 --enable-intrabc=0 \ + /// --deltaq-mode=0 --enable-tx-size-search=0 --enable-interintra-comp=1 \ + /// --enable-interintra-wedge=1 --enable-smooth-interintra=1 --obu -o X + /// ``` + #[test] + fn a_422_muchunk_compound_128root_pinned_stream_reaches_its_unit_walk() { + const NAME: &str = "a_422_muchunk_compound_128root_pinned_stream_reaches_its_unit_walk"; + const FILE: &str = "422_muchunk_compound_128root.obu"; + const LEN: usize = 895; + const FNV: u64 = 0xfb28_f9a7_cf23_9897; + const MIN_UNITS: usize = 32; + let _gate_lock = lock_gate_counters(); + let stream = read_pinned_muchunk_fixture(FILE, LEN, FNV, NAME); + assert_eq!( + obu_stream_shape(&stream), + Some((true, 1, 0, false)), + "{NAME}: {FILE} is not a 4:2:2 (ss 1/0, non-mono) 128x128-superblock stream" + ); + let before = ( + crate::decode::mu_chunk_compound_units(), + crate::decode::mu_chunk_intra_in_inter_units(), + ); + let frames = crate::stream::decode_stream(&stream) + .unwrap_or_else(|e| panic!("{NAME}: {FILE} no longer decodes cleanly: {e}")) + .len(); + let (compound, intra) = ( + crate::decode::mu_chunk_compound_units() - before.0, + crate::decode::mu_chunk_intra_in_inter_units() - before.1, + ); + assert_eq!(frames, 6, "{NAME}: {FILE} shown-frame count"); + assert!( + compound >= MIN_UNITS, + "{NAME}: {FILE} allocated only {compound} compound `side > 64` mu-chunk units \ + (expected >= {MIN_UNITS}) -- the walk this gate names did not run" + ); + assert_eq!( + intra, 0, + "{NAME}: {FILE} also ran the intra-in-inter walk ({intra} units) -- the two fixtures \ + no longer separate the cells" + ); + // DELIBERATELY NO ORACLE COMPARE: 7 of the 8 streams this lane generated + // diverge and this fixture is one of them. This test is the counter + // witness, not an exactness witness -- see the doc comment. + eprintln!( + "{NAME}: {FILE} compound_units={compound} intra_in_inter_units={intra} -- counter \ + witness, pixels NOT asserted (this stream is measured DIVERGENT)" + ); + } + + /// lane-av1muchunk422b: the **intra-in-inter** `side > 64` mu-chunk walk -- + /// per-unit chroma allocation of the intra-in-inter arm (site 8 of + /// `lanes/av1muchunk422.report.md`). This is the ONE stream of the eight + /// this lane generated that is BYTE-EXACT against the ffmpeg/aom oracle + /// (`i6_grad128_iis`), so unlike its compound twin this gate asserts + /// pixel-exactness over every decode-order frame AND that the site counter + /// moved. See the compound test above for the shared reachability and + /// count-at-the-ALLOCATION argument. + /// + /// Recipe (byte-reproducible; same aomenc argv as the compound test except + /// for the source): + /// ```text + /// ffmpeg -v error -f lavfi -i "gradients=size=128x256:c0=0xa1128f:\ + /// c1=0xd98c48:c2=0x120601:c3=0x4abfba:seed=63:duration=0.24:rate=25,\ + /// noise=all_seed=63:alls=6:allf=t" -t 0.24 -pix_fmt yuv422p \ + /// -f yuv4mpegpipe - > grad256.y4m + /// aomenc --codec=av1 --profile=2 --input-chroma-subsampling-x=1 \ + /// --input-chroma-subsampling-y=0 --passes=1 --end-usage=q --cq-level=62 \ + /// --cpu-used=0 --threads=1 --row-mt=0 --sb-size=128 \ + /// --min-partition-size=128 --max-partition-size=128 \ + /// --enable-rect-partitions=0 --enable-ab-partitions=0 \ + /// --enable-1to4-partitions=0 --enable-palette=0 --enable-intrabc=0 \ + /// --deltaq-mode=0 --enable-tx-size-search=0 --enable-interintra-comp=1 \ + /// --enable-interintra-wedge=1 --enable-smooth-interintra=1 --obu -o X + /// ``` + #[test] + fn a_422_muchunk_intra_in_inter_128root_pinned_stream_is_exact_and_reaches_its_unit_walk() { + const NAME: &str = + "a_422_muchunk_intra_in_inter_128root_pinned_stream_is_exact_and_reaches_its_unit_walk"; + const FILE: &str = "422_muchunk_intra_in_inter_128root.obu"; + const LEN: usize = 391; + const FNV: u64 = 0xe4d7_2c19_5a11_1f4f; + const MIN_UNITS: usize = 16; + // 6 shown frames + the 1 hidden alt-ref frame the oracle also emits. + const DECODED: usize = 7; + let _gate_lock = lock_gate_counters(); + let stream = read_pinned_muchunk_fixture(FILE, LEN, FNV, NAME); + assert_eq!( + obu_stream_shape(&stream), + Some((true, 1, 0, false)), + "{NAME}: {FILE} is not a 4:2:2 (ss 1/0, non-mono) 128x128-superblock stream" + ); + let before = ( + crate::decode::mu_chunk_compound_units(), + crate::decode::mu_chunk_intra_in_inter_units(), + ); + let frames = crate::stream::decode_stream(&stream) + .unwrap_or_else(|e| panic!("{NAME}: {FILE} no longer decodes cleanly: {e}")) + .len(); + let (compound, intra) = ( + crate::decode::mu_chunk_compound_units() - before.0, + crate::decode::mu_chunk_intra_in_inter_units() - before.1, + ); + assert_eq!(frames, 6, "{NAME}: {FILE} shown-frame count"); + assert!( + intra >= MIN_UNITS, + "{NAME}: {FILE} allocated only {intra} intra-in-inter `side > 64` mu-chunk units \ + (expected >= {MIN_UNITS}) -- the site counter this gate names did not move" + ); + assert_eq!( + compound, 0, + "{NAME}: {FILE} also ran the compound walk ({compound} units) -- the two fixtures no \ + longer separate the cells" + ); + if aomdec_available(NAME) { + let (decoded, hidden) = decode_all_frames_vs_oracle(&stream, NAME); + assert_eq!(decoded, DECODED, "{NAME}: {FILE} decode-order frame count"); + eprintln!( + "{NAME}: {FILE} byte-exact over {decoded} decode-order frame(s) ({hidden} \ + hidden), intra_in_inter_units={intra}" + ); + } + + // The counter-proof: the LOSSLESS 4:2:2 stream that reaches both + // `side > 64` guards at ss (1,0) and allocates nothing. `W_intrabc` + // is the fixture the prior lane measured `site 2 = 0` on, and this + // pins why that zero was real -- the arm's lossless branch returns + // before the unit loop. + let dir = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("fixtures"); + let intrabc = std::fs::read(dir.join("W_intrabc.obu")) + .expect("W_intrabc.obu is missing -- the counter-proof cannot run"); + let proof_before = ( + crate::decode::mu_chunk_compound_units(), + crate::decode::mu_chunk_intra_in_inter_units(), + crate::decode::intra_128_in_inter_mu_chroma_hits(), + ); + let proof_frames = crate::stream::decode_stream(&intrabc) + .expect("W_intrabc.obu no longer decodes") + .len(); + let proof = ( + crate::decode::mu_chunk_compound_units() - proof_before.0, + crate::decode::mu_chunk_intra_in_inter_units() - proof_before.1, + crate::decode::intra_128_in_inter_mu_chroma_hits() - proof_before.2, + ); + assert_eq!(proof_frames, 16, "{NAME}: W_intrabc shown-frame count"); + assert_eq!( + (proof.0, proof.1), + (0, 0), + "{NAME}: W_intrabc now allocates mu-chunk units ({}, {}) -- it cannot be the \ + counter-proof any more", + proof.0, + proof.1 + ); + assert!( + proof.2 > 0, + "{NAME}: W_intrabc no longer reaches the intra-in-inter guard at all \ + (INTRA_128_IN_INTER_MU_CHROMA_HITS delta 0), so its zero allocations prove \ + nothing about the guard-to-allocation gap this gate rests on" + ); + eprintln!( + "{NAME}: counter-proof W_intrabc allocations=({}, {}) with the intra-in-inter guard \ + fired {} time(s)", + proof.0, proof.1, proof.2 + ); + } + /// lane-sbpart r2: a real `aomenc` stream whose superblock-level /// partition decision is genuinely HORZ/VERT (not NONE/SPLIT) must /// decode pixel-exact through [`crate::decode::decode_block_rect64`] -- diff --git a/lanes/av1muchunk422b.report.md b/lanes/av1muchunk422b.report.md new file mode 100644 index 00000000..876b49bd --- /dev/null +++ b/lanes/av1muchunk422b.report.md @@ -0,0 +1,91 @@ +# lane-av1muchunk422b — witnesses for the two `side > 64` mu-chunk walks + +Base: `main` @ `66210824`. Branch: `lane/av1muchunk422b`. + +**Verdict: `2/2 walks witnessed`.** Two committed counters and two pinned +fixtures reach the exact sites `lanes/av1muchunk422.report.md` spent 12 +attempts on and could not reach at 4:2:2. Both gates are green; the +intra-in-inter gate is red-proven. The compound gate is a **counter witness, not +an exactness witness**. + +## What the prior lane missed + +The prior lane's eight recipes all read `part128 none=0`: a 384x256 frame leaves +aomenc free to split every 128 superblock, so the `side > 64` walks never ran +even though a 128x128 superblock was available. The streams that DO reach these +walks are 128-as-the-whole-frame — `--sb-size=128 --min-partition-size=128 +--max-partition-size=128` (PARTITION_NONE forced) — and **LOSSY**. The lossless +branch of each arm returns before the unit loop, which is why +`W_intrabc.obu` reaches both guards at ss (1,0) and allocates nothing. That +zero is real, and it is why the new counters count at the **allocation**, not at +the guard. + +## The two verdicts + +| # | gate | fixture (sha256) | bytes | counter | verdict | +|---|---|---|---|---|---| +| 1 | `a_422_muchunk_compound_128root_pinned_stream_reaches_its_unit_walk` | `422_muchunk_compound_128root.obu` (`9942bae2…`) | 895 | `MU_CHUNK_COMPOUND_UNITS` (+32) | **COUNTER witness only** — pixels NOT asserted | +| 2 | `a_422_muchunk_intra_in_inter_128root_pinned_stream_is_exact_and_reaches_its_unit_walk` | `422_muchunk_intra_in_inter_128root.obu` (`4676fbc1…`) | 391 | `MU_CHUNK_INTRA_IN_INTER_UNITS` (+16) | **EXACT + counter** — byte-exact over 7 decode-order frames (6 shown + 1 hidden alt-ref) | + +Both fixtures were generated by this lane's eight-stream campaign +(`/home/user/.cache/av1muchunk422b/`); the intra fixture is `i6_grad128_iis`, +the only one of the eight that is byte-exact against the oracle. + +## Why the compound gate is not an exactness witness + +**7 of the 8 streams this lane generated DIVERGE from ffmpeg; only +`i6_grad128_iis` is byte-exact.** The compound fixture (`i8_tsrc128_iis`) is one +of the seven. On this tip the divergence is Y and U exact, V differing on a +fixed column band (2063/8192, 2138/8192, 2105/8192, 1988/8192 V samples on +shown frames 1-4, first at V row 60 col 36) — the same shape on all four +compound streams, while the committed 4:2:2 128-root SINGLE-reference stream +(`422_sb128_3f.obu`) and the committed compound-warp stream whose blocks are all +<= 64 (`422_residual_compound_warp_16f.obu`) both stay exact. So the divergence +tracks the 128-root COMPOUND path — which is exactly what these counters name. + +It is a **NEW defect** and out of this lane's charter (the charter was the +witness). The test says so in its comment; when a fix lane lands, add the oracle +compare to the compound test. The counter half is already in place so the +fixture cannot silently stop reaching the walk it was pinned for. + +## Non-vacuity + +- **Shape assert first.** Each gate asserts the fixture parses as + `use_128x128_superblock=true, ss=(1,0), non-mono`; a stream that came back + 4:2:0 would leave the walk unexercised while every counter assert still passed. +- **Cross-cell separation.** Each gate asserts the *other* arm's counter at + ZERO, so neither can pass by running its sibling's walk. `is_compound` routes + the single-reference twin (site 5) out of the compound counter. +- **Fixture pin.** Length + FNV-1a64 asserted; a missing/moved fixture is a + failure, not a skip. +- **Red-proof (intra gate).** Forcing the site-8 bump to never fire + (`if false { hit!(MU_CHUNK_INTRA_IN_INTER_UNITS); }`) reddens gate 2 at + `stream.rs:43027`: + + ``` + ... allocated only 0 intra-in-inter `side > 64` mu-chunk units (expected >= 16) + -- the site counter this gate names did not move + ``` + + Reverted; re-run green. +- **Counter-proof (in gate 2).** `W_intrabc.obu` is decoded and asserted to + allocate `(0, 0)` mu-chunk units while `INTRA_128_IN_INTER_MU_CHROMA_HITS` + fires 8 times — pinning the guard-to-allocation gap the design rests on. + +## Instrument provenance + +The two counters live in `crates/ec-av1/src/decode.rs` +(`MU_CHUNK_COMPOUND_UNITS`, `MU_CHUNK_INTRA_IN_INTER_UNITS` + two `pub fn` +getters). The compound counter bumps at the two compound-arm allocation sites +(`is_compound`-routed; both share source text with the single-ref twin). The +intra counter bumps at the intra-in-inter allocation site. No env-gated probe +ships: the temporary `decode_probe.rs` print was removed and `decode_probe.rs` +is unmodified in this commit. + +## Run + +``` +EC_AV1_REQUIRE_AOMDEC=1 cargo test -p ec-av1 --lib -- a_422_muchunk \ + --test-threads=1 +# 2 passed +```