forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to lanes/av1tilerows.report.mdClear filter

2026-09-28

lanes/av1tilerows: round 9 — the 4:4:4 128-root leaf-size fork is gone on mainAhmet Kaan Gümüş · 129714d
lanes/av1tilerows: round 9 — the 4:4:4 128-root leaf-size fork is gone on main

Re-measured on a clean detached worktree at merged main e719050d (my fix
4e151813 is an ancestor there, reach call ss-aware, so the base is sound).

THE FORK NO LONGER EXISTS. Same recipe and stream as rounds 3-8
(v2_c40.obu, 4:4:4 lossy cq-40, --sb-size=128, 256x256, 36 shown frames):

  my base (rounds 3-8)      1415 ... 62614 ... diverges throughout
  merged main e719050d      0 on all 36 frames

And the authoritative measure:

  oracle reads 217570   merged-main reads 217570
  ENTROPY LOCKSTEP over 217570 reads

Identical read COUNTS and no value/range/symbol/post_rng divergence over
the entire stream. The read-41976 fork, the 32-vs-64 transform-class
disagreement, and every downstream desync are absent on main.

ATTRIBUTION: ONE NEGATIVE RESULT, NO GUESS. The obvious candidate in my
named area is av1h5's mu_chunk_order ("read a 128 root's tokens CHUNK-major,
not block-raster"), absent from my base. Ablated: 4155c7c7 + my fix +
8a91ee14 alone STILL DIVERGES (1415, 1582, 478, 62614, 60028, ...), so that
commit is not sufficient on its own. I could not build the all-three-av1h5
arm — cherry-picking 34b56884/f6fbad26 onto my base conflicts — so I report
the negative and stop rather than attributing the fix to a lane on a guess.

The parked inter-64x64 EC_PART_VAL alignment fix stays parked: main now
answers the question outright, so it is no longer needed.

(cherry picked from commit 571b4090b1d68400a34c65b56598bc47276bb7c4)

2026-09-29

lanes/av1txsizeaudit r5: re-rebase onto ec4e9528, declare provenance of the foreign workAhmet Kaan Gümüş · 4e9b008
lanes/av1txsizeaudit r5: re-rebase onto ec4e9528, declare provenance of the foreign work

PROVENANCE, declared before wave 3e rather than at merge time. This branch
carries TWO lanes' work, not one.

  lane-av1txsizeaudit (this lane): the tx-size audit, the C1 fix + source-scan
  gate, the av1tilerows retraction.
  lane-av1ibc128arm, commit 4bfe8d8e "av1: 4:4:4 intra-in-inter 128-root
  mu-chunk chroma as a per-unit walk": 279 lines of decode.rs, 192 of
  stream.rs, 5 of examples/decode_probe.rs, 196 of lanes/av1ibc128arm.report.md
  -- and it has NEVER been merged to main.

Three checks against main:
  git merge-base --is-ancestor 4bfe8d8e main  -> NO
  git grep -c 'a_real_aomenc_444_intra_in_inter_128_root_codes_chroma_per_mu_chunk'
      main -- crates/ec-av1/src/stream.rs    -> 0
  git grep -n 'luma_span = cu_tx * 2' main -- crates/ec-av1/src/decode.rs
                                            -> main:...:43185

That last line is the proof of non-merge rather than a re-implementation: main
still carries the collapsed 4:2:0 arm verbatim -- `let luma_span = cu_tx * 2;`
-- which is exactly the line 4bfe8d8e deletes, and the string appears 0 times
on this branch. `git log --all -S"luma_span = cu_tx * 2"` finds only the two
lanes that CREATED the class (2050a065 lane-av1-ibc128chunk, 29550383
lane-av1-422bigblock) and the commit that removed it. `git grep -ln
"intra_in_inter_128_root" main -- lanes/` returns nothing, and
`git cat-file -e main:lanes/av1ibc128arm.report.md` fails -- so no other lane's
report claims it. Branch lane-av1ibc128arm still exists at 4bfe8d8e, so this is
not an orphan.

THE TWO FOREIGN REPORT FILES, individually:
 - lanes/av1ibc128arm.report.md (+196): deliberately KEPT, and it belongs to
   lane-av1ibc128arm, not to this lane. It is the only provenance record for
   the 279-line decode.rs change and the 4:4:4 gate. Not cherry-pick residue:
   it arrived with 4bfe8d8e whole. MERGE OWNER: if lane-av1ibc128arm is also
   merged, take code+report from whichever lands first and drop the duplicate;
   if it is not merged separately, this branch must carry it, because there is
   no other copy.
 - lanes/av1tilerows.report.md (38 changed): MINE and deliberate. The retraction
   of the `cu_tx = 32 << ss_x` rule at that report's own origin (lines 265-281,
   the section 8 "Recommendation") -- the one committed instance of the refuted
   rule in the repo. Zero code, zero gate. It must land whenever this branch
   lands or the rule stays re-derivable.

CONTENTION HANDED OVER, NOT PRE-RESOLVED: decode_intrabc_owned_rect's `let
(cw, ch) = (bw / 2, bh / 2);` -- the open cell this report lists at 2.3 and
5.0, line 16832 on this base -- is being fixed by another lane now. This branch
does not touch that line; it appears here only as a finding. Resolve at merge
there, where the witness lives.

RE-REBASE, and a second patch-base trap in the same family as r4's:
r4 nearly dropped the unmerged fix commit by patching from "my base"; r5 nearly
swept in all of main's wave-3 changes by patching from "the old main" 9b2f6c9d,
which produced an 18041-line patch touching crates/ec-aac and binary fixtures.
THE RULE, both times: the patch's left-hand side must be the commit this
branch's base actually is (git merge-base HEAD main) -- never a remembered
ancestor, never a self-describing "my base". Verify with `git apply --stat`
BEFORE applying; the wrong base names files you have never touched and is
invisible in --3way's exit status.

Correct patch: git diff 08f8ffb3 99f25b1f, 1894 lines, 7 files. Applied onto
ec4e9528:

  git diff ec4e9528 --shortstat -> 7 files, 1671 insertions(+), 103 deletions(-)

identical in shape to the pre-rebase measurement, with per-file removed-line
counts unchanged (decode.rs 97, av1tilerows 6, rest 0). Main's move touched
NOTHING under crates/ec-av1/, so decode.rs is 56316 lines with
suppress_internal_lf_edges at 9277 and C2 at 43315 -- report section 5.0's
line-shift table is valid verbatim on this base, no adjustment. Silent-restore
check against this move: 0/0/0.

Re-run after touch: cargo check --all-targets clean; the new source-scan gate
1/1; gate_coverage 13/13; refusal_inventory 20/20; the 13-gate identity set
13/13. 47 tests, 0 failures, 4:4:4 gate present and green.

2026-09-28

lanes/av1tilerows: class sweep — 32 Reach::of_tu sites inventoriedAhmet Kaan Gümüş · 6a71455
lanes/av1tilerows: class sweep — 32 Reach::of_tu sites inventoried

Enumerates every production call site of tu_reach, tu_reach_rect and
Reach::of_tu (32; excluding the two wrapper bodies and three in mod tests).
27 are ss-aware, 4 are 4:2:2-only behind a guard that names ss_x==1 &&
ss_y==0 (refused by name at stream.rs:1749, unreachable at 4:4:4), and
ONE is a remaining hardcoded 4:2:0-shaped chroma footprint:
decode.rs:41930, `let luma_span = cu_tx * 2;` in the intra-in-inter
128-superblock mu-chunk chroma arm.

Three correct conventions exist and no fourth: the canonical ss shift
(17401, 17488, 35359), hoisted per-axis luma-span locals (11610, 20401,
20660, 21021, 21618, 42370, 42497), and four 4:4:4-gated identity
literals (22235, 22288, 42249, 44605) whose guard is load-bearing and
which are flagged as the sites that would break first if a 4:2:0/4:2:2
sibling arm were added beside them.

41930 is proven 4:4:4-reachable by a temporary env-gated counter (32 hits
at ss=(0,0) side=128 on a 4:4:4 lossy --sb-size=128 stream), and no
committed 4:4:4 fixture fires it (0 hits on 444_sb128rect_lr_witness,
444_leaf8_oob and all three ll444 pins) — the arm has no 4:4:4 coverage.

It is deliberately NOT patched here, for reasons recorded in the report:
  - every recipe that fires it is masked by the pre-existing H1 entropy
    fork (byte-identical between base 4155c7c7 and this tip), and A/B-ing
    `cu_tx << ss_x` against `cu_tx * 2` gives byte-identical output;
  - every pixel-exact 4:4:4 recipe refuses to fire it (0 fires across
    six variants with --enable-rect-partitions=0 / --enable-1to4-partitions=0);
  - luma_span is not the whole defect: per blockd.h:1372,
    av1_get_max_uv_txsize(BLOCK_128X128, 0, 0) is TX_64X64, not the
    TX_32X32 the comment assumes, so cu_tx and the per-chunk chroma origin
    are 4:2:0-shaped too. Patching only luma_span would be a half fix in
    an arm with no gate able to catch the difference.

Shipping an unvalidated change into a zero-coverage path is the failure
mode this repo keeps fighting, so the site is documented and handed to the
H1 lane with the repair shape (cu_tx = 32 << ss_x, luma_span = cu_tx <<
ss_x) and the 4:2:0 identity argument (32 << 1 == 32 * 2 == 64) that makes
the eventual repair a provable no-op for the only covered format.

The temporary counter is removed: grep -c EC_TMP_SB128CHROMA is 0 at HEAD
and git status is clean against the lane commit.
ec-av1: ss-aware chroma reach in the lossless 16x4/4x16 pair walkAhmet Kaan Gümüş · eb65242
ec-av1: ss-aware chroma reach in the lossless 16x4/4x16 pair walk

The sweep's H4 ("4:4:4 lossless + --tile-rows=1, frame 3 onward the plane
goes flat") is not a tile defect. Two measured corrections:

  - `--tile-rows=1` at 256x128 is a no-op: aomenc's default superblock is
    128px, so 256x128 is 2x1 superblocks with no second superblock row to
    split, and the "tiled" stream is byte-identical to the untiled one.
    Tile rows at 4:4:4 lossless are exact at 1, 2 and 4 rows, both axes,
    on four geometries.
  - the "flat plane from frame 3" signature is a decode-order vs
    display-order mismatch in the measurement itself: aomdec dumps 7
    frames in decode order, ffmpeg emits 6 in display order, and
    aomdec-vs-ffmpeg alone reproduces the identical damage with no edith
    decoder in the loop.

The defect behind it is real and tile-INDEPENDENT (it reproduces on the
zero-tile stream). The lossless 16x4/4x16 chroma-pair walk passed
`tu_reach` a hardcoded 4:2:0 luma footprint (`ox * 2, oy * 2, 8`); at
4:4:4 a 4x4 chroma unit is 4x4 luma, so the footprint is doubled and
`Reach::of_tu`'s `col_off + tx_w < bw` test answers against a block twice
its real width -- every unit past the midpoint wrongly reports
`above_right = false` and a directional chroma strip predicts from a
neighbour libaom never reads. Patched to the ss-aware form already used
by the block-walk sibling at decode.rs:35342; the 4:2:0 answer is
unchanged because `<< 1` is `* 2`.

Measured site: testsrc2 256x128 yuv444p, `--profile=1 --lossless=1
--cpu-used=2 --lag-in-frames=0 --kf-max-dist=100 --limit=6`, first wrong
sample U(110,26) (ours 8, ref 7), 63 samples wrong per frame (U 29 + V
34, deltas -10..+13) on the key frame and all five inter frames. Entropy
is bit-identical: 351109 EC_SYMR reads compared on both sides with the
CDF convention reconciled, zero divergence -- reconstruction, not a fork.

Gate `a_lossless_444_rect16x4_chroma_reach_is_ss_aware` pins the fixture
(77918 bytes, sha256 382e67c0cc0988d14c500a62f5c3457a3f3b5f76d05acce2f655b1089bb8e7e3),
asserts the header really is ss (0,0)/8-bit/256x128, requires
rect4_16_lossless_chroma_hits to fire (80 on this fixture, 0 for a 4:2:0
stream of the same content), and compares every frame against aomdec in
decode order and ffmpeg in display order. Reverting the two calls turns
it red at byte 39534 -- U(110,26), the measured site.

Identity: 10/10 a_lossless, 9/9 444, 3/3 tile gates, and the sweep's 3
new gates all green.

Not fixed here, handed to the H1 lane: 512x128 --lossless=1 --cpu-used=2
(130708 wrong by frame 5) also forks entropy (459866 oracle reads vs
369136 ours) and is unchanged by this fix.