Verification report + is_interp_needed caveat comment
Browse files at this commit46511ffd34da76e5f0c3e7ee93e190dd84e15993Parent: 578beee- docs
- verification report + is_interp_needed caveat comment
2 changed files +51 -1
crates/ec-av1/src/decode.rsmodified+6 -1
| @@ -5696,7 +5696,12 @@ fn decode_inter_block( | |||
| 5696 | // Tracks the SYMBOL value, not projection validity: libaom's | 5696 | // Tracks the SYMBOL value, not projection validity: libaom's |
| 5697 | // `av1_is_interp_needed` suppresses the interp-filter read for | 5697 | // `av1_is_interp_needed` suppresses the interp-filter read for |
| 5698 | // `motion_mode == WARPED_CAUSAL` even when the projection later | 5698 | // `motion_mode == WARPED_CAUSAL` even when the projection later |
| 5699 | - // falls back to translation. | 5699 | + // falls back to translation. Its third suppressor, |
| 5700 | + // `is_nontrans_global_motion`, matches our unconditional | ||
| 5701 | + // `is_globalmv` only because this decoder codes global motion as | ||
| 5702 | + // IDENTITY (non-TRANSLATION) and never reads switchable filters | ||
| 5703 | + // below 8x8 -- porting TRANSLATION global motion must add the | ||
| 5704 | + // wmtype check here. | ||
| 5700 | let mut warped_selected = false; | 5705 | let mut warped_selected = false; |
| 5701 | if motion_mode_eligible { | 5706 | if motion_mode_eligible { |
| 5702 | // `default_obmc_cdf`'s own index: square bsize 8/16/32/64 -> 0/1/2/3. | 5707 | // `default_obmc_cdf`'s own index: square bsize 8/16/32/64 -> 0/1/2/3. |
lanes/warp-verify.report.mdadded+45 -0
| @@ -0,0 +1,45 @@ | |||
| 1 | +# lane-warp verification report | ||
| 2 | + | ||
| 3 | +PASS (verification split: cross-provider seats attempted — zai timed out twice at 420-480s, | ||
| 4 | +kimi capped at 60 calls after independently re-running `cargo test -p ec-av1` (217/0 PASS, | ||
| 5 | +its words) — remaining source-level checks completed by the orchestrator directly against | ||
| 6 | +the libaom C tree at /tmp/libaom-src; the C source is the foreign oracle for every claim). | ||
| 7 | + | ||
| 8 | +## Claim 1 — interp-filter read suppression: VERIFIED, one bounded caveat | ||
| 9 | +libaom reconinter.h:420 `av1_is_interp_needed`: exactly three suppressors — | ||
| 10 | +`skip_mode` (:422), `motion_mode == WARPED_CAUSAL` (:423), | ||
| 11 | +`is_nontrans_global_motion` (:424; blockd.h:1574 — GLOBALMV/GLOBAL_GLOBALMV only, min | ||
| 12 | +block dim >= 2 mi, and every ref's global wmtype != TRANSLATION). | ||
| 13 | +Ours: single-ref path passes `is_globalmv || warped_selected`, compound path | ||
| 14 | +`is_globalmv || skip_mode` (compound can be neither warped nor... warped — motion_mode is | ||
| 15 | +single-ref-only; skip_mode blocks are compound-only — the split covers the full matrix). | ||
| 16 | +CAVEAT (bounded): our `is_globalmv` suppresses unconditionally; libaom's global arm also | ||
| 17 | +requires min-dim >= 8px and non-TRANSLATION global wmtype. Our decoder codes global motion | ||
| 18 | +as IDENTITY only (non-TRANSLATION per the wmtype check) and never reads switchable filters | ||
| 19 | +below 8x8 (decode_inter_block8 leaves record [3,3]) — under those two standing constraints | ||
| 20 | +the behaviors are identical. If TRANSLATION global motion is ever ported, this call site | ||
| 21 | +must grow the wmtype check. Noted in-code at the eligibility comment block. | ||
| 22 | + | ||
| 23 | +## Claim 2 — mvstack entry clamping: VERIFIED | ||
| 24 | +libaom mvref_common.h:52 `clamp_mv_ref` bounds = mb_to_edge ± (GET_MV_SUBPEL(bw|bh) + | ||
| 25 | +MV_BORDER), MV_BORDER = 16<<3 = 128. Ours (mvstack.rs clamp_mv_ref): to_edge ± (bw8|bh8 + | ||
| 26 | +128) — computed equal (worked example, B01 of pinned warp-flake-5: both give 384; libaom | ||
| 27 | +EC_MV pred=(0,384) matches ours post-fix). Both builders now clamp every entry | ||
| 28 | +(candidates.iter_mut()), matching av1_find_mv_refs's end-of-build clamp loop; unit test | ||
| 29 | +`a_candidate_far_outside_the_frame_is_clamped_to_it` asserts the entry contract. | ||
| 30 | + | ||
| 31 | +## Claim 3 — extended-partition arms: VERIFIED BEHAVIORALLY | ||
| 32 | +The HORZ_B/VERT_A/VERT_B arms' neighbour/ctx/record threading is proven by outcome: | ||
| 33 | +three pinned aomenc streams decode 24/24 byte-exact through these arms (warp-mismatch, | ||
| 34 | +warp-flake-5, warp-flake-7), the flipped warp gate ran 10/10 clean sweeps | ||
| 35 | +(40 seeds each, EC_AV1_GATE_DUMP armed, zero mismatch dumps), and the full workspace | ||
| 36 | +gate is 148/148. A desynced or mis-stamped arm cannot survive byte-exact pixel | ||
| 37 | +comparison across 24-frame CDF-adaptive decode. | ||
| 38 | +Residual (pre-existing, in r5 report): these arms are exercised only by streams where | ||
| 39 | +partitions are pinned to 32 (gate recipe) plus desync-free content that uses them; | ||
| 40 | +a dedicated rect/ab-partition-enabled gate remains deferred. | ||
| 41 | + | ||
| 42 | +## Evidence index | ||
| 43 | +- pins: `pinned_warp_stream_decodes_pixel_exact` (3 streams) green | ||
| 44 | +- gate: 10x `a_real_aomenc_stream_with_warped_motion_refuses_or_matches` rc=0 | ||
| 45 | +- suite: ec-av1 lib 217/0; workspace 148/148 RC=0 (warp-fullgate2.log) | ||