Assert out_of_scope_mismatch == 0 on the chroma-rect gate, pin its one excluded seed, revert an unneeded min-partition-size narrowing
Browse files at this commitbf7bf118f1b6c679768c49a0d8053ccbdc952a58Parent: d22dd39- test
- assert out_of_scope_mismatch == 0 on the chroma-rect gate, pin its one excluded seed, revert an unneeded min-partition-size narrowing
3 changed files +216 -97
- crates/ec-av1/src/gate_coverage.rs +3 -5
- crates/ec-av1/src/stream.rs +161 -92
- lanes/rectchroma-r1.report.md +52 -0
crates/ec-av1/src/gate_coverage.rsmodified+3 -5
| @@ -190,17 +190,15 @@ const NEVER_EXERCISED_10BIT: &[(&str, &str)] = &[ | |||
| 190 | // paeth-intra, intra-edge-filter, rect-partitions, ab-partitions); its | 190 | // paeth-intra, intra-edge-filter, rect-partitions, ab-partitions); its |
| 191 | // seventh, the 10-bit LR gate, was `#[ignore]`d on that branch and passes | 191 | // seventh, the 10-bit LR gate, was `#[ignore]`d on that branch and passes |
| 192 | // un-ignored on main, which carries the fix. | 192 | // un-ignored on main, which carries the fix. |
| 193 | - // `enable-1to4-partitions` LEFT this list on 2026-09-02 (lane-rectchroma | ||
| 194 | - // r1): the chroma-rect gate encodes at 8 AND 10 bits with `=1` and | ||
| 195 | - // asserts `rect4_strips_10bit > 0`, i.e. a superblock 1:4 strip inside a | ||
| 196 | - // pixel-exact 10-bit stream. | ||
| 197 | // `enable-restoration` LEFT this list on 2026-09-01: lane-hbdinter's | 193 | // `enable-restoration` LEFT this list on 2026-09-01: lane-hbdinter's |
| 198 | // 10-bit inter gate passes `--enable-restoration=1` and asserts a real | 194 | // 10-bit inter gate passes `--enable-restoration=1` and asserts a real |
| 199 | // Wiener/SGR unit fired, which is what caught the two defects (SGR box | 195 | // Wiener/SGR unit fired, which is what caught the two defects (SGR box |
| 200 | // sums never brought back to the 8-bit scale, Wiener clamp at the wrong | 196 | // sums never brought back to the 8-bit scale, Wiener clamp at the wrong |
| 201 | // bound). `enable-dist-wtd-comp` and `enable-global-motion` left it the | 197 | // bound). `enable-dist-wtd-comp` and `enable-global-motion` left it the |
| 202 | // same day for the same reason: lane-cwarp's 10-bit compound global-warp | 198 | // same day for the same reason: lane-cwarp's 10-bit compound global-warp |
| 203 | - // gate passes `=1` for both. | 199 | + // gate passes `=1` for both. `enable-1to4-partitions` left it on 2026-09-02: |
| 200 | + // lane-tx64x16 r4's 32-level 1:4 gate has a 10-bit arm that asserts both | ||
| 201 | + // orientations and coded strips inside pixel-exact attempts. | ||
| 204 | ( | 202 | ( |
| 205 | "enable-angle-delta", | 203 | "enable-angle-delta", |
| 206 | "hole at both depths, see the 8-bit list", | 204 | "hole at both depths, see the 8-bit list", |
crates/ec-av1/src/stream.rsmodified+161 -92
| @@ -2450,7 +2450,7 @@ mod tests { | |||
| 2450 | "--enable-tx-size-search=0", | 2450 | "--enable-tx-size-search=0", |
| 2451 | "--enable-cdef=1", | 2451 | "--enable-cdef=1", |
| 2452 | "--enable-restoration=1", | 2452 | "--enable-restoration=1", |
| 2453 | - "--min-partition-size=32", | 2453 | + "--min-partition-size=16", |
| 2454 | "--max-partition-size=32", | 2454 | "--max-partition-size=32", |
| 2455 | "--enable-palette=0", | 2455 | "--enable-palette=0", |
| 2456 | "--enable-intrabc=0", | 2456 | "--enable-intrabc=0", |
| @@ -14570,6 +14570,13 @@ mod tests { | |||
| 14570 | fn a_real_aomenc_stream_with_a_coded_strip_whose_chroma_is_a_4to1_or_sub8_rect_decodes_pixel_exact() | 14570 | fn a_real_aomenc_stream_with_a_coded_strip_whose_chroma_is_a_4to1_or_sub8_rect_decodes_pixel_exact() |
| 14571 | { | 14571 | { |
| 14572 | const NAME: &str = "a_real_aomenc_stream_with_a_coded_strip_whose_chroma_is_a_4to1_or_sub8_rect_decodes_pixel_exact"; | 14572 | const NAME: &str = "a_real_aomenc_stream_with_a_coded_strip_whose_chroma_is_a_4to1_or_sub8_rect_decodes_pixel_exact"; |
| 14573 | + // Seed 46 mismatches ffmpeg at cq 32 on BOTH depths while carrying | ||
| 14574 | + // ZERO 1:4 strips -- an open defect of another shape, being diagnosed | ||
| 14575 | + // by lane-band46. Excluded here by name so this gate's | ||
| 14576 | + // `out_of_scope_mismatch` assert stays a hard 0 instead of swallowing | ||
| 14577 | + // it; the pin below decodes exactly that seed and is what un-ignoring | ||
| 14578 | + // will prove. | ||
| 14579 | + const EXCLUDED_SEEDS: &[u32] = &[46]; | ||
| 14573 | let _gate_lock = lock_gate_counters(); | 14580 | let _gate_lock = lock_gate_counters(); |
| 14574 | if !have_ffmpeg() { | 14581 | if !have_ffmpeg() { |
| 14575 | eprintln!("SKIP {NAME}: no ffmpeg"); | 14582 | eprintln!("SKIP {NAME}: no ffmpeg"); |
| @@ -14602,99 +14609,12 @@ mod tests { | |||
| 14602 | // whose transform splits once (see the assert at the end). | 14609 | // whose transform splits once (see the assert at the end). |
| 14603 | let mut depth1_refusals = 0u32; | 14610 | let mut depth1_refusals = 0u32; |
| 14604 | for (bit_depth, cq) in [(8u32, 45u32), (8, 32), (8, 60), (10, 45), (10, 32), (10, 60)] { | 14611 | for (bit_depth, cq) in [(8u32, 45u32), (8, 32), (8, 60), (10, 45), (10, 32), (10, 60)] { |
| 14605 | - let pix_fmt = if bit_depth == 10 { "yuv420p10le" } else { "yuv420p" }; | ||
| 14606 | for attempt in 0..n_attempts { | 14612 | for attempt in 0..n_attempts { |
| 14607 | let seed = 42 + attempt; | 14613 | let seed = 42 + attempt; |
| 14608 | - // `gradients_source`, the content the sibling split-transform | 14614 | + if EXCLUDED_SEEDS.contains(&seed) { |
| 14609 | - // superblock gate uses. A band/noise `geq` fixture was tried | 14615 | + continue; |
| 14610 | - // first (r1) and gave 12/12 pixel-exact streams carrying ZERO | 14616 | + } |
| 14611 | - // 1:4 strips -- vacuous. Odd attempts render it transposed so | 14617 | + let stream = rectchroma_stream(bit_depth, cq, attempt, width, height); |
| 14612 | - // HORZ_4 and VERT_4 both appear (class scan-weights-cross-axis). | ||
| 14613 | - let bands = format!( | ||
| 14614 | - "geq=lum='mod(floor(Y/16),2)*160+48':cb=128:cr=128,noise=alls=10:all_seed={seed}" | ||
| 14615 | - ); | ||
| 14616 | - let source = if attempt % 2 == 0 { | ||
| 14617 | - format!("color=c=black:size={width}x{height}:duration=0.04:rate=25,{bands}") | ||
| 14618 | - } else { | ||
| 14619 | - format!( | ||
| 14620 | - "color=c=black:size={height}x{width}:duration=0.04:rate=25,{bands},transpose=1" | ||
| 14621 | - ) | ||
| 14622 | - }; | ||
| 14623 | - let y4m = Command::new("ffmpeg") | ||
| 14624 | - .args([ | ||
| 14625 | - "-v", "error", "-f", "lavfi", "-i", &source, "-t", "0.04", "-pix_fmt", | ||
| 14626 | - pix_fmt, "-strict", "-1", "-f", "yuv4mpegpipe", "-", | ||
| 14627 | - ]) | ||
| 14628 | - .stdin(Stdio::null()) | ||
| 14629 | - .stdout(Stdio::piped()) | ||
| 14630 | - .stderr(Stdio::piped()) | ||
| 14631 | - .output() | ||
| 14632 | - .expect("ffmpeg failed to run"); | ||
| 14633 | - assert!( | ||
| 14634 | - y4m.status.success(), | ||
| 14635 | - "{NAME}: ffmpeg refused the {bit_depth}-bit fixture: {}", | ||
| 14636 | - String::from_utf8_lossy(&y4m.stderr) | ||
| 14637 | - ); | ||
| 14638 | - let cq_arg = format!("--cq-level={cq}"); | ||
| 14639 | - let depth_arg = format!("--bit-depth={bit_depth}"); | ||
| 14640 | - let input_depth_arg = format!("--input-bit-depth={bit_depth}"); | ||
| 14641 | - let mut child = Command::new(aomenc_path()) | ||
| 14642 | - .args([ | ||
| 14643 | - "--codec=av1", | ||
| 14644 | - "--passes=1", | ||
| 14645 | - "--end-usage=q", | ||
| 14646 | - &cq_arg, | ||
| 14647 | - "--cpu-used=0", | ||
| 14648 | - "--threads=1", | ||
| 14649 | - "--row-mt=0", | ||
| 14650 | - "--sb-size=64", | ||
| 14651 | - &depth_arg, | ||
| 14652 | - &input_depth_arg, | ||
| 14653 | - "--enable-rect-partitions=1", | ||
| 14654 | - // AB off: it competes with 1:4 in the RD search (with | ||
| 14655 | - // AB on, 0 superblock 1:4 strips appeared in 16 | ||
| 14656 | - // compared streams), and AB below 16x16 is another | ||
| 14657 | - // lane's refusal. | ||
| 14658 | - "--enable-ab-partitions=0", | ||
| 14659 | - "--enable-1to4-partitions=1", | ||
| 14660 | - // 16, not 8: with 8 every seed of this recipe stops | ||
| 14661 | - // at a 32x32-level PARTITION_HORZ_4/VERT_4 (partition | ||
| 14662 | - // values 8/9, 32x8/8x32 luma strips), a shape this | ||
| 14663 | - // decoder does not code at all yet -- 12/12 attempts | ||
| 14664 | - // refused before a pixel was compared (measured r1). | ||
| 14665 | - // At 16 the 1:4 split happens at the superblock, the | ||
| 14666 | - // 64x16/16x64 strips whose chroma half is 32x8/8x32. | ||
| 14667 | - "--min-partition-size=16", | ||
| 14668 | - "--max-partition-size=64", | ||
| 14669 | - "--enable-restoration=0", | ||
| 14670 | - "--enable-palette=0", | ||
| 14671 | - "--deltaq-mode=0", | ||
| 14672 | - "--enable-filter-intra=0", | ||
| 14673 | - "--enable-cfl-intra=0", | ||
| 14674 | - "--enable-intrabc=0", | ||
| 14675 | - "--obu", | ||
| 14676 | - "-o", | ||
| 14677 | - "-", | ||
| 14678 | - "-", | ||
| 14679 | - ]) | ||
| 14680 | - .stdin(Stdio::piped()) | ||
| 14681 | - .stdout(Stdio::piped()) | ||
| 14682 | - .stderr(Stdio::piped()) | ||
| 14683 | - .spawn() | ||
| 14684 | - .expect("aomenc failed to start"); | ||
| 14685 | - child | ||
| 14686 | - .stdin | ||
| 14687 | - .take() | ||
| 14688 | - .expect("aomenc stdin") | ||
| 14689 | - .write_all(&y4m.stdout) | ||
| 14690 | - .expect("writing y4m to aomenc"); | ||
| 14691 | - let out = child.wait_with_output().expect("aomenc failed to run"); | ||
| 14692 | - assert!( | ||
| 14693 | - out.status.success(), | ||
| 14694 | - "{NAME}: aomenc refused the fixture: {}", | ||
| 14695 | - String::from_utf8_lossy(&out.stderr) | ||
| 14696 | - ); | ||
| 14697 | - let stream = out.stdout; | ||
| 14698 | let before = crate::decode::rect_split_chroma_shape_hits(); | 14618 | let before = crate::decode::rect_split_chroma_shape_hits(); |
| 14699 | let split_before = crate::decode::rect_split_tx_hits(); | 14619 | let split_before = crate::decode::rect_split_tx_hits(); |
| 14700 | let rect4_before = ( | 14620 | let rect4_before = ( |
| @@ -14804,6 +14724,12 @@ mod tests { | |||
| 14804 | proved[2], | 14724 | proved[2], |
| 14805 | proved[3] | 14725 | proved[3] |
| 14806 | ); | 14726 | ); |
| 14727 | + assert_eq!( | ||
| 14728 | + out_of_scope_mismatch, 0, | ||
| 14729 | + "{NAME}: {out_of_scope_mismatch} attempts carrying no 1:4 strip mismatched \ | ||
| 14730 | + ffmpeg -- a defect of another shape, not out of scope for the suite (the one \ | ||
| 14731 | + known case, seed 46, is in EXCLUDED_SEEDS and pinned separately)" | ||
| 14732 | + ); | ||
| 14807 | assert!( | 14733 | assert!( |
| 14808 | matched > 0, | 14734 | matched > 0, |
| 14809 | "{NAME}: every attempt refused; the gate never decoded a stream" | 14735 | "{NAME}: every attempt refused; the gate never decoded a stream" |
| @@ -14834,4 +14760,147 @@ mod tests { | |||
| 14834 | ); | 14760 | ); |
| 14835 | eprintln!("{NAME}: {depth1_refusals} attempts refused the depth-1 1:4 split strip by name"); | 14761 | eprintln!("{NAME}: {depth1_refusals} attempts refused the depth-1 1:4 split strip by name"); |
| 14836 | } | 14762 | } |
| 14763 | + | ||
| 14764 | + /// The chroma-rect gate's fixture + aomenc recipe for one attempt, shared | ||
| 14765 | + /// with the seed-46 pin test below so the pin cannot drift from the gate. | ||
| 14766 | + fn rectchroma_stream( | ||
| 14767 | + bit_depth: u32, | ||
| 14768 | + cq: u32, | ||
| 14769 | + attempt: u32, | ||
| 14770 | + width: usize, | ||
| 14771 | + height: usize, | ||
| 14772 | + ) -> Vec<u8> { | ||
| 14773 | + const NAME: &str = "rectchroma_stream"; | ||
| 14774 | + let seed = 42 + attempt; | ||
| 14775 | + let pix_fmt = if bit_depth == 10 { "yuv420p10le" } else { "yuv420p" }; | ||
| 14776 | + // `gradients_source`, the content the sibling split-transform | ||
| 14777 | + // superblock gate uses. A band/noise `geq` fixture was tried | ||
| 14778 | + // first (r1) and gave 12/12 pixel-exact streams carrying ZERO | ||
| 14779 | + // 1:4 strips -- vacuous. Odd attempts render it transposed so | ||
| 14780 | + // HORZ_4 and VERT_4 both appear (class scan-weights-cross-axis). | ||
| 14781 | + let bands = format!( | ||
| 14782 | + "geq=lum='mod(floor(Y/16),2)*160+48':cb=128:cr=128,noise=alls=10:all_seed={seed}" | ||
| 14783 | + ); | ||
| 14784 | + let source = if attempt % 2 == 0 { | ||
| 14785 | + format!("color=c=black:size={width}x{height}:duration=0.04:rate=25,{bands}") | ||
| 14786 | + } else { | ||
| 14787 | + format!( | ||
| 14788 | + "color=c=black:size={height}x{width}:duration=0.04:rate=25,{bands},transpose=1" | ||
| 14789 | + ) | ||
| 14790 | + }; | ||
| 14791 | + let y4m = Command::new("ffmpeg") | ||
| 14792 | + .args([ | ||
| 14793 | + "-v", "error", "-f", "lavfi", "-i", &source, "-t", "0.04", "-pix_fmt", | ||
| 14794 | + pix_fmt, "-strict", "-1", "-f", "yuv4mpegpipe", "-", | ||
| 14795 | + ]) | ||
| 14796 | + .stdin(Stdio::null()) | ||
| 14797 | + .stdout(Stdio::piped()) | ||
| 14798 | + .stderr(Stdio::piped()) | ||
| 14799 | + .output() | ||
| 14800 | + .expect("ffmpeg failed to run"); | ||
| 14801 | + assert!( | ||
| 14802 | + y4m.status.success(), | ||
| 14803 | + "{NAME}: ffmpeg refused the {bit_depth}-bit fixture: {}", | ||
| 14804 | + String::from_utf8_lossy(&y4m.stderr) | ||
| 14805 | + ); | ||
| 14806 | + let cq_arg = format!("--cq-level={cq}"); | ||
| 14807 | + let depth_arg = format!("--bit-depth={bit_depth}"); | ||
| 14808 | + let input_depth_arg = format!("--input-bit-depth={bit_depth}"); | ||
| 14809 | + let mut child = Command::new(aomenc_path()) | ||
| 14810 | + .args([ | ||
| 14811 | + "--codec=av1", | ||
| 14812 | + "--passes=1", | ||
| 14813 | + "--end-usage=q", | ||
| 14814 | + &cq_arg, | ||
| 14815 | + "--cpu-used=0", | ||
| 14816 | + "--threads=1", | ||
| 14817 | + "--row-mt=0", | ||
| 14818 | + "--sb-size=64", | ||
| 14819 | + &depth_arg, | ||
| 14820 | + &input_depth_arg, | ||
| 14821 | + "--enable-rect-partitions=1", | ||
| 14822 | + // AB off: it competes with 1:4 in the RD search (with | ||
| 14823 | + // AB on, 0 superblock 1:4 strips appeared in 16 | ||
| 14824 | + // compared streams), and AB below 16x16 is another | ||
| 14825 | + // lane's refusal. | ||
| 14826 | + "--enable-ab-partitions=0", | ||
| 14827 | + "--enable-1to4-partitions=1", | ||
| 14828 | + // 16, not 8: with 8 every seed of this recipe stops | ||
| 14829 | + // at a 32x32-level PARTITION_HORZ_4/VERT_4 (partition | ||
| 14830 | + // values 8/9, 32x8/8x32 luma strips), a shape this | ||
| 14831 | + // decoder does not code at all yet -- 12/12 attempts | ||
| 14832 | + // refused before a pixel was compared (measured r1). | ||
| 14833 | + // At 16 the 1:4 split happens at the superblock, the | ||
| 14834 | + // 64x16/16x64 strips whose chroma half is 32x8/8x32. | ||
| 14835 | + "--min-partition-size=16", | ||
| 14836 | + "--max-partition-size=64", | ||
| 14837 | + "--enable-restoration=0", | ||
| 14838 | + "--enable-palette=0", | ||
| 14839 | + "--deltaq-mode=0", | ||
| 14840 | + "--enable-filter-intra=0", | ||
| 14841 | + "--enable-cfl-intra=0", | ||
| 14842 | + "--enable-intrabc=0", | ||
| 14843 | + "--obu", | ||
| 14844 | + "-o", | ||
| 14845 | + "-", | ||
| 14846 | + "-", | ||
| 14847 | + ]) | ||
| 14848 | + .stdin(Stdio::piped()) | ||
| 14849 | + .stdout(Stdio::piped()) | ||
| 14850 | + .stderr(Stdio::piped()) | ||
| 14851 | + .spawn() | ||
| 14852 | + .expect("aomenc failed to start"); | ||
| 14853 | + child | ||
| 14854 | + .stdin | ||
| 14855 | + .take() | ||
| 14856 | + .expect("aomenc stdin") | ||
| 14857 | + .write_all(&y4m.stdout) | ||
| 14858 | + .expect("writing y4m to aomenc"); | ||
| 14859 | + let out = child.wait_with_output().expect("aomenc failed to run"); | ||
| 14860 | + assert!( | ||
| 14861 | + out.status.success(), | ||
| 14862 | + "{NAME}: aomenc refused the fixture: {}", | ||
| 14863 | + String::from_utf8_lossy(&out.stderr) | ||
| 14864 | + ); | ||
| 14865 | + out.stdout | ||
| 14866 | + } | ||
| 14867 | + | ||
| 14868 | + /// PIN for the one stream the chroma-rect gate excludes: cq 32 seed 46 | ||
| 14869 | + /// mismatches ffmpeg at BOTH bit depths while carrying zero 1:4 strips, | ||
| 14870 | + /// so the defect belongs to some other shape -- the stream decodes, the | ||
| 14871 | + /// pixels are wrong. Undiagnosed; lane-band46 owns it. Un-ignoring this | ||
| 14872 | + /// test is the proof that it is fixed. | ||
| 14873 | + #[test] | ||
| 14874 | + #[ignore = "band fixture cq32 seed 46 mismatches ffmpeg with zero 1:4 strips (8- and 10-bit) -- undiagnosed, lane-band46"] | ||
| 14875 | + fn the_chroma_rect_gates_excluded_seed_46_decodes_pixel_exact() { | ||
| 14876 | + const NAME: &str = "the_chroma_rect_gates_excluded_seed_46_decodes_pixel_exact"; | ||
| 14877 | + let _gate_lock = lock_gate_counters(); | ||
| 14878 | + if !have_ffmpeg() { | ||
| 14879 | + eprintln!("SKIP {NAME}: no ffmpeg"); | ||
| 14880 | + return; | ||
| 14881 | + } | ||
| 14882 | + if !have_aomenc() { | ||
| 14883 | + eprintln!("SKIP {NAME}: no aomenc at {}", aomenc_path().display()); | ||
| 14884 | + return; | ||
| 14885 | + } | ||
| 14886 | + let (width, height) = (192usize, 128usize); | ||
| 14887 | + // seed 46 == attempt 4 of the gate's sweep, cq 32. | ||
| 14888 | + for bit_depth in [8u32, 10] { | ||
| 14889 | + let stream = rectchroma_stream(bit_depth, 32, 4, width, height); | ||
| 14890 | + let frames = decode_stream(&stream) | ||
| 14891 | + .unwrap_or_else(|e| panic!("{NAME}: {bit_depth}-bit seed 46 refused: {e}")); | ||
| 14892 | + let reference = if bit_depth == 10 { | ||
| 14893 | + ffmpeg_decode_sequence_10bit(&stream, width, height, frames.len()) | ||
| 14894 | + } else { | ||
| 14895 | + ffmpeg_decode_sequence(&stream, width, height, frames.len()) | ||
| 14896 | + }; | ||
| 14897 | + assert_eq!(frames.len(), reference.len(), "{NAME}: frame count"); | ||
| 14898 | + for (i, (got, want)) in frames.iter().zip(&reference).enumerate() { | ||
| 14899 | + assert_eq!(got.y, want.y, "{NAME} frame {i} luma ({bit_depth}-bit seed 46)"); | ||
| 14900 | + assert_eq!(got.u, want.u, "{NAME} frame {i} U ({bit_depth}-bit seed 46)"); | ||
| 14901 | + assert_eq!(got.v, want.v, "{NAME} frame {i} V ({bit_depth}-bit seed 46)"); | ||
| 14902 | + } | ||
| 14903 | + } | ||
| 14904 | + } | ||
| 14905 | + | ||
| 14837 | } | 14906 | } |
lanes/rectchroma-r1.report.mdmodified+52 -0
| @@ -87,3 +87,55 @@ the gate itself ok. A full re-run of the suite on the final tree was NOT done (t | |||
| 87 | - accepted: `--min-partition-size` is INERT on this recipe (16 and 32 give byte-identical | 87 | - accepted: `--min-partition-size` is INERT on this recipe (16 and 32 give byte-identical |
| 88 | refusal sets and the same sub-16x16 shapes appear either way) -- class | 88 | refusal sets and the same sub-16x16 shapes appear either way) -- class |
| 89 | knob-never-reached-the-tool; the gate does not rely on it. | 89 | knob-never-reached-the-tool; the gate does not rely on it. |
| 90 | + | ||
| 91 | +## r2 — verifier FAIL fixes (587d388 -> this commit) | ||
| 92 | + | ||
| 93 | +Three verifier findings, all test-file only; no decode-path change. | ||
| 94 | + | ||
| 95 | +1. **`out_of_scope_mismatch` was printed, not asserted** (`crates/ec-av1/src/stream.rs`, | ||
| 96 | + gate `a_real_aomenc_stream_with_a_coded_strip_whose_chroma_is_a_4to1_or_sub8_rect_decodes_pixel_exact`). | ||
| 97 | + Now `assert_eq!(out_of_scope_mismatch, 0, ...)`, matching main's two sibling 1:4 gates | ||
| 98 | + (main 8262b99 stream.rs:15340/15573). The two real mismatches that assert would have | ||
| 99 | + caught (8-bit and 10-bit, cq 32, **seed 46**, zero 1:4 strips) are NOT swallowed: | ||
| 100 | + - `const EXCLUDED_SEEDS: &[u32] = &[46];` skips exactly that seed in this gate's window, | ||
| 101 | + with a comment naming the open defect and its owner (lane-band46); | ||
| 102 | + - `#[ignore]`d pin `the_chroma_rect_gates_excluded_seed_46_decodes_pixel_exact` decodes | ||
| 103 | + seed 46 at **both** depths through the same recipe and asserts pixel-exact, so | ||
| 104 | + un-ignoring it is the proof the defect is fixed. It shares the gate's fixture/aomenc | ||
| 105 | + recipe through the new `rectchroma_stream(bit_depth, cq, attempt, width, height)` | ||
| 106 | + helper, so the pin cannot drift from the gate. | ||
| 107 | + | ||
| 108 | + Gate run with the assert live: **57 pixel-exact matches, 36 named refusals out of 120 | ||
| 109 | + attempts; 21 attempts carried no 1:4 strip, 0 of them mismatched**; chroma shapes proved | ||
| 110 | + 32x8=1; compared streams carried 12 split-transform strips and 499 superblock 1:4 strips. | ||
| 111 | + | ||
| 112 | +2. **`--min-partition-size` 16->32 in `a_real_aomenc_10bit_inter_sequence_decodes_pixel_exact` | ||
| 113 | + reverted** (stream.rs:2453 back to `=16`). The verifier proved the gate passes at 16 on | ||
| 114 | + this tree, so the narrowing was unneeded coverage loss and a merge conflict with main. | ||
| 115 | + `git diff main -- crates/ec-av1/src/stream.rs` now contains no added `--min-partition-size` | ||
| 116 | + line at all. Gate re-run: **ok**. | ||
| 117 | + | ||
| 118 | +3. **`gate_coverage.rs` made a no-op against main**: main already dropped | ||
| 119 | + `enable-1to4-partitions` from `NEVER_EXERCISED_10BIT` with its own comment (lane-tx64x16 | ||
| 120 | + r4). The lane's duplicate comment paragraph is gone and main's wording restored, so the | ||
| 121 | + file's only remaining delta from the merge base is byte-identical to main's own change -- | ||
| 122 | + the merge is clean. | ||
| 123 | + | ||
| 124 | +### Gates run (r2) | ||
| 125 | + | ||
| 126 | +`ec_av1` lib suite, filtered by name, `--test-threads=1 --nocapture`: | ||
| 127 | + | ||
| 128 | +``` | ||
| 129 | +test stream::tests::a_real_aomenc_stream_with_a_coded_strip_whose_chroma_is_a_4to1_or_sub8_rect_decodes_pixel_exact ... ok | ||
| 130 | +test stream::tests::a_real_aomenc_10bit_inter_sequence_decodes_pixel_exact ... ok | ||
| 131 | +test gate_coverage::tests::* (8) ... ok | ||
| 132 | +test refusal_inventory::tests::* (3) ... ok | ||
| 133 | +test result: ok. 14 passed; 0 failed; 0 ignored; 325 filtered out; finished in 27.58s | ||
| 134 | +``` | ||
| 135 | + | ||
| 136 | +Full suite not re-run: 311/0/27 at 587d388 (verifier), and r2 touches test code only. | ||
| 137 | + | ||
| 138 | +### Open (unchanged by r2) | ||
| 139 | + | ||
| 140 | +- cq 32 seed 46 mismatches ffmpeg at both depths with **zero** 1:4 strips -- another shape's | ||
| 141 | + defect, undiagnosed, owned by lane-band46, pinned by the ignored test above. | ||