Skip to content

vp8: AVX2 loop-filter and sub-pixel kernels (kernels v0.25.0) - #7

Merged
tannevaled merged 3 commits into
mainfrom
vp8-lf-wire
Nov 29, 2026
Merged

tannevaled merged 3 commits into
mainfrom
vp8-lf-wire

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

What

Wires the VP8 loop-filter kernels (go-videodsp/kernels v0.24.0 lf.VP8*) and the six-tap / bilinear predictors (v0.25.0 mc.VP8SixTap, mc.VP8Bilinear) into the amd64 decoder, behind cpu.HasAVX2, the previous code as the fallback. Same pattern as the merged VP9 wiring (v0.3.0, v0.4.0): portgovpx Patches (vp8LFKernelPatches, vp8MCKernelPatches, plus two in internal/vp8/decoder/loopfilter.go) and hand-written kernels_amd64.go / kernels_other.go in internal/vp8/dsp, lf_kernels_*.go in internal/vp8/decoder.

The kernels filter 16 luma lines or 2 x 8 chroma lines per call; where they run, the per-edge calls replace the fused macroblock paths of internal/pixel (the fused paths measured slower: 3438 against 3633 us/frame).

Measured (fractal, Ryzen 9 7950X, core 11, load 3-4, 7 interleaved rounds, crowd_run 1080p VP8, GOEXPERIMENT=simd)

build median us/frame best
v0.4.0 4942 4926
loop filters only 4327 4321
loop filters + prediction 3437 3427

1.44x. VP9 unchanged (2463 against 2482 us on its 1-tile clip). Vectors 376/376, plain and 4 threads, with and without GOEXPERIMENT=simd.

Not wired: the decoder's simple-filter fused paths (not compared; the clip uses the normal filter).

🤖 Generated with Claude Code

tannevaled and others added 3 commits November 29, 2026 17:13
The VP8 loop-filter dispatch functions and the six-tap / bilinear
predictors try go-videodsp/kernels first when cpu.HasAVX2, keeping the
previous code as the fallback. Added as portgovpx Patches.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…where AVX2 is present

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@tannevaled
tannevaled merged commit 108dca4 into main Nov 29, 2026
14 checks passed
@tannevaled
tannevaled deleted the vp8-lf-wire branch November 29, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant