From 585f203c39d2349163794dc1a0e85f9cab038ebe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 30 Sep 2026 14:14:21 +0300 Subject: [PATCH] ec-av1: the plane-tagged OUR_MODE per-TU mode trace; fix the readcensus header Re-derives lane-av1444chr's `5a1388f2` (13 lines, env-gated print only, cherry-picks clean on current main) plus lane-av1chrtx's `6cc9ea6f` header correction. OUR_MODE names the plane at the point that OWNS it. `PlaneBuf`'s `OUR_PRED` rung cannot: reconstruction does not know which plane it is filling, which is why main had to stamp it separately with RECON_PLANE/recon_plane(). This rung is the reader-side counterpart, where `plane_idx` is a parameter, and it exists because a rung whose plane must be guessed from its values has already produced two wrong claims (class `rung-mislabels-plane`: `read_coeffs_rect` labelling its unit `plane=0`, then a sweep reading a phantom second luma unit out of that label). Diagnostic only -- no gate asserts decode behaviour off this line. The H3 defect the lane chased is still open and unowned; the lane's own conclusion was that the reach is faithful and the offset arithmetic is exonerated, so the remaining line's owner was unidentified. That is unchanged. Header: main named `lane-av1readcensus` / `~/.cache/wt/av1readcensus` for a census that was cut on `lane-av1chrtx` in `~/.cache/wt/av1chrtx`. The gate name the header was blamed for is already correct on main (`a_pixel_exact_444_stream_walks_the_same_coefficient_units_the_oracle_does`), so this is the 4-line header only, nothing else. --- crates/ec-av1/src/decode.rs | 13 +++++++++++++ lanes/av1readcensus.report.md | 7 ++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index a662e91d..69b2203a 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -21476,6 +21476,19 @@ fn read_plane( // filter-intra is on) -- caller passes the raw filter-intra mode 0..4 in // `filter_intra`, only meaningful for `plane_idx == 0` (chroma has no // filter-intra in AV1). + // lane-av1444chr: per-TU mode trace with the PLANE named. `PlaneBuf`'s own + // `OUR_PRED` rung cannot carry it (reconstruction does not know its + // plane), and a rung whose plane has to be guessed from the values has + // already produced wrong claims twice this session -- `read_coeffs_rect` + // labelling its unit `plane=0`, and a sweep reading a second-luma-unit + // phantom out of that label (class `rung-mislabels-plane`). Diagnostic + // only: no gate asserts decode behaviour off this line. + if crate::envflags::env_flag!("EC_TRACE_MODE") { + eprintln!( + "OUR_MODE plane={plane_idx} x={x} y={y} side={side} mode={predict_mode} \ + ad={angle_delta} fi={filter_intra:?} reach={reach:?}" + ); + } let tx_mode = if plane_idx == 0 { fi_tx_row(tx_mode, filter_intra) } else { diff --git a/lanes/av1readcensus.report.md b/lanes/av1readcensus.report.md index c7e24d21..41be7e3e 100644 --- a/lanes/av1readcensus.report.md +++ b/lanes/av1readcensus.report.md @@ -1,8 +1,9 @@ # lane-av1readcensus — the 4:4:4 coefficient-read count asymmetry, settled -**Branch:** `lane-av1readcensus`, worktree `~/.cache/wt/av1readcensus`, stacked on -`lane-av1chrtx` (`ff7cf47c`, whose `d791c464` threaded the real plane index into -`read_coeffs_rect`'s traces — the census pairs on that). +**Branch:** `lane-av1chrtx` (my charter's branch), worktree `~/.cache/wt/av1chrtx`. +The census commit `ea97eb0c` sits on top of `ff7cf47c`, whose `d791c464` threaded +the real plane index into `read_coeffs_rect`'s traces — the census pairs on that, +and reuses its `plane` argument rather than adding a second one. **Verdict: COUNTING SHAPE — and not even that. On every pixel-exact 4:4:4 arm there is no asymmetry at all: both sides walk the same number of units, in the