lane-av1422warp: report -- attribution blocked by a rung gap; OBMC pair-merge underflow fixed
Browse files at this commit8f90d39429ad37df31382a7eb7dbe20da9d3b318Parent: 2375b811 changed file +63 -0
- lanes/av1422warp.report.md +63 -0
lanes/av1422warp.report.mdmodified+63 -0
| @@ -1467,6 +1467,69 @@ transform-type set libaom selects for a 16x32 chroma plane block at | ||
| 1467 | 1467 | |
| 1468 | 1468 | Not pinned, no gate, refusal untouched. |
| 1469 | 1469 | |
| 1470 | +## Round 25 — attribution blocked by a rung gap; a real underflow found on the way | |
| 1471 | + | |
| 1472 | +New head for this section's code: `a4532a41`. Bypass reverted, worktree | |
| 1473 | +clean, 4:2:0 control byte-exact. | |
| 1474 | + | |
| 1475 | +### The attribution could not be completed — and why | |
| 1476 | + | |
| 1477 | +`EC_COEFF_STEP` is emitted on both sides, but **neither side's tags | |
| 1478 | +cover reads 107493-107517**: the last tagged read on both is 107492 | |
| 1479 | +(`sign`/`post_golomb`) and the next is 107542 on ours and 107752 on the | |
| 1480 | +oracle's. So the `n=2,n=2,n=8` against `n=8,n=10,n=2` shape sits in a | |
| 1481 | +region where no coefficient rung fires on either side, and the promised | |
| 1482 | +lookup is not available without extending coverage into the phase that | |
| 1483 | +reads there (the `n=2` pair is partition-alphabet sized and the | |
| 1484 | +`n=8`/`n=10` are transform-type sized, which points at `read_var_tx_size` | |
| 1485 | +in `decodeframe.c` — untagged on both sides). | |
| 1486 | + | |
| 1487 | +### What the round did find: a real underflow in both OBMC walks | |
| 1488 | + | |
| 1489 | +Chasing the tag gap surfaced a **debug-build panic on a1.obu**: | |
| 1490 | +`attempt to subtract with overflow` at `decode.rs:31540`, then | |
| 1491 | +`31491` — `overlappable_left` and `overlappable_above`, both called | |
| 1492 | +from `decode_inter_block`. | |
| 1493 | + | |
| 1494 | +The OBMC pair merge snaps back to the chroma pair's even row/column | |
| 1495 | +(`row &= !1` / `col &= !1`, lane-obmcrec r1) so the ODD half is the | |
| 1496 | +neighbour for both strips. That snap rounds DOWN, so at an ODD | |
| 1497 | +`mi_row` / `mi_col` it lands on `mi_row - 1` / `mi_col - 1` and the | |
| 1498 | +`row - mi_row` / `col - mi_col` offsets pushed into the neighbour list | |
| 1499 | +underflow: `usize::MAX` in release, panic in debug. Both snaps are now | |
| 1500 | +clamped with `.max(mi_row)` / `.max(mi_col)`; where the offset was | |
| 1501 | +already non-negative the arithmetic is unchanged. | |
| 1502 | + | |
| 1503 | +**Witness and its limit.** The panic reproduces on a1.obu with | |
| 1504 | +`EC_TRACE_MODE_STEP=1`, single- AND multi-threaded, and does NOT | |
| 1505 | +reproduce without that flag — which I could not explain, and am | |
| 1506 | +recording as unexplained rather than inventing a reason. It is a | |
| 1507 | +provable arithmetic defect with a panic as its witness, so it is fixed; | |
| 1508 | +but it is **not** the frame-3 divergence: the 16-frame EC_SYMR | |
| 1509 | +sequence diff is unchanged and the first divergence is still seq=107517 | |
| 1510 | +at mi(64,56). Identity re-proved after the edit: 4:2:0 control | |
| 1511 | +byte-exact, 4:4:4 witness byte-identical to the pre-lane build, both | |
| 1512 | +pinned 422 witnesses pixel-exact. | |
| 1513 | + | |
| 1514 | +### Handoff | |
| 1515 | + | |
| 1516 | +Two open items, and the first is now the smaller one: | |
| 1517 | + | |
| 1518 | +1. **Extend the coefficient/transform-type rung into `read_var_tx_size` | |
| 1519 | + on both sides** (libaom `decodeframe.c`; this decoder's | |
| 1520 | + `read_var_tx_size` / txfm_partition read). That is what turns | |
| 1521 | + reads 107517-107519 from an alphabet guess into a symbol name, and | |
| 1522 | + it is the same shape as the two rung-coverage gaps this lane has | |
| 1523 | + already been bitten by. | |
| 1524 | +2. **The mi(64,56) 32x32 block's coefficient reads.** With coverage in | |
| 1525 | + place, read the transform-type set libaom selects for this block's | |
| 1526 | + 16x32 rect chroma plane block at 4:2:2 against ours. The `n=8` vs | |
| 1527 | + `n=10` alphabets already say the two sides are offering | |
| 1528 | + transform-type sets of DIFFERENT SIZES for the same block, which is | |
| 1529 | + a set-content or set-selection defect rather than a value one. | |
| 1530 | + | |
| 1531 | +Not pinned, no gate, refusal untouched. | |
| 1532 | + | |
| 1470 | 1533 | ## Two refuted hypotheses — do not re-chase |
| 1471 | 1534 | |
| 1472 | 1535 | 1. **"libaom ORs the block's OWN `uv_mode` into the edge-filter type."** False. |