Commits
Commits on
d8ca21eb05a5b32c0ce9f0bbd1d866d3ca7771cf2026-11-23
2026-11-17
2026-11-16
ec-hw: 10-bit HEVC encode, pipelined submit/flush, prime submit, CBR/VBR closed-loop rate correction; remove edith-sinkAhmet Kaan Gümüş · ccbbd43
ec-hw: 10-bit HEVC encode, pipelined submit/flush, prime submit, CBR/VBR closed-loop rate correction; remove edith-sink - submit/submit_16/submit_prime + flush: DEPTH-3 pipelined encode, pool zero-filled - submit_prime: GPU copy of an imported surface into a pool surface, padding zeroed (bit-identical to the CPU upload path) - rate control: once-a-second bias + debt correction; mesa 26.2.6 / fw 20261019 overshoot 12-19% on detailed content (ffmpeg vaapi too) - edith-sink removed: the MCP export path covers it
2026-11-15
2026-11-08
Encoder fixes from round-trip sweep follow-upAhmet Kaan Gümüş · f849ee9
Encoder fixes from round-trip sweep follow-up - ec-opus: 40/60 ms CELT/Hybrid as code-3 packets of 20 ms frames; self-delimited framing for code-3 packets (multistream 40/60 ms); multistream buffer sized for 60 ms - ec-image GIF: pixels turning transparent re-emit the previous frame with disposal 2 over the cleared area - ec-mp3: padding bit at 44.1/22.05/11.025 kHz - ec-aac: refuse bitrate 0 - ec-vorbis: refuse non-finite quality - ec-h264: refuse non-positive frame rate instead of clamping to 1 - ec-av1: with_pyramid doc matches behaviour (mini_gop > gop is clamped)
Encoder parameter-path fixes found by ffmpeg round-trip sweepsAhmet Kaan Gümüş · c561bfe
Encoder parameter-path fixes found by ffmpeg round-trip sweeps - ec-truehd: set nonrestart_substr on access units without major sync; ffmpeg rejected every AU after the first - ec-mp3: write the Xing/Info frame at a bitrate that holds the whole tag; at low bitrates the truncated tag made ffmpeg read gapless fields from audio frames (16 kHz/8 kbps decoded as noise, others shifted) - ec-aac: cap a frame at 6144 bits per channel; high bitrate per channel overflowed the decoder buffer and the 13-bit ADTS length - ec-av1: validate tiles against the superblock size actually coded (128), no shift overflow on huge log2, refuse base_q_idx 0 (lossless) up front - ec-ac3: 0 Hz no longer panics - ec-alac: refuse frame_length outside 1..=2^20 (0 hung) and 0 Hz
2026-10-23
Merge testcut-p2-av1e: testcut Phase 2 laneAhmet Kaan Gümüş · 71978f3
Merge testcut-p2-av1e: testcut Phase 2 lane # Conflicts: # scripts/kill-matrix-analyze.py # scripts/kill-matrix.sh
testcut p2 ec-av1 encoder tests: batched kill matrix, no deletionsAhmet Kaan Gümüş · 3f482f8
testcut p2 ec-av1 encoder tests: batched kill matrix, no deletions Heavy-first kill matrix on a 24-mutant seeded sample (fixtures-correct scratch, unmutated baseline 36/36 heavy and 683/683 fast). One fast-suite survivor; every candidate keeps unique coverage, so zero tests deleted. Gate and clippy clean.
testcut P2 ec-h264: delete four heavy tests with mutation kill evidenceAhmet Kaan Gümüş · e9b9397
testcut P2 ec-h264: delete four heavy tests with mutation kill evidence Delete every_quantiser_matches_ffmpeg, every_quantiser_with_motion_matches_ffmpeg, high_profile_8x8_matches_ffmpeg and x264_hi444_10bit (222.2 s saved). Keep x264_hi444_8bit (K'=4), both never_panic tests (weak oracle, kill 4 each) and jvt_hi444_vectors_bit_exact (protected). Evidence from the r4 run; r1-r3 invalid. Mutation runs exclude encode::real_library_frames_encode_and_decode_exactly (needs personal media).
testcut P2 ec-h265: restore ffmpeg_decodes_bit_exactly_at_every_shape (hang mutant not killed by fast suite)Ahmet Kaan Gümüş · b49be85Browse files
testcut P2 ec-h265: delete 4 heavy tests with release-mode kill evidenceAhmet Kaan Gümüş · ddcb861Browse files
testcut P2 ec-h265: b2 chain stopped; timeouts invalid, all keptAhmet Kaan Gümüş · b68a710Browse files
testcut p2 av1s: heavy and fast kill matrix, analysis report (0 deletions)Ahmet Kaan Gümüş · e113f3d
testcut p2 av1s: heavy and fast kill matrix, analysis report (0 deletions) Sample 60 mutants: 32 killed by heavy tests, 31 of those killed by the fast suite; mutant 48 is the single fast survivor, killed only by t04 recon-threads parity. Every heavy candidate has coverage the fast suite does not reach, so none is deleted.
testcut p2 av1s: fast baseline subcommand, exclude baseline-failing aom test from fast killsAhmet Kaan Gümüş · f3d1c4fBrowse files
testcut P2 ec-h265: resumed run stopped; report partial, all candidates keptAhmet Kaan Gümüş · f899940Browse files
testcut p2 av1s: exact-mutant runner, mut nextest profile, heavy shardsAhmet Kaan Gümüş · 6601a97
testcut p2 av1s: exact-mutant runner, mut nextest profile, heavy shards cargo-mutants --re/-F does not filter by name here (fast pass tested the first N mutants), so both modes apply one mutant with scripts/mutate.py and run nextest directly. [profile.mut] terminates hung tests after 420 s (counted as kill).
testcut p2 av1s: heavy-mode kill runner, failing parser, lane listsAhmet Kaan Gümüş · f7de183
testcut p2 av1s: heavy-mode kill runner, failing parser, lane lists Heavy mode runs each mutant against its covering heavy tests with --no-fail-fast and records every failing test; cargo-mutants stops at the first failure. Per-test coverage (214 MB) stays local (gitignored).
cargo runner: find memguard-runner.sh without .gitAhmet Kaan Gümüş · 6bdd141
cargo runner: find memguard-runner.sh without .git cargo-mutants scratch copies and remote-run rsyncs have no .git, so `git rev-parse` failed and the test runner never started. Fall back to walking up from the cwd.
Restore edith_codecs after local data loss (2026-10-23)Ahmet Kaan Gümüş · b7434a2
Restore edith_codecs after local data loss (2026-10-23) On 2026-10-23 an automated agent ran `rm -rf $HOME` and deleted the local repository with all of its history. This commit restores the working tree from the newest surviving copy, the host-c server lane mirror. That mirror matches local main as of the testcut Phase 2 reports, including the tool cache, the nextest fast profile and changed-crates.sh. The history before this commit was not recovered.
2026-10-06
Merge lane/av1422mixll10: skipped intrabc+lossless 4:2:2 leaf writes both chroma rowsAhmet Kaan Gümüş · dd25ef9
Merge lane/av1422mixll10: skipped intrabc+lossless 4:2:2 leaf writes both chroma rows An 8x8 intrabc leaf in a lossless segment at 4:2:2 fell through decode_leaf8's skip-arm else and pushed one 4x4 of a 4x8 chroma plane block. The second row stayed unwritten (sentinel 0). Witness 422_mixll_intrabc_lossless_320x240_5f.obu sha256 9fa1f1d28d61e3096d70908728f9cdfa1a570b9769a3d31e8d385a61c12a2b25, frame 0 U/V (140..143,188..191) 0 vs 664/64. The else now windows the override per 4x4 unit. Gate green, flip control 0 to 1, stash mutation reds [0,16,16]. Reviewer PASS 0.93. The U arm already pushes both planes and the V arm pushes plane 2 again with the same arguments; that second push rewrites samples only and does not republish context.
lane/av1422mixll10: a skipped intrabc+lossless leaf predicts its whole 4x8 chroma plane blockAhmet Kaan Gümüş · 451c769
lane/av1422mixll10: a skipped intrabc+lossless leaf predicts its whole 4x8 chroma plane block decode_leaf8's skip arm dispatched chroma on `chroma_422 && !lossless` -> leaf8_chroma422_unit, else-if `chroma_units_ll` (which requires `intrabc_bufs.is_none()`) -> two 4x4 units, else a SINGLE push_intra of csz x csz at (cpx, cpy). An INTRABC + LOSSLESS 8x8 leaf at 4:2:2 falls to that else: the override buffer is the whole 4x8 plane block (cw x ch = 4x8), but the push reconstructs only 4x4, so rows cpy+4..cpy+8 were never written. Witness: probe cell5 frame 0, leaf mi (46,70), intrabc DV (-1024,-64), segment lossless. U(140..143,188..191) read the sentinel poison 0 against the oracle's 664 (EC_AV1_PLANE_SENTINEL census: U unwritten=16, spans y188..191 x140..=143); 16 U + 16 V samples differed on frame 0, frames 1-4 exact. Writer named by gdb conditional break + PIXPROBE: the write of 664 DOES happen at (140,184) 4x4 -- the missing one is the second unit row, never pushed (capture_filter_replay exonerated: it only reads the planes into the thread-local slot). Fix: the skip arm's else, when a prediction override (intrabc frame copy or palette colour map) is present and the plane block is taller than csz, predicts per 4x4 unit off the cw-stride window (`palette_window`), the same slice `read_intra_chroma_lossless` feeds set_palette_pred. Both planes (U at 25732, V at 25847). Gate: a_422_mixll_intrabc_lossless_leaf_predicts_whole_chroma_plane_block pins 422_mixll_intrabc_lossless_320x240_5f.obu (79333 bytes, fnv1a64 8342335520738450773, 320x240 yuv422p10le, 5 frames): every plane of every frame byte-exact vs ffmpeg, depth asserted 10 off the stream's own sequence header, and one flipped oracle U sample must move the U count 0 -> 1. Mutation-proved: with the fix stashed the gate's own assert reds [0, 16, 16] (the unwritten 16-sample pair), restored green [0, 0, 0]. Scope: ec-av1 lib suite (encoder::tests excluded, they outlive the deadline) 766 passed / 0 failed. 8-bit control cell2.obu (sha256 2fc8b22e...) scp'd from user@host-a:~/hunt422mix/out and stays byte-exact vs ffmpeg on all 5 frames (yuv422p).
2026-10-05
Merge lane/av1422schunt: 8 screen-tools 4:2:2 cells exact, tools did not fireAhmet Kaan Gümüş · e806f1b
Merge lane/av1422schunt: 8 screen-tools 4:2:2 cells exact, tools did not fire 8/8 byte-exact vs ffmpeg at 629ed5bd (256x144 and 384x256, 8-bit and 10-bit, cq 20/40). Flip control moved 8-bit and 10-bit zeros by exactly 1. The streams parse screen_tools but intrabc, palette, and var-tx counters stay 0: flat smptebars never motivated those tools. Coverage is screen-tools inter, not those arms. 10-bit cells are 6 frames, not 12, because the y4m wrapper sliced at 8-bit sample count.
lane/av1422schunt: 8-cell 4:2:2 screen-content hunt, 8/8 EXACT vs ffmpegAhmet Kaan Gümüş · 2afe35cBrowse files
Merge lane/av1422a2a4: intrabc var-tx tail no longer clobbers the per-leaf bandAhmet Kaan Gümüş · 05d59ea
Merge lane/av1422a2a4: intrabc var-tx tail no longer clobbers the per-leaf band A4 (sha256 e680b638..., 30937 B) refused mid-tile on efd1adf0 with the subsize string. Both oracles decode those bytes. The refusal was a desync: decode_block's tail published a block-level TXFM context after an intrabc var-tx tree, resetting left_txfm 16 to 8. The next tree read ctx 10 where libaom reads 9. Both publishes are now gated on the tree having run. The subsize guard is unchanged. decode_intrabc_owned_rect is not in the diff. Reviewer PASS 0.92. Re-decoded A2, A3, and A4 byte-exact vs ffmpeg and aomdec. Both tail mutations red at the gate's own assert (stream.rs:9755). Correction, not in the lane text: the gate pins size and FNV-1a64, not sha256. The sha equality to the hunt stream was proven by the reviewer with sha256sum and cmp, and is not what the gate enforces.
Merge lane/av1422ibcsplit: owned-rect tree branch not reachedAhmet Kaan Gümüş · 13a1ba3
Merge lane/av1422ibcsplit: owned-rect tree branch not reached Twelve aomenc encodes, each under 180s, produced zero streams that enter decode_intrabc_owned_rect's TX_MODE_SELECT tree branch at 4:2:2. The intrabc var-tx trees that did fire were on square blocks, a different function. No decoder edit. No unreachability assertion. Report only.
lane/av1422ibcsplit: the owned-rect tree branch is NOT REACHED in the 12-encode budget; report only, no decoder editAhmet Kaan Gümüş · 990a308Browse files
lane/av1422a2a4: 4:2:2 intrabc var-tx EITHER/OR tail publishes per leafAhmet Kaan Gümüş · 6c3a872
lane/av1422a2a4: 4:2:2 intrabc var-tx EITHER/OR tail publishes per leaf An intrabc block whose var-tx tree resolved MIXED leaves kept the two blanket tail publishes in decode_block (set_txfm_ctxs + fill_lf_grid), clobbering the per-leaf TXFM_CONTEXT band sizes libaom's var-tx branch leaves behind (parse_decode_block is an either/or; the tree branch never calls set_txfm_ctxs). Measured on the pinned 256x224 4:2:2 witness (fixtures/422_intrabc_vartx_mixedtree_a4.obu, aomenc testsrc2 tile cq30): the 32x32 intrabc block at mi(32,8) resolved 8x8+16x16 leaves, the blanket writes reset left_txfm[32..35] 16->8, the next tree's sub-read at (32,16) took txfm_partition_ctx 10 vs the oracle's 9, and the desync surfaced ~30 partition symbols later as the decodeframe.c:1456 'block size 4x8 invalid' refusal (E6/E7 symptom class; both ffmpeg and aomdec decode the stream to completion). Both publishes are now gated on the tree not having run. Red-before proven one hunk at a time against the new pinned gate (the_pinned_422_intrabc_vartx_mixedtree_witnesses_decode_pixel_exact); green: the_pinned_422 8/8, intrabc 29/29 (+1 pre-existing ignore), vartx 5/5; all four av1422ibcrect hunt streams byte-exact vs ffmpeg (A4 also vs aomdec). decode_intrabc_owned_rect untouched.
Merge lane/av1422ibctxsel: 4:2:2 intraBC non-split chroma gather uses the pair ruleAhmet Kaan Gümüş · dfdddd5
Merge lane/av1422ibctxsel: 4:2:2 intraBC non-split chroma gather uses the pair rule decode_intrabc_owned_rect gathered chroma context over the luma span. At ss (1,0) that doubles the above vote. A pinned 4:2:2 strip enters the arm 24 times; 5 of those entries differ (2A+L=-8 vs A+L=0) and the pre-fix tree refuses the stream mid-frame while ffmpeg and aomdec decode it. Routed through around_mi_422_chroma under ss (1,0) only. Reviewer PASS: the other subsamplings keep the old gather, no other function changed, fixture sha256 4f82d5da8b4c3d6553953fc373001a1c7a729c9b189214b65503af1e04eb6b68. The new pin has no fixture-library.tsv row. Regenerating the manifest on a pristine tree already drifts 651 lines, so that row waits for a canonical regen.
lanes: annotate the oracle-depth report's call-site countAhmet Kaan Gümüş · 717112f
lanes: annotate the oracle-depth report's call-site count The review counted 6 surviving 8-bit call sites, not 8. The original sentence stays; the correction sits under it.
Merge lane/av1oracledepth: depth-generic 4:4:4 oracle helperAhmet Kaan Gümüş · 07bdafe
Merge lane/av1oracledepth: depth-generic 4:4:4 oracle helper ffmpeg_decode_sequence_444 was 8-bit only, so a 10-bit 4:4:4 gate could not compare without ffmpeg converting. The new helper guards shape and depth from the stream's own header before spawning ffmpeg. ffmpeg_decode_sequence_10bit now asserts depth 10 as well as 4:2:0 shape. The palette gate's dead Err arm, which still accepted the pre-lift refusal string, now panics on any decode error. Reviewer PASS. Report prose says 8 existing call sites; there are 6.
lane/av1422ibctxsel: report -- the ss (1,0) non-split chroma gather is discriminated, routed, and gatedAhmet Kaan Gümüş · 6550585Browse files
lane/av1422ibctxsel: route the ss (1,0) non-split chroma gather through the pair ruleAhmet Kaan Gümüş · 785e89a
lane/av1422ibctxsel: route the ss (1,0) non-split chroma gather through the pair rule decode_intrabc_owned_rect's non-split chroma arms (both the var-tx tree and the no-leaves twin) fed `read_inter_plane_rect`'s CHROMA coefficient context with `around_mi_rect` over the block's LUMA span. At ss (1, 0) a chroma 4-px cell spans two luma mi columns, so the per-mi sum counts every chroma column twice; libaom's `get_txb_ctx_general` reads one vote per chroma cell, which is `around_mi_422_chroma`'s every-second sampling. The luma-span form is kept verbatim at ss (0, 0) and ss (1, 1) (`ss_x == 0` / `ss_y != 0`). Witness: fixtures/ibc422_nonsplit_ctx.obu (2170 B, sha256 4f82d5da8b4c3d6553953fc373001a1c7a729c9b189214b65503af1e04eb6b68, fnv1a64 0x92e2c4e45ca27e34) -- aomenc profile 2 384x288 4:2:2, 4 key frames, --sb-size=64 with the last superblock row half outside the frame (64x32 HORZ intra-BC strips), --enable-tx-size-search=1 plus a high-frequency patch that keeps the frame at TX_MODE_SELECT (txb_split_count > 0, encodeframe.c:2690), and a chroma band above the strips so a full-weight above context meets a full-weight left one of the opposite sign. Measured: 24 non-split chroma gathers entered; five V-plane reads (strips mi (64,16)..(64,80) of frame 0) disagree -- dc_sign_ctx 1 through the luma-span gather vs 0 through the pair rule (full = 2A + L = -8, pair = A + L = 0). Red-before (route reverted, same bytes): the wrong sign context desyncs the tile and the decoder refuses the stream mid-frame with the sub-8x8 plane-block refusal -- no frame decodes; both oracles (aomdec, ffmpeg) decode the pinned bytes fully, so that refusal is a desync symptom, not a real shape. Green-after: 4/4 frames byte-exact against ffmpeg yuv422p; the route counter reads 24; the 4:4:4 r512 arm fires it 0 times and stays byte-exact. New counter: IBC_OWNED_RECT_422_PAIR_HITS (accessor ibc_owned_rect_422_pair_hits). Gate: a_422_intrabc_owned_rect_nonsplit_chroma_context_uses_the_pair_rule. Scoped run: that gate + the 422 sb128 strip gate + a_16x4_intrabc_pair_strip (4:2:0) + the 4:4:4 owner-rect gate, all green.
Merge lane/av1422rect4dead: close the unreachable 4:2:2 else armAhmet Kaan Gümüş · dfe201c
Merge lane/av1422rect4dead: close the unreachable 4:2:2 else arm decode_rect4_16_intrabc's else arm still halved chroma as 4:2:0. The only shape that reaches it at ss (1,0) is a VERT_4 4x16 strip, and both 16-level dispatches refuse that shape before the call. Closed with an assertion, not a comment. Reviewer PASS: one caller, both callers under the guard, the assertion is not on the 4:2:0 or 4:4:4 path, the gate reds if the assertion string is absent.
🧪 ec-av1: depth-generic 4:4:4 ffmpeg oracle helper, 10-bit depth guard, dead 4:2:2 refusal arm deletedAhmet Kaan Gümüş · fd7986bBrowse files
lane/av1422rect4dead: close decode_rect4_16_intrabc else arm at ss (1,0)Ahmet Kaan Gümüş · 2cfb795
lane/av1422rect4dead: close decode_rect4_16_intrabc else arm at ss (1,0) The (pw/2, ph/2) pair-geometry else arm is unreachable at 4:2:2: its only caller chain is the two 16x16-level 1:4 arms, both under refuse_invalid_subsize((16, 16), part16), which at ss (1, 0) refuses the VERT_4 subsize (4, 16) -- the only shape that could reach the arm there (partition_subsize_dims((16,16), PARTITION_VERT_4) == (4, 16) is in PLANE_BLOCK_INVALID_422). The surviving HORZ_4 16x4 strip takes own422. At ss (1, 1) the arm is live and correct; at ss (0, 0) own444 wins first. Closed with an assertion naming the shape and the subsampling, per the repo rule for proven-unreachable paths, plus a source-scan gate that reds when the assertion or either 16-level guard is removed. 4:2:0 and 4:4:4 behaviour unchanged.
Merge lane/av1422aomdec51: 51/51 4:2:2 cells byte-exact in decode orderAhmet Kaan Gümüş · df788de
Merge lane/av1422aomdec51: 51/51 4:2:2 cells byte-exact in decode order The bookkeep census had 51/51 against ffmpeg in display order and had not re-run aomdec. Same 51 cells, decode order, depth-correct dumps, 869 frames, 0 diverging. The comparator bites: a one-sample flip moves the count by 1 at both 8-bit and 10-bit, and a first control that did not bite was thrown out. Report only.
ec-av1: the 51-cell 4:2:2 census re-measured in decode order against aomdecAhmet Kaan Gümüş · 68799ed
ec-av1: the 51-cell 4:2:2 census re-measured in decode order against aomdec The av1bookkeep corpus re-measure was the ffmpeg oracle in display order and left the aomdec decode-order census unmeasured. This lane ran that other instrument on the same 51 cells (cells_ff.json x formats.json 4:2:2 probe, sha256-verified cell by cell): our EC_AV1_FINAL_DUMP vs instrumented aomdec rung 12, both depth-correct, both decode order, hidden frames included -- 51/51 byte-exact, 869 frames, 0 diverging, 0 comparator-error. The liveness control is measured on the same compare path the verdicts use (compare_only, no re-decode): one sample flipped in the oracle dump moves the count by exactly 1 and lands on the injected offset, 8-bit and 10-bit (u16 LE low bit) alike, and restores to EXACT. The control caught two harness defects before any verdict was quoted: a compare path that re-decoded over its own injected flip (false control), and a Y-plane split assuming 1/3 of bytes where 4:2:2 Y is 2/3. Report only; no source change. Worktree lane/av1422aomdec51, base c38dd788. Run on user@host-b; instrumented aomdec confirmed before the run.
Merge lane/av1stale422prose: stale 4:2:2 refusal prose, comment-onlyAhmet Kaan Gümüş · e401114
Merge lane/av1stale422prose: stale 4:2:2 refusal prose, comment-only The lift already decodes 4:2:2. Nine comments still told a reader the sequence-header refusal stood, including three gates whose own byte-exact arm is the live assertion. Diff is comments only (0 non-comment lines). The palette gate's Err arm that still matches the old refusal string is code, not prose, and is left for a behavioural lane.
ec-av1: rewrite stale 4:2:2 sequence-header-refusal prose after the liftAhmet Kaan Gümüş · d0f9e9a
ec-av1: rewrite stale 4:2:2 sequence-header-refusal prose after the lift Comment-only honesty sweep. Every sentence a current reader would take as '4:2:2 still refuses / only a bypass can reach it' is rewritten to name the gate that now carries the claim (the pinned 422 decode gates, the palette window gate, the intrabc strip witness). Historical pre-lift records and the subsize/uncodable-shape refusals are left standing. decode.rs untouched. Proof: git diff -U0 with comment lines removed is empty; cargo check -p ec-av1 --tests clean; the_440_cell_is_not_a_codable_chroma_shape ok.