forge
Explore
Log in

Don't you dare go Hollow

ec-av1: lane-av1-422i report -- bottom-SB-row gather already rng-exact at HEAD; refusal stays

Browse files at this commit

3ed346ed98a84fbcd45efd0222fab05557f8540cAhmet Kaan GümüşParent: dcd6a07
lanes/av1422i.report.mdadded+76 -0
@@ -0,0 +1,76 @@
1+# lane-av1-422i — bottom-SB-row partition gather re-measured: already rng-exact at HEAD; refusal stays
2+
3+## Outcome
4+
5+The assignment's premise — "ours reads no partition symbol at the bottom 64x64
6+mi(32,0)" — is FALSE at HEAD 6cdd3dae, and this round proves it with live
7+traces instead of the previous round's EC_PART-only dumps. The gathered
8+two-symbol read the assignment asks for has existed since lane-hgkf r1
9+(`decode.rs:27096`, the `(true, false)` arm of the 64-level dispatch): it reads
10+`gather(&cdfs.partition_w64[ctx], VERT_ALIKE)` with
11+`VERT_ALIKE = [2, SPLIT, 4, 6, 7, 9]`, maps 0 → PARTITION_HORZ / 1 → SPLIT —
12+line-for-line libaom `ec_read_partition_impl` + `partition_gather_vert_alike`
13+(av1_common_int.h:1485, `out[0] = TOP − {VERT, SPLIT, HORZ_A, VERT_A, VERT_B,
14+VERT_4}`).
15+
16+Why the previous round could not see it: the `(true, false)` arm emits
17+`OUR_PART` under `EC_AV1_TRACE` (trace_edge, decode.rs:6068), not the oracle's
18+`EC_PART` format — the 422h dumps were filtered on `EC_PART`, so the read was
19+invisible and looked like "no symbol".
20+
21+## Measurement
22+
23+Fixture `/tmp/t422.obu` reused by hash
24+`d3fa4beeb1309033e4a03f5ae5c431c8fa8386ba1ada088684710423c7938129`
25+(256x144, 22 frames, 64x64 superblocks). Probe: `decode_probe` with a LOCAL
26+`EC_AV1_ALLOW_422_PROBE` bypass at the stream.rs:1709 refusal — REVERTED
27+before commit. Ours run with `EC_TRACE=1 EC_AV1_TRACE=1` (fresh trace
28+/tmp/u_f0.txt); oracle o_pal.txt.
29+
30+- Context numbering: ours `partition_ctx` indexes `partition_w64` 0..15 with
31+ the `bsl*4` term folded out — a constant −12 rename of libaom's ctx for the
32+ 64 level (ours 0/2/2/2, 1/3/3 vs oracle 12/14/14/14, 13/15/15 at every
33+ paired SB). Same slot, same CDF, same state; pairing confirms it.
34+- Bottom superblock row, frame 0 — all four gathered reads pair rng-for-rng,
35+ pre-read rng identical:
36+ - mi(32,0) ours 54818 / oracle 54818 (oracle ctx 13, value 1 = HORZ)
37+ - mi(32,16) ours 41610 / oracle 41610
38+ - mi(32,32) ours 61472 / oracle 61472
39+ - mi(32,48) ours 45794 / oracle 45794
40+- Interior pairing of the mi(32,0) strip continues past the gather: post
41+ uv_mode rng 43856 on both sides (mode=12, uv_mode=12), first luma all_zero
42+ ends at 53566 on both sides. The 64x32 strip's 4:2:2 chroma (32x32 square,
43+ ss (1,0)) rides the square arm as documented. has_rows=false correctly
44+ skips the second strip on both sides.
45+- Frame 0 therefore decodes through the bottom superblock row. The
46+ `EC_RECTCHROMA_GAP luma=64x32 tx=32x32 chroma=32x32` lines are the
47+ non-fatal diagnostic at decode.rs:10225, not a desync.
48+
49+## Next divergence (named stop — inter rect lane, not this lane)
50+
51+Frame 1 (first inter frame) panics at `decode.rs:29094:39` — `range end index
52+68 out of range for slice of length 64` — in the all-zero-residual prediction
53+copy: a rect inter block's `prediction[src..src + w]` reads past a 64-sample
54+buffer. Trigger context: mi(4,0) 64x64 inter, `partition_w16 value=7`
55+(VERT_B) at the 16-level, tell=542. The earlier round's decode.rs:14888
56+`decode_rect4_16_strip` closed-shape stop was not reached this run (frame 0
57+completes; the panic fires first). Both sites are downstream of the bottom-row
58+partition gather and outside this lane's ownership; decode.rs:14888 and the
59+decode.rs:19169 skip arm remain untouched, as do the four chroma-ref fixes.
60+
61+## State
62+
63+- No source change this round: the gather the assignment requested is already
64+ in HEAD, so there is nothing to write without inventing a duplicate arm.
65+ `git diff` vs 6cdd3dae touches only this report; the stream.rs probe bypass
66+ is reverted (refusal `a chroma format of 4:2:2 (subsampling_x !=
67+ subsampling_y)...` byte-identical, unconditional).
68+- Refusal STAYS: the 16-frame stream is not pixel-exact (frame 1 panics), so
69+ the delete condition (pixel-exact + 422 chroma counter) is unmet.
70+- 420 gates green (private target dir `$HOME/.cache/cargo-target-av1422i`):
71+ `a_non_420_subsampled_sequence_header_is_refused_by_name` 1/1 (proves the
72+ reverted refusal fires by name), `a_real_aomenc_stream_with_a_skipped_8x8_
73+ intra_leaf_whose_tx_split_decodes_pixel_exact` 2/2 (both bit depths) under
74+ `EC_AV1_REQUIRE_AOMENC=1`.
75+- No push. Traces left at /tmp/u_f0.txt (ours, frame 0 bottom row + frame 1
76+ panic) and /tmp/o_pal.txt (oracle).