R3 handoff -- root cause proven, fix withheld for the 1:4 sibling gate
Browse files at this commitb4995b030da332bf23eb90469f972a6c87f3ca94Parent: ff5d3c5- docs
- r3 handoff -- root cause proven, fix withheld for the 1:4 sibling gate
1 changed file +39 -0
- lanes/mergefix-r3.handoff.md +39 -0
lanes/mergefix-r3.handoff.mdadded+39 -0
| @@ -0,0 +1,39 @@ | ||
| 1 | +# lane-mergefix r3 handoff | |
| 2 | + | |
| 3 | +Tip: lane-mergefix 4d8a59d. Code is behaviourally identical to r2 (the r3 fix in | |
| 4 | +62a4cce was reverted in 4d8a59d); read `lanes/mergefix-r3.report.md` first. | |
| 5 | + | |
| 6 | +## Do not re-hunt | |
| 7 | +The straddling-band partition-ctx divergence at mi(16,32) is SOLVED and proven: | |
| 8 | +`decode_inter_block`'s var-tx branch (decode.rs ~20857) publishes `side, side` instead | |
| 9 | +of the strip's `write_w, write_h`. With the true footprint the ladder matches the | |
| 10 | +oracle exactly (ctx 0 -> 1 at rng=51641, exit 38495) and the gate goes 3622 -> 3376 px. | |
| 11 | + | |
| 12 | +## Why it is not in | |
| 13 | +Any form of that fix (4 variants measured, listed in the report) makes two attempts of | |
| 14 | +`real_aomenc_1to4_streams_..._rect_vartx_leaves_fire_before_a_named_refusal` refuse with | |
| 15 | +"a non-skip rectangular (HORZ/VERT/HORZ_B) strip needs rectangular residual coding", | |
| 16 | +so that gate's leaf counter hits 0 and it fails. `side` at those call sites is not the | |
| 17 | +piece's parent bsize (sb128 pieces get side=64 under a 128 parent), so a parent-span | |
| 18 | +write keyed off `side` stamps the wrong span. | |
| 19 | + | |
| 20 | +## r4 job | |
| 21 | +Move the partition-context band write out of `decode_inter_block` into the partition | |
| 22 | +arms (SB-level and 64-level HORZ/VERT/1:4/AB, inter and intra), one write per | |
| 23 | +partition over the PARENT span with the subsize's width above / height left, exactly | |
| 24 | +like libaom `update_partition_context(xd, mi_row, mi_col, subsize, bsize)`; delete the | |
| 25 | +`side, side` publish for the non-square case at the same time. Re-run BOTH gates in one | |
| 26 | +invocation: | |
| 27 | +`cargo test -p ec-av1 --lib -- a_frame_edge_straddling_band_decodes_pixel_exact real_aomenc_1to4_streams_decode_pixel_exact_and_rect_vartx` | |
| 28 | + | |
| 29 | +## Second, independent residue | |
| 30 | +Frame 1 of the pinned stream is entropy-exact (EC_MODE ladder for all 66 blocks; | |
| 31 | +coefficient all_zero/eob ladder 225/225) and still differs by 3376 px, first at row 0 | |
| 32 | +col 64 = mi(0,16): a 32x32 compound SKIP block (mode=19 ref0=1 ref1=7 mv=(0,0)). | |
| 33 | +That is a compound-prediction reconstruction defect; drive it with EC_AV1_PREFILT_DUMP | |
| 34 | +on frame 1, not with an entropy ladder. | |
| 35 | + | |
| 36 | +## Environment | |
| 37 | +Stream `~/.cache/mergefix-tmp/str61.obu` md5 a14892ed0ba88b6ad2b566e251ea2d33 (recipe | |
| 38 | +`mkstr.sh`); instrumented oracle `~/.cache/mergefix-tmp/aom-build/aomdec` (EC_VARTX added | |
| 39 | +in r2). Suite log `$HOME/.cache/mergefix-suite-r3.log`. |