lane-av1422warp: name the two extra reads -- use_filter_intra + filter_intra_mode at mi(68,16)
Browse files at this commitbec28698f996ede3094a82f33eafccf10c484923Parent: 9048e8a1 changed file +55 -0
- lanes/av1422warp.report.md +55 -0
lanes/av1422warp.report.mdmodified+55 -0
| @@ -392,6 +392,61 @@ tx_size lookup (the oracle's `get_tx_size_context` for that block is | ||
| 392 | 392 | printable and ours computes the same `above + left` form as everywhere |
| 393 | 393 | else). |
| 394 | 394 | |
| 395 | +### Round 11 — the two extra reads are NAMED: `use_filter_intra` + `filter_intra_mode` | |
| 396 | + | |
| 397 | +Bit positions added to the MODE rungs on both sides (our `EC_ISTEP` | |
| 398 | +per-symbol macro, the oracle's twelve `EC_ISTEP` prints in | |
| 399 | +`decodemv.c`), paired BIT-POSITION-ANCHORED throughout, then reverted | |
| 400 | +(`grep -c bitpos` = 0). | |
| 401 | + | |
| 402 | +The window, with the constant −14 folded in (oracle bit in brackets): | |
| 403 | + | |
| 404 | +``` | |
| 405 | + mi(68,16) mi(64,24) | |
| 406 | +oracle 92304 skip/cdef/dq [92304] | |
| 407 | + 92305 mode 0 [92305] angle_y 0 [92305] | |
| 408 | + 92309 uv_mode 4 [92309] angle_uv -2 [92312] | |
| 409 | + ---- block ends ---- 92323 skip/cdef/dq | |
| 410 | +ours 92318 skip/cdef/dq [92304] | |
| 411 | + 92319 mode 0 [92305] angle_y 0 [92305] | |
| 412 | + 92323 uv_mode 4 [92309] angle_uv -2 [92312] | |
| 413 | + 92326 use_filter_intra val=1 <-- EXTRA | |
| 414 | + 92327 filter_intra_mode val=3 <-- EXTRA | |
| 415 | + 92337 skip/cdef/dq | |
| 416 | +``` | |
| 417 | + | |
| 418 | +**The two extra reads are at mi(68,16), and the oracle does not make | |
| 419 | +them.** Its silence is not a rung gap: the oracle's `use_filter_intra` | |
| 420 | +print sits inside `if (av1_filter_intra_allowed(cm, mbmi))` and its | |
| 421 | +`filter_intra_mode` print inside `if (...use_filter_intra)` | |
| 422 | +(`decodemv.c:638-656`), so a missing line means the read did not happen. | |
| 423 | + | |
| 424 | +**The block is the same on both sides** (enum-resolved, per the round-8 | |
| 425 | +lesson): oracle `EC_IMODE mi_row=68 mi_col=16 bsize=8`, and | |
| 426 | +`enums.h:100-115` makes 8 = **BLOCK_32X16**; ours reads | |
| 427 | +`EC_IMODE ... fn=rect bw=32 bh=16`. Same footprint, same bit position. | |
| 428 | + | |
| 429 | +**Which gate should have suppressed them** — | |
| 430 | +`av1_filter_intra_allowed` (`reconintra.h:75-79`) is | |
| 431 | + | |
| 432 | +``` | |
| 433 | +mbmi->mode == DC_PRED && palette_size[0] == 0 | |
| 434 | + && (enable_filter_intra && block_size_wide <= 32 && block_size_high <= 32) | |
| 435 | +``` | |
| 436 | + | |
| 437 | +The block satisfies the mode (0 = DC_PRED) and size (32/16, both <= 32) | |
| 438 | +conditions, so the suppressing input is one of the two this lane did NOT | |
| 439 | +measure: the sequence header's `enable_filter_intra`, or the block's | |
| 440 | +`palette_size[0]`. **This lane ran out of budget before measuring | |
| 441 | +either, and does not claim which.** | |
| 442 | + | |
| 443 | +**Unblock, now short.** Print `enable_filter_intra` and | |
| 444 | +`palette_size[0]` for this block on both sides and compare against the | |
| 445 | +predicate above. If `enable_filter_intra` agrees, the defect is our | |
| 446 | +`palette_size[0]` state for the block; if it disagrees, it is the | |
| 447 | +sequence-header bit. Either way it is a single boolean, and the fix is | |
| 448 | +one gate on the `use_filter_intra` read. | |
| 449 | + | |
| 395 | 450 | ### Round 10 — the second window: 3 bits, and they are in the MODE reads |
| 396 | 451 | |
| 397 | 452 | `EC_COEFF_STEP bitpos` re-added on both sides (18 rungs here, 11 in the |