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 commit782097800d9dbd506a6575449a2095f35d21185fParent: 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)
2 changed files +11 -11
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, so | 16443 | + /// 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 rule | 16445 | + /// lane-tx64x16 r2: this test read the tables `[col][row]` (lane-rectsplit |
| 16446 | - /// (`txb_common.h:199-209`) in display coordinates; this pins the tables | 16446 | + /// 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", |