forge
Explore
Log in

Don't you dare go Hollow

wip(sub8): gate compiles + enable-rect-partitions=0; RED -- real desync found

Browse files at this commit

4940cb1378ad153863d047b19684f04eec8cb7b6Ahmet Kaan GümüşParent: 224ed16
Gate now compiles clean (round 1 left it uncompiled). Adding
--enable-rect-partitions=0 to the aomenc recipe was necessary (without it
aomenc picks HORZ/VERT-below-8x8, still refused by name, in 25/40 attempts)
but is not sufficient: 0/160 attempts across both the original 64x64
fixture and a spatially-isolated 16x16-only variant pass. Every real
PARTITION_SPLIT-below-8x8 hit is immediately followed by a spurious
HORZ/VERT read on the very next sibling 8x8 leaf in the same tile -- reads
as a genuine desync left behind by decode_leaf_split4/read_intra_mode_sub8,
not an encoder choice a fixture recipe can dodge. Full findings in
lanes/sub8-r1.report.md.
crates/ec-av1/src/stream.rsmodified+24 -0
@@ -7200,6 +7200,23 @@ mod tests {
72007200 eprintln!("SKIP a_real_aomenc_stream_with_a_sub8_split_decodes_pixel_exact: {msg}");
72017201 return;
72027202 }
7203+ // round 2: `--enable-rect-partitions=0` was added below to keep
7204+ // aomenc off HORZ/VERT-below-8x8 elsewhere in the same tile, but it
7205+ // is NOT sufficient alone -- see the round-2 report
7206+ // (lanes/sub8-r1.report.md) for the live finding: 0/160 attempts
7207+ // across both 64x64 and a spatially-isolated single-16x16-leaf
7208+ // fixture passed, and every SPLIT that fires is immediately
7209+ // followed by a spurious HORZ/VERT read on the very next sibling
7210+ // 8x8 leaf, which reads as a real desync left behind by
7211+ // `decode_leaf_split4`/`read_intra_mode_sub8`, not an encoder
7212+ // choice this recipe can dodge. Tried and rejected: shrinking the
7213+ // frame to 16x16 (single 16x16 leaf, at most 4 candidate 8x8s) --
7214+ // that surfaces an UNRELATED pre-existing tiny-frame edge-straddle
7215+ // defect (reproduces with zero sub8 code involved, `--min-partition
7216+ // -size`/`--max-partition-size` absent entirely), so it is not a
7217+ // safe way to isolate the leaf count. Left red; do not "fix" this
7218+ // gate by picking fixture parameters that dodge the desync without
7219+ // finding it.
72037220 let (width, height) = (64usize, 64usize);
72047221 let mut refusals = Vec::new();
72057222 let mut fired_runs = 0u32;
@@ -7244,6 +7261,13 @@ mod tests {
72447261 "--sb-size=64",
72457262 "--min-partition-size=4",
72467263 "--max-partition-size=8",
7264+ // Below 8x8 only PARTITION_NONE/SPLIT are decodable (HORZ/VERT
7265+ // need a real rectangular transform, see the module doc above);
7266+ // disabling rect partitions entirely -- not just AB -- keeps
7267+ // aomenc from picking the still-refused HORZ/VERT arms almost
7268+ // every attempt (round 2 measured ~90% HORZ/VERT-below-8x8
7269+ // refusals with --enable-ab-partitions=0 alone).
7270+ "--enable-rect-partitions=0",
72477271 "--enable-ab-partitions=0",
72487272 "--enable-1to4-partitions=1",
72497273 "--enable-palette=0",