forge
Explore
Log in

Don't you dare go Hollow

SB-level 1:4 gate is GREEN on current main -- plus two main-red pins (nz_map test read the abandoned transposition, 1:4 coverage hole closed)

Browse files at this commit

782097800d9dbd506a6575449a2095f35d21185fAhmet Kaan GümüşParent: afee91c
  • fix
    • SB-level 1:4 gate is GREEN on current main -- plus two main-red pins (nz_map test read the abandoned transposition, 1:4 coverage hole closed)
Show full message
fix(av1): SB-level 1:4 gate is GREEN on current main -- plus two main-red pins (nz_map test read the abandoned transposition, 1:4 coverage hole closed)

r1's red 16x64 gate was a STALE BASE, not a defect: rebasing lane-tx64x16 from
dc5553f onto main (5811ec5 -> 6d86d3a) turns
`a_real_aomenc_stream_with_a_superblock_level_1to4_partition_decodes_pixel_exact`
green with no change to the 1:4 wiring, and the r1 suite's "17 failures" drop to
2, neither of them this lane's:

- `decode::tests::nz_map_ctx_offset_tables_match_the_rect_rule` (RED on main,
  not on this branch's diff): the test read `NZ_MAP_CTX_OFFSET_32X64/_64X32` as
  `[col][row]` (lane-rectsplit r2's column-major premise, later disproved and
  reverted) while the tables and their only real consumer -- `base_ctx`'s
  `TxClass::TwoD` arm, decode.rs:1829 -- are display-major `[row][col]`. Read in
  the consumer's order; table content untouched, so every merged rect gate keeps
  the reading it is green under.
- `gate_coverage::tests::never_exercised_8bit_matches_the_gate_recipes`: this
  lane's gate passes `--enable-1to4-partitions=1` at 8 bit, so the 8-bit hole is
  retired; the 10-bit entry stays and now says so.

Rebase conflicts resolved keeping BOTH SB partition arms (main's AB arms from
part32 r4 and this lane's HORZ_4/VERT_4), with `reduced_tx_set` threaded into
the 1:4 `decode_block_rect64` calls; the unreachable `_` arm now refuses an
out-of-range partition value instead of the (now coded) 1:4 pair.
crates/ec-av1/src/decode.rsmodified+10 -6
@@ -16440,11 +16440,15 @@ pub(crate) fn decode_inter_frame_tile_with_cdfs(
16440 mod tests {16440 mod tests {
16441 use super::*;16441 use super::*;
16442 16442
16443- /// lane-rectsplit r2: `av1_nz_map_ctx_offset` is packed COLUMN-major, so16443+ /// libaom's generating rule (`txb_common.h:199-209`) in DISPLAY
16444- /// the two rect transcriptions in [`cdf`] must be read `[col][row]`.16444+ /// coordinates, pinned against the two rect transcriptions in [`cdf`].
16445- /// [`base_ctx_rect`] states libaom's generating rule16445+ /// lane-tx64x16 r2: this test read the tables `[col][row]` (lane-rectsplit
16446- /// (`txb_common.h:199-209`) in display coordinates; this pins the tables16446+ /// r2's column-major premise) while r3 reverted the tables themselves to
16447- /// against it, which is what a transposed read would break.16447+ /// display-major `[row][col]` -- the order [`base_ctx`] itself reads them
16448+ /// at `decode.rs`'s `TxClass::TwoD` arm, and the order every merged rect
16449+ /// gate is green under. The test was left pinning the abandoned half, so
16450+ /// it failed on `main` (32x64 display (row 0, col 2): table says 6 read
16451+ /// transposed, the rule says 11). Read in the consumer's order.
16448 #[test]16452 #[test]
16449 fn nz_map_ctx_offset_tables_match_the_rect_rule() {16453 fn nz_map_ctx_offset_tables_match_the_rect_rule() {
16450 for (w, h, table) in [16454 for (w, h, table) in [
@@ -16463,7 +16467,7 @@ mod tests {
16463 cdf::NZ_MAP_CTX_OFFSET_32[row][col]16467 cdf::NZ_MAP_CTX_OFFSET_32[row][col]
16464 };16468 };
16465 assert_eq!(16469 assert_eq!(
16466- table[col][row],16470+ table[row][col],
16467 want,16471 want,
16468 "{w}x{h} nz_map offset at display (row {row}, col {col})"16472 "{w}x{h} nz_map offset at display (row {row}, col {col})"
16469 );16473 );
crates/ec-av1/src/gate_coverage.rsmodified+1 -5
@@ -93,10 +93,6 @@ const TOOL_UNIVERSE: &[&str] = &[
93 /// depth retires the entry, and this test fails until it is deleted.93 /// depth retires the entry, and this test fails until it is deleted.
94 #[cfg(test)]94 #[cfg(test)]
95 const NEVER_EXERCISED_8BIT: &[(&str, &str)] = &[95 const NEVER_EXERCISED_8BIT: &[(&str, &str)] = &[
96- (
97- "enable-1to4-partitions",
98- "off in 42 gates, on in none: PARTITION_HORZ_4/VERT_4 at 64x64 needs TX_64X16 luma plus 32x8 chroma scans (lane-part32 r5)",
99- ),
100 (96 (
101 "enable-angle-delta",97 "enable-angle-delta",
102 "off in 36 gates, on in none: the directional-intra gates pin it off to isolate the base modes",98 "off in 36 gates, on in none: the directional-intra gates pin it off to isolate the base modes",
@@ -161,7 +157,7 @@ const NEVER_EXERCISED_10BIT: &[(&str, &str)] = &[
161 // gate passes `=1` for both.157 // gate passes `=1` for both.
162 (158 (
163 "enable-1to4-partitions",159 "enable-1to4-partitions",
164- "hole at both depths, see the 8-bit list",160+ "10-bit hole only: lane-tx64x16's 8-bit SB-level 1:4 gate passes `=1` and asserts both arms, but no 10-bit gate does",
165 ),161 ),
166 (162 (
167 "enable-angle-delta",163 "enable-angle-delta",