forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 50503af092ea77b052d6770536f4108003fdabddFiltered to crates/ec-av1/src/gate_coverage.rsClear filter

2026-09-01

test(av1): gate coverage sees default-on tools and non---enable-* spellingsAhmet Kaan Gümüş · 32a6763
test(av1): gate coverage sees default-on tools and non---enable-* spellings

Third instance of tool-disabled-in-every-gate: the derivation read "--enable-
only, so tools aomenc has on by default and the gates pin off through another
spelling were invisible -- --enable-tx-size-search=0 (34/41 8-bit gates, the pin
behind lane-ab16's real-stream PANIC), --loopfilter-control=0, single-tile
--tile-columns/--tile-rows, --cpu-used.

DEFAULT_ON_TOOLS (10 entries: tool, aomenc spellings, default, on-rule) plus
NEVER_ON_8BIT (6) / NEVER_ON_10BIT (7) pinned per bit depth under the unchanged
'defaulted means unknown' rule, with the off/defaulted split in each reason.
ALIASES maps --superres-mode onto enable-superres, which retires the two
enable-superres entries covbd deferred. Print helper extended.

gate_coverage 9/9, refusal_inventory 3/3.
Merge branch 'lane-hbdgates': 10-bit gates for filter/smooth/paeth intra, intra-edge-filter, rect+ab partitions; ten_bit_tool_gate driver; gate_coverage drops ignored gates (279/0/24 on branch); 10-bit LR gate un-ignored on the merged treeAhmet Kaan Gümüş · 8c9548c
Merge branch 'lane-hbdgates': 10-bit gates for filter/smooth/paeth intra, intra-edge-filter, rect+ab partitions; ten_bit_tool_gate driver; gate_coverage drops ignored gates (279/0/24 on branch); 10-bit LR gate un-ignored on the merged tree

NEVER_EXERCISED_10BIT keeps the union of both removals: main's three
(restoration, dist-wtd-comp, global-motion, closed by lane-hbdinter and
lane-cwarp) and hbdgates' six (filter/smooth/paeth intra, intra-edge-filter,
rect and ab partitions). gate_bodies()/is_ten_bit() take hbdgates' versions
(ignored gates excluded, helper-built recipes recognised).

a_real_aomenc_10bit_restoration_stream_decodes_pixel_exact was #[ignore]d on
the branch because hbdgates' base lacked main's 10-bit LR fix (SGR box-sum
scaling, Wiener clamp). On the merged tree it passes 16/16 attempts
pixel-exact, lr_hits=28, so the #[ignore] is removed.
test(av1): 10-bit gates for the seven tools only an 8-bit gate ever enabledAhmet Kaan Gümüş · 576f72d
test(av1): 10-bit gates for the seven tools only an 8-bit gate ever enabled

His two films are yuv420p10le, so a tool gated only at 8 bits is ungated where
it matters (lane-covbd r1). Six of the seven holes close with real-aomenc
10-bit streams, pixel-exact vs ffmpeg on every shown frame:

- a_real_aomenc_10bit_intra_tools_stream_decodes_pixel_exact -- filter-intra,
  smooth-intra, paeth-intra, intra-edge-filter on one key frame, a separate
  hard-asserted counter each (6/6 attempts exact; filter_intra_hits=2
  smooth_pred_hits=16 paeth_pred_hits=3 intra_edge_filter_hits=22).
- a_real_aomenc_10bit_rect_and_ab_partitions_decode_pixel_exact -- the 8-bit
  free-partition/AB inter recipe at 10 bits (12/16 attempts exact, 4 named
  refusals; rect_partition_hits=32 partab_hits=4).
- a_real_aomenc_10bit_restoration_stream_decodes_pixel_exact -- WRITTEN AND
  FAILING, so #[ignore]d with the pin in the attribute: seed 42, frame 0,
  plane Y index 122, ours 351 vs ffmpeg 350, on a stream where lr_hits=2.
  That is a real 10-bit loop-restoration defect for a follow-on lane; the gate
  is not weakened and enable-restoration stays a listed 10-bit hole.

intra.rs gains per-tool counters (smooth_pred_hits / paeth_pred_hits /
intra_edge_filter_hits) because smooth_uv_hits lumps SMOOTH..=PAETH together
and would have let a paeth-only stream "prove" smooth intra.

ten_bit_tool_gate() samples every counter PER ATTEMPT and sums only over
attempts that decoded AND compared, so a refused stream can never contribute a
firing; a pixel mismatch panics with plane + first-diff index + both values +
the firing deltas, never SKIPs.

gate_coverage: gate_bodies() now drops #[ignore]d gates (an ignored gate
exercises nothing) and recognises gates whose --passes=1 lives in the shared
10-bit helper; 45 -> 49 gates, 4 -> 7 ten-bit, NEVER_EXERCISED_10BIT 19 -> 13.
Merge branch 'lane-hbdinter': 10-bit loop restoration (SGR box sums scaled by bd-8, wiener clamp at the bd bound), combine_compound two-step rounding; 10-bit inter+LR gate (verifier PASS, 271/0/23); restoration leaves NEVER_EXERCISED_10BITAhmet Kaan Gümüş · b933555
Merge branch 'lane-hbdinter': 10-bit loop restoration (SGR box sums scaled by bd-8, wiener clamp at the bd bound), combine_compound two-step rounding; 10-bit inter+LR gate (verifier PASS, 271/0/23); restoration leaves NEVER_EXERCISED_10BIT

Also drops enable-dist-wtd-comp and enable-global-motion from
NEVER_EXERCISED_10BIT: lane-cwarp's 10-bit compound global-warp gate passes
=1 for both, so never_exercised_10bit_matches_the_gate_recipes was already
failing at 9c35ecc. gate_coverage is green again after this commit.

Conflict resolutions: warp.rs took main's (cwarp warp_inner/warp_affine_compound
is a superset of hbdinter's const BD -> bit_depth()); mc.rs kept hbdinter's
single (bd-8) diffwtd_mask round plus its combine_compound two-step and
inter_pred_hits counter; stream.rs kept main's encode_10bit_gradients helper
and cwarp gates plus hbdinter's a_real_aomenc_10bit_inter_sequence gate.
test(av1): gate coverage is per (tool x bit depth), not per toolAhmet Kaan Gümüş · 0810a85
test(av1): gate coverage is per (tool x bit depth), not per tool

Every 10-bit gate ran --enable-restoration=0, so the 10-bit loop-restoration
path was never exercised and two hbd defects (SGR box sums unscaled, Wiener
clamp at the 8-bit bound) survived the '10-bit bit-exact' milestone.
gate_coverage.rs now classifies each real-aomenc gate by bit depth and pins
NEVER_EXERCISED_8BIT (12) and NEVER_EXERCISED_10BIT (19) over a fixed
26-flag TOOL_UNIVERSE, with the same 'defaulted means unknown' rule: only an
explicit --enable-<tool>=1 in a gate of that depth retires an entry.
45 gates, 4 of them 10-bit.
test(av1): gate coverage is per (tool x bit depth), not per toolAhmet Kaan Gümüş · 969b81e
test(av1): gate coverage is per (tool x bit depth), not per tool

Every 10-bit gate ran --enable-restoration=0, so the 10-bit loop-restoration
path was never exercised and two hbd defects (SGR box sums unscaled, Wiener
clamp at the 8-bit bound) survived the '10-bit bit-exact' milestone.
gate_coverage.rs now classifies each real-aomenc gate by bit depth and pins
NEVER_EXERCISED_8BIT (12) and NEVER_EXERCISED_10BIT (19) over a fixed
26-flag TOOL_UNIVERSE, with the same 'defaulted means unknown' rule: only an
explicit --enable-<tool>=1 in a gate of that depth retires an entry.
45 gates, 4 of them 10-bit.
feat(av1): decode an intrabc block vector -- use_intrabc now reads a real DV instead of refusingAhmet Kaan Gümüş · fbda1c6
feat(av1): decode an intrabc block vector -- use_intrabc now reads a real DV instead of refusing

The DV predictor is the ordinary MV stack queried with INTRA_FRAME
(libaom av1_find_mv_refs/av1_find_ref_dv), the difference reads off a
separate ndvc context at full-pel precision (MV_SUBPEL_NONE), and the
block-copy prediction rides the existing PALETTE_PRED per-block
prediction override with BILINEAR taps off the current frame's own
pre-loop-filter planes (all loop filters are already off when
allow_intrabc). tx_type switches to the inter ext-tx sets, since libaom
counts an intrabc block as is_inter_block.

Two real index bugs fell out: mvstack's sign_bias() and gm_mv() both
indexed table[ref_frame - LAST_FRAME] unguarded, so any INTRA_FRAME
query -- exactly what intrabc does -- panicked at usize::MAX.

The lane's refusal is REPLACED, not lifted: every real aomenc intrabc
block sits under TX_MODE_SELECT, whose inter var-tx transform tree
(read_var_tx_size) this decoder has nowhere, so no stream reconstructs
one end to end yet and enable-intrabc stays in gate_coverage's
NEVER_EXERCISED list. Recipe + evidence in lanes/intrabc-r1.report.md.

2026-08-30

Merge branch 'lane-palette': palette-Y blocks decode pixel-exactAhmet Kaan Gümüş · 2195bbd
Merge branch 'lane-palette': palette-Y blocks decode pixel-exact

Blocker (3) closed. Root cause was call ORDER, not a table: every symbol was
already bit-exact through read_palette_colors_y, and the range diverged exactly
at decode_color_index_map's entry because libaom reaches decode_color_map_tokens
from parse_decode_block AFTER the whole mode-info decode, including UV palette
mode_info and filter_intra. We called it inline after the Y colours and never
read UV palette mode_info at all. Fix: read UV palette mode_info, defer the
index map past filter_intra. UV palette reconstruction stays refused by name.

enable-palette leaves NEVER_EXERCISED with positive evidence -- the new gate
passes --enable-palette=1 -- so intrabc is now the last entry.

Two conflicts resolved here, both additive-vs-additive:
- Neighbours' delta_lf_grid (lane-realworld) and the palette neighbour cache
  (lane-palette) are independent fields; kept both.
- Three lanes each numbered their new oracle instrumentation rung "6".
  lane-palette's two are renumbered 8 and 8b behind superres's 6 and 7.

Suite 256 passed / 0 failed.
Merge branch 'lane-superres': key-frame superres decodes pixel-exact (3/3 frames, superres_hits=3)Ahmet Kaan Gümüş · eb818a1
Merge branch 'lane-superres': key-frame superres decodes pixel-exact (3/3 frames, superres_hits=3)

Root cause was deblocking the mi-alignment margin: libaom's set_lpf_parameters
early-returns TX_4X4 once x >= dst.width or y >= dst.height -- the CODED frame
dimensions, not the mi-grid-padded extent our true_width/true_height used. That
early return is also why r6's two oracle trace points never fired.

Two guard adjustments the merge forced, both tightening rather than relaxing:
- refusal_inventory gains the lane's new inter-frame superres refusal.
- gate_coverage now closes a coverage hole only on POSITIVE evidence -- some
  gate passing . It used to retire an entry as soon as a
  gate merely left the flag off its command line, which this merge would have
  done to palette and intrabc: aomenc's default for both is content-dependent,
  so 'defaulted' means unknown, not exercised. Negative-checked: flipping one
  gate's --enable-palette to =1 fails the test by name.

Suite 255 passed / 0 failed.
merge main into lane-palette: multi-tile key-frame decode, chroma smooth/paeth, CDEF index readsAhmet Kaan Gümüş · 7b81e30
merge main into lane-palette: multi-tile key-frame decode, chroma smooth/paeth, CDEF index reads

Resolved six decode.rs conflicts (Neighbours' palette fields + main's
tile-origin fields coexist on the struct/constructor; read_intra_mode
gained both the palette ctx/cache param and main's mi_r/mi_c param,
updated at both call sites; PlaneBuf::reconstruct keeps the palette-buf
override + filter_intra branch and now threads real smooth_neighbor
instead of a hardcoded false) and one gate_coverage.rs conflict
(NEVER_EXERCISED = enable-intrabc only: main's cdef/chroma lanes already
retired enable-cdef/paeth-intra/smooth-intra, this lane's own real
palette gate already retired enable-palette). Added the two refusal
strings the merge introduced (palette-Y pixel-mismatch refusal, split-
luma-transform-under-palette refusal) to refusal_inventory.rs's pinned
list -- suite failed once on the missing one, fixed, green after.

EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib: 244 passed, 0
failed, 17 ignored.
test(av1): real-aomenc palette-Y gate (smptebars, hue=s=0); palette_hits fires, pixel mismatch documentedAhmet Kaan Gümüş · 7e82cbf
test(av1): real-aomenc palette-Y gate (smptebars, hue=s=0); palette_hits fires, pixel mismatch documented

Verified r2's two milestones green first: 234/0 (matches the tree's baseline,
nothing to commit for that step). New gate proves the reconstruction path is
non-vacuous (palette_hits hard-asserted) but the reconstructed pixels
mismatch ffmpeg's decode of the same bytes -- read_palette_colors_y,
read_uniform, palette_color_index_context and the PALETTE_Y_COLOR_INDEX CDF
table were all checked line-for-line against the aom-oracle source and match
exactly, so the actual desync site is still unlocated (documented in the
gate's own doc comment and lanes/palette-r3.report.md). SKIPs rather than
fails so the suite stays green; removes enable-palette from
gate_coverage.rs's NEVER_EXERCISED since a real block now reconstructs from it.
Merge branch 'lane-chroma': smooth, paeth and directional chroma decodeAhmet Kaan Gümüş · be7060a
Merge branch 'lane-chroma': smooth, paeth and directional chroma decode

The lane went looking for chroma modes and found a luma bug first:
reconstruct() hardcoded smooth_neighbor = false, so the intra edge filter took
the wrong strength bucket whenever a directional block neighboured a
smooth-predicted one. Its own comment called it a corner-cut. Twenty gates had
never caught it because every one of them passed --enable-smooth-intra=0.

Landed here: the luma fix with smooth_neighbor threaded properly, UV-mode
neighbour tracking, the smooth/paeth chroma refusals gone (blocker 5 of the
default-settings chain), and the directional-chroma sibling in
decode_inter_block's intra-in-inter branch.

Gate-proven for the key-frame path. The inter-frame intra-block path is a
structural mirror of it plus a green suite, NOT proven by firing -- the lane
disclosed this itself, and the owed gate is written down in
lanes/chroma-r4.report.md: force an inter-frame leaf with such a uv_mode,
assert smooth_uv_hits/directional_uv_hits and pixel-exactness.

Both guards fired as designed and are updated: gate_coverage loses
enable-smooth-intra and enable-paeth-intra, refusal_inventory loses the two
round-2 chroma refusals.

Suite 239 passed / 0 failed.
Merge branch 'lane-realworld': cdef_idx decodes, gated on a real aomenc streamAhmet Kaan Gümüş · 51e931c
Merge branch 'lane-realworld': cdef_idx decodes, gated on a real aomenc stream

Blocker 1 of the default-settings chain is closed. The per-64x64 cdef_idx
symbol is read (spec 5.11.56) at all five sites where skip is decoded, kept in
a per-superblock grid, and apply_cdef selects that superblock's strength pair
instead of index 0. Gate a_real_aomenc_stream_with_cdef_decodes_pixel_exact:
40/40 pixel-exact, zero refusals, cdef_idx_hits hard-asserted > 0 (24-40/run).

The lane also established why the obvious gate could never work: cdef_bits
selects among per-SUPERBLOCK strength profiles, so a single-64x64-superblock
fixture gives the encoder nothing to differentiate -- 20 attempts kept the
counter at 0. It needed 128x64.

Both guards on main fired exactly as designed and are updated here:
gate_coverage's NEVER_EXERCISED loses enable-cdef (a gate enables it now), and
refusal_inventory loses "a frame with cdef_bits > 0". The decode.rs conflict was
the counter doc-comment restyle against the lane's new CDEF thread-locals; the
lane's block is kept, restyled to match.

Suite 237 passed / 0 failed.
test(av1): pin the coding tools no real-aomenc gate exercisesAhmet Kaan Gümüş · 21b2356
test(av1): pin the coding tools no real-aomenc gate exercises

lane-chroma r1 found reconstruct()'s `smooth_neighbor` hardcoded false -- wrong
whenever a directional block neighbours a smooth-mode one -- and it had survived
twenty real-aomenc gates because every one of them passes --enable-smooth-intra=0.
The corner-cut was not hidden by a weak assert; it was hidden by the gates'
encoder recipes, which no assert had ever looked at.

gate_coverage derives, from the gate source itself, the set of aomenc tools
switched off in all 20 gates and on in none -- provably never exercised by a
real stream -- and pins it: cdef, intrabc, paeth-intra, palette, smooth-intra.
An unlisted tool joining that set fails the test, and so does an entry the
gates have since started enabling, so a lane closing a hole must delete its
line. Negative-checked: dropping the enable-cdef entry fails with exactly that
name.

Suite 234 passed / 0 failed.