forge
Explore
Log in

Don't you dare go Hollow

vp9refsetup: record merge-side follow-ups (merge commit, conflicts, gates, sweep)

Browse files at this commit

6d8d1b22b86478e3e3a8c90cdcdc24bcf319b08eAhmet Kaan GümüşParent: c67d95a
Merge 33904e74 (main ccc5a836 + lane 2129be51). The merge was not mechanical:
main had absorbed the u16/hbd lane, so the scaling was ported onto the u16
kernels. Records the two conflict regions (decode.rs capability doc, mc.rs
convolve/predictor signatures), the combine-not-pick resolution, the merged-tree
gate counts (25 binaries, 40 passed, 0 failed, 0 ignored; warning parity 5) and
the ten-stream byte-identical corpus re-sweep with arithmetically derived frame
counts, plus the worktree/target-dir cleanup.
lanes/vp9refsetup.report.mdmodified+91 -0
@@ -165,3 +165,94 @@ crate-level `drv_pix3` comparison in gate 3.
165165 passed.
166166 * corpus sweep above — 8 streams IDENTICAL.
167167 * base-worktree fail-pre-fix — 3 failures with the named refusals.
168+
169+## MERGE-SIDE FOLLOW-UPS (2026-09-19)
170+
171+- **Doc nit dropped on the lane before the merge** (commit `2129be51`): the
172+ "`scale=...:eval=frame` exits 139 with a 0-byte file (ffmpeg 8.1.2)" sentence
173+ is gone from this report and from `scaledref_exact.rs`. The reviewer cannot
174+ reproduce the exit-139 shape; the builder can — environment-dependent, so it
175+ is not load-bearing. Kept: ffmpeg's rawvideo output size is locked to the
176+ first decoded frame, hence the two-pass dump recipe (frame 0 alone with
177+ `-frames:v 1`, frames 2..N with `select=gte(n,1)`).
178+- **Merge**: `33904e74` — parents `ccc5a836` (main) and `2129be51` (lane), so a
179+ real merge, not a fast-forward. Between this lane's base `79984549` and the
180+ merge, main absorbed `lane-vp9-hbd`, which converted every ec-vp9 plane to
181+ `u16` (`ec_vp9::Sample`) and threaded `bd` through every pixel kernel. The
182+ lane wrote its scaling against the u8 kernels, so the merge was resolved by
183+ porting the lane's semantics onto the u16 substrate.
184+- **Conflict regions and resolution** (both sides read from the index `:2:`/`:3:`;
185+ the working-tree markers elide lines):
186+ - `crates/ec-vp9/src/decode.rs` — one conflict, the capability doc block.
187+ Combined: both the profile-2 10-bit clause and the intra-only /
188+ scaled-reference clauses in one paragraph. The auto-merged remainder was
189+ verified by diff: everything the lane changed (intra-only dispatch +
190+ `decode_intra_only_frame`, `frame_is_intra_only` routing in `decode_block`,
191+ `ScaleFactors::setup` + `valid_ref_frame_size` refusal, the removed
192+ size-change refusal) is present; the only deltas vs the lane side are
193+ u16/`bd`/profile-2 mechanics.
194+ - `crates/ec-vp9/src/mc.rs` — four conflicts (the two 1D convolve calls in
195+ `inter_predictor`, the `convolve_vert` call inside the avg branch, and the
196+ `build_inter_predictors` signature + coordinate head). Resolved by
197+ COMBINING: main's `Sample`/`bd` kernels stay the substrate and the lane's
198+ scaling is ported onto them —
199+ `convolve_horiz(.., x0_q4, x_step, w, rows, avg, bd)`,
200+ `convolve_vert(.., y0_q4, y_step, w, h, avg, bd)` (both default
201+ `SUBPEL_SHIFTS`), the scaled dispatch at the top of `inter_predictor`, the
202+ lane's extracted `convolve_2d` ported to `Sample` + `bd`, and `sf:
203+ &ScaleFactors` in `build_inter_predictors` with the lane's scaled
204+ block/MV mapping. The scale arithmetic (`scale_value`,
205+ `vp9_scale_mv`, step derivation) is depth-independent and kept verbatim.
206+ Because both sides rewrote these functions, the file was re-composed rather
207+ than marker-resolved; the result was proof-read in both directions
208+ (`diff` vs each side shows only the other side's delta).
209+ - `crates/ec-vp9/src/header.rs` — clean auto-merge (`use_key_partition`).
210+ - `crates/ec-vp9/tests/{intraonly,scaledref}_exact.rs` — not a git conflict,
211+ but the lane's u8-era comparison had to be re-expressed: the pictures are
212+ `Vec<Sample>` (u16) now, so the byte comparison goes through
213+ `got.extend(pic.y.iter().map(|&v| v as u8))` (the crate's convention in
214+ `odd_dimensions_exact.rs` / `inter_pixels_exact.rs`).
215+- **Create-list audit**: exactly the expected creates — the three TRACKED
216+ fixtures under `crates/ec-vp9/tests/data/` (they are committed, not
217+ gitignored, so no fixture-copy step), `intraonly_exact.rs`,
218+ `scaledref_exact.rs`, this report, `lanes/vp9refsetup/gen_intraonly.py` and
219+ `gen_scaledref.c`. No junk files, no target artifacts.
220+- **Gates on the MERGED tree** (`CARGO_TARGET_DIR=$HOME/.cache/cargo-target-vp9refmerge`):
221+ `cargo test -p ec-vp9` → **25 binaries, 40 passed / 0 failed / 0 ignored**;
222+ the non-skipped named gates: `scaledref_exact` 2/2, `intraonly_exact` 1/1,
223+ `odd_dimensions_exact` 3/3, `hbd_exact` 2/2, `inter_pixels_exact` 3/3,
224+ `keyframe_exact` 4/4, lib 9/9. Warning parity:
225+ `cargo check -p ec-vp9 --all-targets` → exactly the 5 pre-existing
226+ (`TM_PRED`, `read_partition`, `partition_probs`, `x_mis`, `y_mis`). No crate
227+ in the repo depends on `ec-vp9` (only on `ec-vp9-syntax`), so there is no
228+ cross-crate suite to run.
229+- **Merged-tree corpus re-sweep** (both lanes touched the prediction path;
230+ EVERY stream regenerated from the merged build and `cmp`ed against the
231+ libvpx 1.15.0 oracle) — all **BYTE-IDENTICAL**, with the frame count derived
232+ arithmetically (`dump_bytes / (w*h + 2*ceil(w/2)*ceil(h/2))`, ×2 for u16):
233+
234+| stream | frames | oracle | bytes |
235+| --- | --- | --- | --- |
236+| `tests/data/scaledref.ivf` (1x 1280x720 + 9x 640x360) | 10 | `drv_pix3` | 4,492,800 |
237+| `tests/data/scaledref_odd.ivf` (1x 1279x719 + 9x 640x360) | 10 | `drv_pix3` | 4,490,801 |
238+| `tests/data/intraonly.ivf` (11 coded, 10 shown) | 10 | `drv_pix3` | 1,152,000 |
239+| `vp9-1080p-23.976-8bit` | 48 | `drv_pix3` | 149,299,200 |
240+| `vp9-1080p-60-8bit` | 120 | `drv_pix3` | 373,248,000 |
241+| `vp9-superframe-altref` | 60 | `drv_pix3` | 6,912,000 |
242+| `vp9-tiles-1280` | 30 | `drv_pix3` | 41,472,000 |
243+| `vp9-1080p-23.976-10bit` | 48 | `drv_pix10` (u16-LE) | 298,598,400 |
244+| `vp9-1080p-60-10bit` | 120 | `drv_pix10` (u16-LE) | 746,496,000 |
245+| odd `testsrc2` patched 321x241 | 12 | `drv_pix2` + `pixcmp2.py` | 1,395,876 |
246+
247+- **Push**: `ccc5a836..33904e74 main -> main`; `git ls-remote origin
248+ refs/heads/main` == `33904e747ab7881b4e97d518f68cd03d3afa6c6b` == local HEAD.
249+- **Cleanup**: lane worktree `../edith_codecs-vp9ref` removed (branch
250+ `lane-vp9-refsetup` kept as history); `rm -rf
251+ $HOME/.cache/cargo-target-vp9ref{,merge,verify}` and the builder/verify
252+ dirs. `EDITH_FINDINGS.md` (untracked, sibling session) left untouched.
253+- **Instruments kept**: `tests/scratch_pixdump{,10}.rs` + the `EC_VP9_*` trace
254+ hooks stay in tree — they are the next lane's comparators, not throwaways.
255+- **Still open** (unchanged from the lane): the `valid_ref_frame_size` ratio
256+ bound stays a named refusal (libvpx errors the same way), and profile-2
257+ intra-only / scaled-reference interaction has no corpus stream — the scaled
258+ path is exercised only at profile 0 (the odd fixture covers odd x scaled).