forge
Explore
Log in

Don't you dare go Hollow

Lane-palette r5 report -- job 1 merged+green+committed, job 2 deferred (budget)

Browse files at this commit

2c35d531cfb4bc64cb0592ad8bebdf446db0b4bcAhmet Kaan GümüşParent: 7b81e30
  • docs
    • lane-palette r5 report -- job 1 merged+green+committed, job 2 deferred (budget)
Show full message
docs(av1): lane-palette r5 report -- job 1 merged+green+committed, job 2 deferred (budget)
lanes/palette-r5.report.mdadded+98 -0
@@ -0,0 +1,98 @@
1+# lane-palette r5 report
2+
3+VERDICT: PARTIAL -- Job 1 (merge main, resolve, suite green, commit) is
4+done and committed (7666b7a). Job 2 (the range-ladder bisect) was not
5+started this round: the turn-budget hook fired at 55/75 right after job 1
6+landed green, and starting a fresh instrumentation+bisect with 20 calls
7+left risked leaving it half-done and uncommitted, which is worse than
8+deferring it cleanly.
9+
10+## Job 1 -- merge main, resolved, committed (7666b7a)
11+
12+`git merge main` (main at 53f5358) conflicted in six places in
13+`crates/ec-av1/src/decode.rs` and one in `crates/ec-av1/src/gate_coverage.rs`,
14+exactly as the charter predicted:
15+
16+- **`Neighbours` struct + its constructor** (2 conflicts): both sides added
17+ new fields to the same struct -- this lane's `above_palette_size` /
18+ `left_palette_size` / `above_palette_colors` / `left_palette_colors`, and
19+ main's `tile_row0_mi` / `tile_col0_mi`. Kept both (no overlap in meaning).
20+ One conflict marker (`>>>>>>> main`) was a stray leftover spanning past the
21+ constructor's closing brace into the unconflicted `start_tile` body --
22+ removed the stray marker line, left `start_tile`'s body (all main's,
23+ unconflicted) intact.
24+- **`read_intra_mode`'s signature** (1 conflict + 2 call-site conflicts):
25+ this lane added a `palette: Option<(usize, &[u16])>` param, main added
26+ `mi_r: usize, mi_c: usize` (used by `maybe_read_cdef_idx` inside the
27+ function body, which the merge kept). Both params are real and used --
28+ kept both, `palette` before `mi_r, mi_c`, and updated both call sites
29+ (~3548 rect/square path, ~3900 the 8x8-leaf path) to match the new
30+ 4-arg tail in the same order.
31+- **`PlaneBuf::reconstruct`** (1 conflict): this lane added the
32+ `PALETTE_PRED` thread-local override + `filter_intra` branch inside the
33+ `else`; main added real `smooth_neighbor` threading (was hardcoded
34+ `false`) plus dropped this lane's now-stale doc comment about the
35+ hardcoding being "exact for chroma". Kept this lane's palette-override +
36+ filter_intra structure, swapped the hardcoded `false` in the `predict()`
37+ call for main's `smooth_neighbor` parameter and its shorter comment
38+ (main's chroma lane made the old caveat comment no longer true).
39+- **`gate_coverage.rs`'s `NEVER_EXERCISED`**: this lane's side (via an
40+ already-merged local chroma lane) listed `enable-paeth-intra` /
41+ `enable-smooth-intra` (and, outside the conflict hunk, `enable-cdef`);
42+ main's side listed `enable-palette` (plus `enable-intrabc`, unconflicted).
43+ Per charter: kept `enable-intrabc` only. `enable-palette` drops because
44+ this lane's own real palette gate now exercises it; `enable-cdef` /
45+ `enable-paeth-intra` / `enable-smooth-intra` drop because main's
46+ CDEF-index and chroma-smooth/paeth lanes, now merged in, exercise those
47+ too -- none of the three belonged on this lane's list once main's fixes
48+ are actually present in the tree.
49+
50+**`refusal_inventory.rs`** (added cleanly by the merge, no conflict, but
51+incomplete): the suite's `the_decode_path_refuses_exactly_the_listed_cases`
52+test caught two refusal strings this lane's own history introduced that
53+weren't yet in the pinned `REFUSALS` list -- the r4 palette-Y pixel-mismatch
54+refusal ("...the index map decodes but the reconstructed pixels do not
55+match libaom yet (lane-palette r3/r4)") and a pre-existing
56+"a palette block with a split luma transform (round 1)" string. Added
57+both. No refusal strings removed or reworded by this merge; main's own
58+three reworded "encoder never writes" strings (2be815f, already on `main`
59+before this merge) carried through untouched.
60+
61+**Check:** `EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib -j4`
62+(timeout 600000ms): first run failed 1/244 on the missing refusal-inventory
63+entries (caught and fixed above); rerun: **244 passed, 0 failed, 17
64+ignored**. Scoped `refusal_inventory` run alone: 3/3 green. `cargo check -p
65+ec-av1`: clean (only pre-existing doc-warning noise).
66+
67+## Job 2 -- not started, deferred
68+
69+`deferred: the EC_TRACE_PALETTE range-ladder bisect (per-pixel range
70+compare between aomdec's decode_color_map_tokens rung, already built by r4
71+in scripts/instrument-aom-oracle.sh rungs 6/6b, and a matching
72+EC_AV1_TRACE print this lane still needs to add inside
73+decode_color_index_map in decode.rs ~2182/2792) -- ran out of turn budget
74+right after job 1 landed green; r4's handoff (lanes/palette-r4.report.md,
75+"Handoff for the next round") is still accurate and unconsumed: (1) add
76+the per-pixel EC_PAL row/col/ctx/n/rng / EC_PAL_VAL trace inside
77+decode_color_index_map, checking whether SymbolDecoder already exposes a
78+range field/accessor (msac.rs ~260) before adding one; (2) regenerate the
79+r3/r4 gate's exact fixture stream once (smptebars=size=64x64 + hue=s=0)
80+and save the bytes; (3) run aomdec EC_TRACE_PALETTE=1 and our own decoder
81+EC_AV1_TRACE=1 against the identical bytes and diff per
82+compare-range-not-tell / equal-range-means-unread; (4) if ranges match to
83+the end of the block, the bug is in palette application (PALETTE_PRED's
84+set/take pairing or the buf = colors[idx] build at decode.rs ~3347), not
85+the symbol reads.`
86+
87+`deferred: the "Then" milestones (palette UV, palette_bsize_ctx rect-strip
88+refusal, intrabc) -- unstarted, all budget went to job 1; unchanged from
89+r4's own deferral.`
90+
91+## Handoff for the next round
92+
93+Start straight from job 2 step (1) above -- the merge is done, the suite
94+is green, `main`'s CDEF/chroma/tile landings are now in this branch's tree
95+so no further merge debt exists. Next round should NOT need to touch
96+`decode.rs`'s struct/signature layout again; the palette index-map
97+function itself (`decode_color_index_map`, ~2182) is the only untouched
98+surface job 2 needs.