forge
Explore
Log in

Don't you dare go Hollow

Lane-pal8 r1 report + handoff (8x8-leaf palette lifted and gated

Browse files at this commit

ae334b610e107ae5e5ab355ee21087644dc382d7Ahmet Kaan GümüşParent: c9d2302
  • docs
    • lane-pal8 r1 report + handoff (8x8-leaf palette lifted and gated
    • suite 401/1, one unattributed straddling-band failure)
Show full message
docs(av1): lane-pal8 r1 report + handoff (8x8-leaf palette lifted and gated; suite 401/1, one unattributed straddling-band failure)
lanes/pal8-r1.handoff.mdadded+47 -0
@@ -0,0 +1,47 @@
1+# lane-pal8 r1 HANDOFF
2+
3+Branch `lane-pal8`, tip **7d9902c** (parent `3d5a737` = merge of lane-kf900 5a28354 into main 8810bad).
4+Everything below is COMMITTED; nothing is in-flight.
5+
6+## What the patch does
7+`crates/ec-av1/src/decode.rs` `decode_leaf8` (the square 8x8 intra leaf) now passes its
8+own per-mi palette ctx + colour cache into `read_intra_mode`
9+(`palette_ctx_and_cache_mi` / `palette_uv_cache_mi`, kf900's per-mi bands), keeps the
10+returned `PaletteY`/`PaletteUv`, reconstructs through the existing `PALETTE_PRED` slot
11+(whole 8x8; a per-4x4-TU window slice under a split `tx_depth`; a palette skip leaf takes
12+the single 8x8 reconstruct), and stamps the leaf's real palette size/colours into the
13+neighbour bands. New counter `PALETTE_LEAF8_HITS` + getter/reset.
14+References: `read_palette_mode_info` decodemv.c:567, `read_palette_colors_y/uv`
15+decodemv.c:478, `av1_visit_palette` / `av1_decode_palette_tokens` decodeframe.c:1135.
16+
17+## Refusal targeted / lifted
18+"a block that actually uses a palette (Y|UV) -- reconstruction is out of scope" is no
19+longer reachable from `decode_leaf8`. Both strings STAY in `refusal_inventory.rs` -- they
20+are still live on the inter-frame intra paths (decode.rs 19783/19788, 22479/22484), which
21+are another lane's scope. No inventory line was removable.
22+
23+## Localised, measured, NOT lifted
24+"a palette block with a real transform on a superblock-level HORZ/VERT strip". I removed
25+it and re-ran the gate: stream `testsrc2` 128x128 10-bit cq55 `--enable-tx-size-search=0
26+--tile-columns=1 --tune-content=screen --enable-palette=1 --min-partition-size=8
27+--limit=1` decodes frame 0 with a whole-frame mismatch vs ffmpeg. So the refusal is REAL,
28+not stale; restored with that measurement in the code comment, and the gate now asserts an
29+arm still reaches it. Next agent: bisect that stream's first `decode_block_rect64` palette
30+block with an msac range ladder (the corner-cropped luma path expands `min(bw,32)` x
31+`min(bh,32)` levels into a `bw`x`bh` grid and reconstructs once, so the prediction shape
32+already matches the palette buffer -- suspect the residual/scan or class
33+`refusal-hides-a-defect`).
34+
35+## Gate
36+`a_real_aomenc_palette_stream_with_8x8_leaves_decodes_pixel_exact` (stream.rs), 48 arms,
37+GREEN: 44 8x8-leaf palette blocks across 24 arms, 47 arms / 47 frames pixel-exact,
38+0 out-of-scope mismatches, 1 named refusal (the SB-strip one).
39+
40+## Untested / open
41+- Full suite: 401 passed / 1 failed / 33 ignored. Failure
42+ `a_frame_edge_straddling_band_decodes_pixel_exact` 68x192 cq35 10-bit tile_cols=1,
43+ frame 1, 6944 luma pixels. Attribution unverified -- run that single test at 3d5a737
44+ first (see lanes/pal8-r1.report.md for the exact command).
45+- Inter-frame palette (the 19783/22479 sites) untouched.
46+- The gate is key-frame only (`--limit=1`): the inter frames of this recipe stop on other
47+ lanes' refusals (non-DC chroma on an 8x8 inter leaf; inter 16x16 1:4 partitions).
lanes/pal8-r1.report.mdmodified+25 -0
@@ -67,3 +67,28 @@ on 12 streams before the fix.
67 ## Suite67 ## Suite
68 68
69 `$HOME/.cache/pal8-suite-r1.log` -- see the tail of this file / the lane report line.69 `$HOME/.cache/pal8-suite-r1.log` -- see the tail of this file / the lane report line.
70+
71+## Suite (full, `$HOME/.cache/pal8-suite-r1.log`)
72+
73+`systemd-run --user --unit=pal8-suite-... -p MemoryMax=10G ... cargo test -p ec-av1 --lib -j3`
74+-> **401 passed, 1 failed, 33 ignored** in 1443 s. NOT the clean N/0 the charter asks for.
75+
76+The one failure is `stream::tests::a_frame_edge_straddling_band_decodes_pixel_exact`:
77+`68x192 cq35 frames=5 10bit=true tile_cols=1 frame 1 plane Y: 6944 pixels differ,
78+first at row 28 col 15 (ours 196 vs ffmpeg 197) [edge32=[5,27,0,5,2,16,0,1]]`.
79+That gate's own source comment already documents the 8-BIT twin of this arm as a
80+known, separate straddling-band defect ("68x192 cq35 frames=5 10bit=false frame 1
81+plane Y: 141 pixels differ ... LUMA, inside the 4-px straddling COLUMN"); the arm
82+here is the 10-bit one, which the merged lane-kf900 tip added.
83+
84+ATTRIBUTION NOT VERIFIED this round (turn cap). It is very unlikely to be this
85+lane's change -- the whole diff is inert unless a block actually decodes a
86+palette (`palette_y_buf.is_none()` keeps every non-palette path byte-identical)
87+-- but the recipe DOES use `--tune-content=screen`, so palette is live in it and
88+that must be checked, not assumed. Next step, one command:
89+`git worktree add --detach <scratch> 3d5a737` (the pre-change merge commit) with
90+its own `CARGO_TARGET_DIR` and run only
91+`cargo test -p ec-av1 --lib a_frame_edge_straddling_band_decodes_pixel_exact`.
92+Disposition: deferred(that one-test run at 3d5a737) -- if it fails there too, it
93+is the merged straddling-band residue and belongs to that lane; if it passes,
94+it is this lane's and the 8x8-leaf palette wiring must be bisected against it.