Mv-stack row/col scans dropped libaom's sub-8px clauses, desyncing every 4-wide/4-high block
Browse files at this commit9d5ecaa94d2eba94c9fd5c87bb5d8e10048beb7eParent: 0ee3ba4- fix
- mv-stack row/col scans dropped libaom's sub-8px clauses, desyncing every 4-wide/4-high block
3 changed files +184 -22
- crates/ec-av1/src/mvstack.rs +32 -8
- crates/ec-av1/src/stream.rs +55 -14
- lanes/intra16x4-r3.handoff.md +97 -0
crates/ec-av1/src/mvstack.rsmodified+32 -8
| @@ -516,7 +516,10 @@ fn scan_row( | |||
| 516 | let Some(row) = mi_row.checked_add_signed(row_offset) else { | 516 | let Some(row) = mi_row.checked_add_signed(row_offset) else { |
| 517 | return false; | 517 | return false; |
| 518 | }; | 518 | }; |
| 519 | - let col_shift: usize = if row_offset.unsigned_abs() > 1 { 1 } else { 0 }; | 519 | + // libaom `scan_row_mbmi` (mvref_common.c:157): the shift steps BACK on an odd |
| 520 | + // mi_col when the block is narrower than 8px (a 4-wide 1:4 strip / sub-8x8 leaf). | ||
| 521 | + let col_shift: usize = | ||
| 522 | + if row_offset.unsigned_abs() > 1 && !(mi_col & 1 != 0 && bw4 < 2) { 1 } else { 0 }; | ||
| 520 | let use_step_16 = bw4 >= 16; | 523 | let use_step_16 = bw4 >= 16; |
| 521 | let end_mi = bw4.min(16); | 524 | let end_mi = bw4.min(16); |
| 522 | let mut found = false; | 525 | let mut found = false; |
| @@ -534,7 +537,10 @@ fn scan_row( | |||
| 534 | len = len.max(2); | 537 | len = len.max(2); |
| 535 | } | 538 | } |
| 536 | let mut weight = ROW_COL_WEIGHT_FLOOR; | 539 | let mut weight = ROW_COL_WEIGHT_FLOOR; |
| 537 | - if bw4 <= n4 { | 540 | + // libaom `scan_row_mbmi` (mvref_common.c:172) gates this on |
| 541 | + // `xd->width >= mi_size_wide[BLOCK_8X8]` as well: a 4-wide block (a 1:4 | ||
| 542 | + // strip, a sub-8x8 leaf) keeps weight 2 and leaves `processed_rows` alone. | ||
| 543 | + if bw4 >= 2 && bw4 <= n4 { | ||
| 538 | let inc = ((-max_row_offset + row_offset + 1) as usize).min(info.size_h); | 544 | let inc = ((-max_row_offset + row_offset + 1) as usize).min(info.size_h); |
| 539 | weight = weight.max(inc as u32); | 545 | weight = weight.max(inc as u32); |
| 540 | *processed_rows = (inc as isize - row_offset - 1).max(0) as usize; | 546 | *processed_rows = (inc as isize - row_offset - 1).max(0) as usize; |
| @@ -598,7 +604,10 @@ fn scan_col( | |||
| 598 | let Some(col) = mi_col.checked_add_signed(col_offset) else { | 604 | let Some(col) = mi_col.checked_add_signed(col_offset) else { |
| 599 | return false; | 605 | return false; |
| 600 | }; | 606 | }; |
| 601 | - let row_shift: usize = if col_offset.unsigned_abs() > 1 { 1 } else { 0 }; | 607 | + // libaom `scan_col_mbmi` (mvref_common.c:206): same step-back on an odd mi_row |
| 608 | + // under a 4-high block. | ||
| 609 | + let row_shift: usize = | ||
| 610 | + if col_offset.unsigned_abs() > 1 && !(mi_row & 1 != 0 && bh4 < 2) { 1 } else { 0 }; | ||
| 602 | let use_step_16 = bh4 >= 16; | 611 | let use_step_16 = bh4 >= 16; |
| 603 | let end_mi = bh4.min(16); | 612 | let end_mi = bh4.min(16); |
| 604 | let mut found = false; | 613 | let mut found = false; |
| @@ -616,7 +625,10 @@ fn scan_col( | |||
| 616 | len = len.max(2); | 625 | len = len.max(2); |
| 617 | } | 626 | } |
| 618 | let mut weight = ROW_COL_WEIGHT_FLOOR; | 627 | let mut weight = ROW_COL_WEIGHT_FLOOR; |
| 619 | - if bh4 <= n4 { | 628 | + // libaom `scan_col_mbmi` (mvref_common.c:222): `xd->height >= |
| 629 | + // mi_size_high[BLOCK_8X8]` gates this branch, so a 4-high block keeps | ||
| 630 | + // weight 2 and leaves `processed_cols` alone. | ||
| 631 | + if bh4 >= 2 && bh4 <= n4 { | ||
| 620 | let inc = ((-max_col_offset + col_offset + 1) as usize).min(info.size); | 632 | let inc = ((-max_col_offset + col_offset + 1) as usize).min(info.size); |
| 621 | weight = weight.max(inc as u32); | 633 | weight = weight.max(inc as u32); |
| 622 | *processed_cols = (inc as isize - col_offset - 1).max(0) as usize; | 634 | *processed_cols = (inc as isize - col_offset - 1).max(0) as usize; |
| @@ -1346,7 +1358,10 @@ fn scan_row_compound( | |||
| 1346 | let Some(row) = mi_row.checked_add_signed(row_offset) else { | 1358 | let Some(row) = mi_row.checked_add_signed(row_offset) else { |
| 1347 | return false; | 1359 | return false; |
| 1348 | }; | 1360 | }; |
| 1349 | - let col_shift: usize = if row_offset.unsigned_abs() > 1 { 1 } else { 0 }; | 1361 | + // libaom `scan_row_mbmi` (mvref_common.c:157): the shift steps BACK on an odd |
| 1362 | + // mi_col when the block is narrower than 8px (a 4-wide 1:4 strip / sub-8x8 leaf). | ||
| 1363 | + let col_shift: usize = | ||
| 1364 | + if row_offset.unsigned_abs() > 1 && !(mi_col & 1 != 0 && bw4 < 2) { 1 } else { 0 }; | ||
| 1350 | let use_step_16 = bw4 >= 16; | 1365 | let use_step_16 = bw4 >= 16; |
| 1351 | let end_mi = bw4.min(16); | 1366 | let end_mi = bw4.min(16); |
| 1352 | let mut found = false; | 1367 | let mut found = false; |
| @@ -1364,7 +1379,10 @@ fn scan_row_compound( | |||
| 1364 | len = len.max(2); | 1379 | len = len.max(2); |
| 1365 | } | 1380 | } |
| 1366 | let mut weight = ROW_COL_WEIGHT_FLOOR; | 1381 | let mut weight = ROW_COL_WEIGHT_FLOOR; |
| 1367 | - if bw4 <= n4 { | 1382 | + // libaom `scan_row_mbmi` (mvref_common.c:172) gates this on |
| 1383 | + // `xd->width >= mi_size_wide[BLOCK_8X8]` as well: a 4-wide block (a 1:4 | ||
| 1384 | + // strip, a sub-8x8 leaf) keeps weight 2 and leaves `processed_rows` alone. | ||
| 1385 | + if bw4 >= 2 && bw4 <= n4 { | ||
| 1368 | let inc = ((-max_row_offset + row_offset + 1) as usize).min(info.size_h); | 1386 | let inc = ((-max_row_offset + row_offset + 1) as usize).min(info.size_h); |
| 1369 | weight = weight.max(inc as u32); | 1387 | weight = weight.max(inc as u32); |
| 1370 | *processed_rows = (inc as isize - row_offset - 1).max(0) as usize; | 1388 | *processed_rows = (inc as isize - row_offset - 1).max(0) as usize; |
| @@ -1403,7 +1421,10 @@ fn scan_col_compound( | |||
| 1403 | let Some(col) = mi_col.checked_add_signed(col_offset) else { | 1421 | let Some(col) = mi_col.checked_add_signed(col_offset) else { |
| 1404 | return false; | 1422 | return false; |
| 1405 | }; | 1423 | }; |
| 1406 | - let row_shift: usize = if col_offset.unsigned_abs() > 1 { 1 } else { 0 }; | 1424 | + // libaom `scan_col_mbmi` (mvref_common.c:206): same step-back on an odd mi_row |
| 1425 | + // under a 4-high block. | ||
| 1426 | + let row_shift: usize = | ||
| 1427 | + if col_offset.unsigned_abs() > 1 && !(mi_row & 1 != 0 && bh4 < 2) { 1 } else { 0 }; | ||
| 1407 | let use_step_16 = bh4 >= 16; | 1428 | let use_step_16 = bh4 >= 16; |
| 1408 | let end_mi = bh4.min(16); | 1429 | let end_mi = bh4.min(16); |
| 1409 | let mut found = false; | 1430 | let mut found = false; |
| @@ -1421,7 +1442,10 @@ fn scan_col_compound( | |||
| 1421 | len = len.max(2); | 1442 | len = len.max(2); |
| 1422 | } | 1443 | } |
| 1423 | let mut weight = ROW_COL_WEIGHT_FLOOR; | 1444 | let mut weight = ROW_COL_WEIGHT_FLOOR; |
| 1424 | - if bh4 <= n4 { | 1445 | + // libaom `scan_col_mbmi` (mvref_common.c:222): `xd->height >= |
| 1446 | + // mi_size_high[BLOCK_8X8]` gates this branch, so a 4-high block keeps | ||
| 1447 | + // weight 2 and leaves `processed_cols` alone. | ||
| 1448 | + if bh4 >= 2 && bh4 <= n4 { | ||
| 1425 | let inc = ((-max_col_offset + col_offset + 1) as usize).min(info.size); | 1449 | let inc = ((-max_col_offset + col_offset + 1) as usize).min(info.size); |
| 1426 | weight = weight.max(inc as u32); | 1450 | weight = weight.max(inc as u32); |
| 1427 | *processed_cols = (inc as isize - col_offset - 1).max(0) as usize; | 1451 | *processed_cols = (inc as isize - col_offset - 1).max(0) as usize; |
crates/ec-av1/src/stream.rsmodified+55 -14
| @@ -11060,7 +11060,13 @@ mod tests { | |||
| 11060 | // frame -- a DIFFERENT lane's shape, and the measured blocker of every | 11060 | // frame -- a DIFFERENT lane's shape, and the measured blocker of every |
| 11061 | // VERT_4-carrying recipe in the sweep. | 11061 | // VERT_4-carrying recipe in the sweep. |
| 11062 | let mut sub8_intra_refusals = 0u32; | 11062 | let mut sub8_intra_refusals = 0u32; |
| 11063 | - for bit_depth in [8u32, 10u32] { | 11063 | + // Every failure the sweep sees, asserted ONCE at the end. |
| 11064 | + let mut failures: Vec<String> = Vec::new(); | ||
| 11065 | + // Per bit depth: attempts that decoded at all, and attempts that fired an | ||
| 11066 | + // intra 1:4 strip AND compared pixel-exact. | ||
| 11067 | + let mut decoded_per_depth = [0u32; 2]; | ||
| 11068 | + let mut fired_exact_per_depth = [0u32; 2]; | ||
| 11069 | + for (depth_idx, bit_depth) in [8u32, 10u32].into_iter().enumerate() { | ||
| 11064 | let (mut named_refusals, mut matched, mut out_of_scope, mut oos_mismatch) = | 11070 | let (mut named_refusals, mut matched, mut out_of_scope, mut oos_mismatch) = |
| 11065 | (0u32, 0u32, 0u32, 0u32); | 11071 | (0u32, 0u32, 0u32, 0u32); |
| 11066 | let mut arms_proved = [0u32; 3]; | 11072 | let mut arms_proved = [0u32; 3]; |
| @@ -11158,11 +11164,23 @@ mod tests { | |||
| 11158 | let frames = match decode_stream(&stream) { | 11164 | let frames = match decode_stream(&stream) { |
| 11159 | Err(e) => { | 11165 | Err(e) => { |
| 11160 | let msg = e.to_string(); | 11166 | let msg = e.to_string(); |
| 11161 | - assert!( | 11167 | + // lane-intra16x4 r3: the ONLY refusals the 120-run sweep |
| 11162 | - msg.contains("unsupported"), | 11168 | + // (`~/.cache/intra16x4-tmp/sweep_r3.sh`, table in the |
| 11163 | - "{NAME} failed outright, not a named refusal ({bit_depth}-bit, \ | 11169 | + // report) reaches over these recipes -- each another |
| 11164 | - attempt {attempt}): {msg}" | 11170 | + // lane's shape. A refusal outside this list is a new wall |
| 11165 | - ); | 11171 | + // and fails the gate rather than being counted. |
| 11172 | + const MEASURED_REFUSALS: [&str; 3] = [ | ||
| 11173 | + "an intra 8x4/4x8 block inside an inter frame's sub-8x8 HORZ/VERT partition", | ||
| 11174 | + "an intra 4x4 block inside an inter frame's sub-8x8 split", | ||
| 11175 | + "an OBMC neighbour whose switchable interp filter was never recorded", | ||
| 11176 | + ]; | ||
| 11177 | + if !MEASURED_REFUSALS.iter().any(|r| msg.contains(r)) { | ||
| 11178 | + failures.push(format!( | ||
| 11179 | + "{bit_depth}-bit attempt {attempt}: refusal outside the measured \ | ||
| 11180 | + list: {msg}" | ||
| 11181 | + )); | ||
| 11182 | + continue; | ||
| 11183 | + } | ||
| 11166 | if msg.contains("sub-8x8") { | 11184 | if msg.contains("sub-8x8") { |
| 11167 | sub8_intra_refusals += 1; | 11185 | sub8_intra_refusals += 1; |
| 11168 | } | 11186 | } |
| @@ -11172,6 +11190,7 @@ mod tests { | |||
| 11172 | } | 11190 | } |
| 11173 | Ok(frames) => frames, | 11191 | Ok(frames) => frames, |
| 11174 | }; | 11192 | }; |
| 11193 | + decoded_per_depth[depth_idx] += 1; | ||
| 11175 | let after = crate::stream::intra16x4_in_inter_hits(); | 11194 | let after = crate::stream::intra16x4_in_inter_hits(); |
| 11176 | let fired = [ | 11195 | let fired = [ |
| 11177 | (after.0 - before.0) as u32, | 11196 | (after.0 - before.0) as u32, |
| @@ -11218,10 +11237,15 @@ mod tests { | |||
| 11218 | } | 11237 | } |
| 11219 | } | 11238 | } |
| 11220 | } | 11239 | } |
| 11221 | - for (i, (got, want)) in frames.iter().zip(&ffmpeg_frames).enumerate() { | 11240 | + // lane-intra16x4 r3: continue-and-sweep -- a mismatching attempt is |
| 11222 | - assert_eq!(got.y, want.y, "{NAME} frame {i} luma vs ffmpeg (attempt {attempt}, {bit_depth}-bit, arms {fired:?})"); | 11241 | + // RECORDED and the sweep goes on, so one arm's defect can no longer |
| 11223 | - assert_eq!(got.u, want.u, "{NAME} frame {i} U vs ffmpeg (attempt {attempt}, {bit_depth}-bit, arms {fired:?})"); | 11242 | + // hide every later arm (r2's attempt 0 panicked before arm 4 ran). |
| 11224 | - assert_eq!(got.v, want.v, "{NAME} frame {i} V vs ffmpeg (attempt {attempt}, {bit_depth}-bit, arms {fired:?})"); | 11243 | + // The end-of-sweep assert below fails on any recorded mismatch. |
| 11244 | + if mismatched { | ||
| 11245 | + failures.push(format!( | ||
| 11246 | + "{bit_depth}-bit attempt {attempt} (arms {fired:?}) mismatched ffmpeg" | ||
| 11247 | + )); | ||
| 11248 | + continue; | ||
| 11225 | } | 11249 | } |
| 11226 | for a in 0..3 { | 11250 | for a in 0..3 { |
| 11227 | if fired[a] > 0 { | 11251 | if fired[a] > 0 { |
| @@ -11230,6 +11254,7 @@ mod tests { | |||
| 11230 | } | 11254 | } |
| 11231 | } | 11255 | } |
| 11232 | matched += 1; | 11256 | matched += 1; |
| 11257 | + fired_exact_per_depth[depth_idx] += 1; | ||
| 11233 | } | 11258 | } |
| 11234 | eprintln!( | 11259 | eprintln!( |
| 11235 | "{NAME} ({bit_depth}-bit): {named_refusals} named refusals, {matched} pixel-exact \ | 11260 | "{NAME} ({bit_depth}-bit): {named_refusals} named refusals, {matched} pixel-exact \ |
| @@ -11237,10 +11262,26 @@ mod tests { | |||
| 11237 | 16x4/4x16/chroma-reference={arms_proved:?}, {out_of_scope} attempts carried none \ | 11262 | 16x4/4x16/chroma-reference={arms_proved:?}, {out_of_scope} attempts carried none \ |
| 11238 | ({oos_mismatch} of them mismatched)" | 11263 | ({oos_mismatch} of them mismatched)" |
| 11239 | ); | 11264 | ); |
| 11240 | - assert_eq!( | 11265 | + if oos_mismatch > 0 { |
| 11241 | - oos_mismatch, 0, | 11266 | + failures.push(format!( |
| 11242 | - "{NAME}: {oos_mismatch} attempt(s) with no intra 1:4 strip decoded but mismatched \ | 11267 | + "{bit_depth}-bit: {oos_mismatch} attempt(s) with no intra 1:4 strip decoded \ |
| 11243 | - ffmpeg -- a defect of another shape, not a pass" | 11268 | + but mismatched ffmpeg -- another shape's defect, not a pass" |
| 11269 | + )); | ||
| 11270 | + } | ||
| 11271 | + } | ||
| 11272 | + assert!( | ||
| 11273 | + failures.is_empty(), | ||
| 11274 | + "{NAME}: {} sweep failure(s): {failures:#?}", | ||
| 11275 | + failures.len() | ||
| 11276 | + ); | ||
| 11277 | + // The counter must have fired on a pixel-exact attempt at every bit depth | ||
| 11278 | + // the sweep actually decoded at. | ||
| 11279 | + for (depth_idx, bit_depth) in [8u32, 10u32].into_iter().enumerate() { | ||
| 11280 | + assert!( | ||
| 11281 | + decoded_per_depth[depth_idx] == 0 || fired_exact_per_depth[depth_idx] > 0, | ||
| 11282 | + "{NAME}: {bit_depth}-bit decoded {} attempt(s) but none of them fired an intra \ | ||
| 11283 | + 1:4 strip on a pixel-exact compare", | ||
| 11284 | + decoded_per_depth[depth_idx] | ||
| 11244 | ); | 11285 | ); |
| 11245 | } | 11286 | } |
| 11246 | // MEASURED (48-run sweep, report table): every recipe that makes | 11287 | // MEASURED (48-run sweep, report table): every recipe that makes |
lanes/intra16x4-r3.handoff.mdadded+97 -0
| @@ -0,0 +1,97 @@ | |||
| 1 | +# lane-intra16x4 r3 HANDOFF | ||
| 2 | + | ||
| 3 | +## 1. Attempt 0 verdict: OURS, root cause found and fixed (mv stack, 4-wide / 4-high blocks) | ||
| 4 | + | ||
| 5 | +Stream reproduced exactly as gate attempt 0 (`~/.cache/intra16x4-tmp/gen_a0.sh 8` -> | ||
| 6 | +`a0_8.obu`, md5 `0c9c588bb3d19f2feb2cecd31aa829fe`; 128x128 cq60 `noise`, 8-bit). | ||
| 7 | +Before the fix: 6 frames decoded, `cmp` vs ffmpeg differs at byte 26363 = frame 1 (122,13). | ||
| 8 | + | ||
| 9 | +Ladder (ours `EC_TRACE_MODE`/`EC_TRACE_MODE_STEP`/`EC_TRACE_COEFF` vs instrumented aomdec, | ||
| 10 | +same rungs) -- first diverging element is NOT a coefficient: the `tag=all_zero` ladder | ||
| 11 | +diverges at #515, but the mode ladder diverges earlier, at frame 1 block **mi(24,15)**, the | ||
| 12 | +last 4x16 strip of a 16x16-level `PARTITION_VERT_4`: | ||
| 13 | + | ||
| 14 | +| | stack | | ||
| 15 | +|---|---| | ||
| 16 | +| ours | (12,28) w648, (-4,26) w648, (-4,18) w8 -> mv0 (-4,18) | | ||
| 17 | +| aomdec | (12,28) w**650**, (-4,18) w648, (-4,26) w8, (6,332) w4 -> mv0 (-4,26) | | ||
| 18 | + | ||
| 19 | +`crates/ec-av1/src/mvstack.rs` `scan_row` / `scan_col` (and their `_compound` twins) were | ||
| 20 | +missing two clauses of libaom `scan_row_mbmi` / `scan_col_mbmi` | ||
| 21 | +(`~/.cache/aom-oracle/src/av1/common/mvref_common.c:143-236`): | ||
| 22 | + | ||
| 23 | +1. the weight / `processed_rows` branch is `if (xd->width >= mi_size_wide[BLOCK_8X8] && | ||
| 24 | + xd->width <= n4_w)` -- we had only `bw4 <= n4`, so a **4-wide / 4-high** block (exactly a | ||
| 25 | + 1:4 strip or a sub-8x8 leaf) got a raised weight AND set `processed_rows`, which also | ||
| 26 | + moves the later outer scans (that is the missing 4th candidate); | ||
| 27 | +2. `if (abs(row_offset) > 1) { col_offset = 1; if ((mi_col & 0x01) && xd->width < 2) | ||
| 28 | + --col_offset; }` -- the step-back on an odd mi_col under a sub-8px block was absent. | ||
| 29 | + | ||
| 30 | +Both clauses ported at all four sites (row, col, row-compound, col-compound). | ||
| 31 | +AFTER: `a0_8.obu` is entropy-exact -- all **125** aomdec `EC_MODE` entries match ours as an | ||
| 32 | +ordered subsequence (ours prints 5 extra `EC_MODE` lines for intra strips aomdec does not | ||
| 33 | +print) -- and the decode now stops on ANOTHER lane's named refusal, | ||
| 34 | +`an intra 8x4/4x8 block inside an inter frame's sub-8x8 HORZ/VERT partition`, instead of | ||
| 35 | +producing wrong pixels. Aligner: `~/.cache/intra16x4-tmp/align.py o_m2.log r_m.log`. | ||
| 36 | + | ||
| 37 | +## 2. r2's `g_8.obu` "6 frames bit-exact" claim is FALSE (measured, class stale-measurement) | ||
| 38 | + | ||
| 39 | +`~/.cache/intra16x4-tmp/g_8.obu` (md5 `2eaafd9eb56fbf9d597820ad74c9c4e3`, the r2 witness) | ||
| 40 | +does NOT decode pixel-exact, and did not before this round's fix either: a build of the | ||
| 41 | +**unmodified HEAD f403337** mvstack.rs mismatches at the same byte 53825 = frame 2, luma | ||
| 42 | +(64,88). aomdec and ffmpeg agree with each other, so the reference is not in doubt. | ||
| 43 | + | ||
| 44 | +Its first diverging element (`EC_TRACE_COEFF`, all_zero #913) is a DIFFERENT shape, not this | ||
| 45 | +lane's: frame 2 block **mi(14,12)**, an 8x8 compound leaf (`ref0=1 ref1=4`, mode 17). | ||
| 46 | +Mode info is exact through the interp read (both at rng 34722); then aomdec reads var-tx | ||
| 47 | +`txfm_split` symbols (rng 34722 -> 62656) and its first luma TU has `txb_skip ctx=6`, while | ||
| 48 | +we read NO tx-split symbol at all and use `ctx=3`. Owner: the sub-8x8 / var-tx inter lane, | ||
| 49 | +not intra16x4. | ||
| 50 | + | ||
| 51 | +## 3. Gate state | ||
| 52 | + | ||
| 53 | +`a_real_aomenc_inter_sequence_with_intra_16x4_strips_in_1to4_partitions_decodes_pixel_exact` | ||
| 54 | +(`crates/ec-av1/src/stream.rs:11023`) rewritten to **continue-and-sweep**: | ||
| 55 | +* named refusals accepted ONLY from a measured 3-string list (sub-8x8 HORZ/VERT intra, | ||
| 56 | + sub-8x8 split intra 4x4, OBMC-neighbour interp) -- anything else is a failure; | ||
| 57 | +* a mismatching attempt is RECORDED and the sweep continues (r2's attempt 0 panicked before | ||
| 58 | + arm 4 ran); every decoding attempt compares every decode-order frame Y/U/V; | ||
| 59 | +* ONE end-of-sweep assert over all recorded failures (mismatches + out-of-scope mismatches + | ||
| 60 | + unmeasured refusals), then a per-bit-depth assert that the counter fired on >= 1 | ||
| 61 | + pixel-exact attempt at every depth that decoded anything. | ||
| 62 | +Still `#[ignore]`d and the refusal is **NOT lifted**: `EC_INTRA16X4_DECODE=1` remains the | ||
| 63 | +bypass, `refusal_inventory.rs` / `gate_coverage.rs` untouched -- because no recipe found so | ||
| 64 | +far gives a pixel-exact attempt with the counter > 0 (see 4). | ||
| 65 | + | ||
| 66 | +Sibling gates run (`cargo test -p ec-av1 --lib -- 1to4 obmc mv_stack refusal_inventory | ||
| 67 | +gate_coverage vartx_rect`): **26 passed, 2 failed, 5 ignored**. The two failures are the two | ||
| 68 | +gates the ledger already records as known-red firing-assert/recipe defects on main | ||
| 69 | +(`..._16x16_level_1to4_partitions...`: "VERT_4/split-tx-8x4 arms read 0"; | ||
| 70 | +`real_aomenc_1to4_streams_..._rect_vartx_leaves_fire`: "rect var-tx leaf arm never fired"). | ||
| 71 | +Neither is a pixel mismatch, and both fail on a 0-count arm, i.e. recipe, not decode. | ||
| 72 | + | ||
| 73 | +## 4. Sweep (PARTIAL -- stopped at the turn cap, 49 of 120 rows) | ||
| 74 | + | ||
| 75 | +`~/.cache/intra16x4-tmp/sweep_r3.sh` -> `sweep_r3_partial.txt`: 5 sources x cq 55/60/63 x | ||
| 76 | +192x128|176x144 x --min-partition-size 8|4 x 8/10-bit. 49 rows done, ALL 8-bit. | ||
| 77 | +**0 EXACT.** Every row is either a named refusal (sub-8x8 intra, overwhelmingly) or a | ||
| 78 | +MISMATCH; the mismatching rows all have `16x4=0 4x16=0`, i.e. out-of-scope shapes. | ||
| 79 | +`--min-partition-size=4` is what makes strips fire (up to `16x4=3 4x16=10 chroma_ref=7`) and | ||
| 80 | +is also what brings the sub-8x8 intra refusal. 10-bit rows were not reached -- rerun the | ||
| 81 | +script (it is idempotent; it appends) to finish rows 50..120. | ||
| 82 | + | ||
| 83 | +## 5. Films (with the fix, `EC_RECT64_SPLIT=1 EC_INTRA16X4_DECODE=1`) | ||
| 84 | + | ||
| 85 | +`hg-0` 16x4=14, `hg-300` 4x16=8, `t900` 4x16=4, `t5400` 0/0, `t8100` 0/0 -> all stop at | ||
| 86 | +`an intra 8x4/4x8 block inside an inter frame's sub-8x8 HORZ/VERT partition`; `t6300` | ||
| 87 | +(16x4=1 4x16=1) stops at `an OBMC neighbour whose switchable interp filter was never | ||
| 88 | +recorded`. Same wall as r1 reported; no before/after frame counts measured this round. | ||
| 89 | + | ||
| 90 | +## Next step | ||
| 91 | + | ||
| 92 | +1. Finish the sweep (rows 50..120, the 10-bit half) looking for one EXACT row with a | ||
| 93 | + counter > 0. If none exists, this lane cannot lift its refusal until the sub-8x8 intra | ||
| 94 | + lane lands -- every strip-firing recipe found so far also carries that block. | ||
| 95 | +2. The gate's arm list still contains the r2 `bar_h` arm 4 whose stream (`g_8.obu`) carries | ||
| 96 | + the frame-2 8x8-compound var-tx defect of section 2; it will be recorded as a mismatch | ||
| 97 | + until that lane's defect is fixed. | ||