From 52a7f38828c2e3f77c76d0b56f0e8d82d8b86879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 2 Sep 2026 08:04:44 +0300 Subject: [PATCH] test(av1): the sb128 CfL gate retires enable-cfl-intra from both coverage lists The gate passes --enable-cfl-intra=1 at 8 and 10 bits, so both NEVER_EXERCISED lists drop it. covers_both_depths also learns the 'for depth in [8usize, 10]' spelling: such a gate builds both streams from one recipe, but its yuv420p10le arm made is_ten_bit classify it 10-bit only. --- crates/ec-av1/src/gate_coverage.rs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/crates/ec-av1/src/gate_coverage.rs b/crates/ec-av1/src/gate_coverage.rs index cb8e4e4d..6ed4c60d 100644 --- a/crates/ec-av1/src/gate_coverage.rs +++ b/crates/ec-av1/src/gate_coverage.rs @@ -148,10 +148,9 @@ const ALIASES: &[(&str, &str)] = &[("superres-mode", "enable-superres")]; /// depth retires the entry, and this test fails until it is deleted. #[cfg(test)] const NEVER_EXERCISED_8BIT: &[(&str, &str)] = &[ - ( - "enable-cfl-intra", - "off in 41 gates, on in none: chroma-from-luma prediction is unimplemented", - ), + // `enable-cfl-intra` LEFT both lists on 2026-09-02 (lane-reelckf r1): the + // sb128 skipped-CfL / 1:4-chroma gate passes `--enable-cfl-intra=1` at 8 + // AND 10 bits and pixel-compares both arms. ( "enable-dist-wtd-comp", "off in 11 gates, on in none: distance-weighted compound is unimplemented", @@ -206,10 +205,6 @@ const NEVER_EXERCISED_10BIT: &[(&str, &str)] = &[ // lane-cwarp's 10-bit comp // gate passes `=1` for both. `enable-1to4-partitions` left it on 2026-09-02: // lane-tx64x16 r4's 32-level 1:4 gate has a 10-bit arm that asserts both // orientations and coded strips inside pixel-exact attempts. - ( - "enable-cfl-intra", - "hole at both depths, see the 8-bit list", - ), ( "enable-dual-filter", "hole at both depths, see the 8-bit list", @@ -416,8 +411,12 @@ mod tests { /// an 8-bit and a 10-bit stream from one recipe, so its flags cover both /// depths -- classifying it by the 10-bit strings inside its conditional /// alone hid `--enable-tx-size-search=1` from the 8-bit list. + /// lane-reelckf r1: the same blind spot with the other spelling -- a gate + /// that loops `for depth in [8usize, 10]` builds BOTH streams from one + /// recipe, but its `yuv420p10le` arm made `is_ten_bit` classify it as + /// 10-bit only, hiding `--enable-cfl-intra=1` from the 8-bit list. fn covers_both_depths(body: &str) -> bool { - body.contains("if bit_depth == 10") + body.contains("if bit_depth == 10") || body.contains("for depth in [8usize, 10]") } /// Whether a gate body drives a stream at this depth.