Repository navigation
vp9: loop filters from go-videodsp/kernels (AVX2), 1.17x - #5
Merged
Merged
Conversation
The six Dual edge filters (4, 8 and 16 wide, horizontal and vertical) now call the AVX2 kernels of go-videodsp/kernels v0.22.0 when the CPU has AVX2, and fall back to the previous paths otherwise (and on every other architecture). The generated loopfilter_thr.go stays wholly generated: the six insertions are Patches in tools/portgovpx. fractal (Ryzen 9 7950X, one core, load 3), crowd_run 1080p, 6 interleaved rounds against v0.2.0, median us/frame: VP9 1 tile 7136 -> 6090 (1.172x), 4 tiles 7180 -> 6151 (1.167x). libvpx test vectors: 376 of 376 match, twice (plain and 4 threads), 0 failed. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The six VP9
Dualloop-filter edges (4, 8 and 16 wide, horizontal and vertical) call the AVX2 kernels ofgo-videodsp/kernelsv0.22.0 (lf.VP9Lpf*), guarded bycpu.HasAVX2. Other CPUs and architectures keep the previous paths (lf_kernels_other.goreturns false). The call is inserted bytools/portgovpxPatches, soloopfilter_thr.gostays wholly generated.Measured
fractal (Ryzen 9 7950X), linux/amd64,
GOEXPERIMENT=simd, one pinned core, load 2.8 to 3.1, 6 interleaved rounds against a v0.2.0 test binary,BenchmarkDecodeClip, crowd_run 1080p 300 frames, median us/frame:libvpx single core on the same clips: 2623 and 2610, so the decoder is still about 2.3 times libvpx per frame. Kernel speed against the scalar reference is in
docs/perf/speed-log.md.Correctness: libvpx test vectors, 376 of 376 match in both
TestLibvpxVectorsandTestLibvpxVectorsThreaded, 0 failed, run on fractal with the cross-compiled binary.-raceruns in CI (the vectors lane).Not in this PR
Single-edge
Threntry points, high bit depth, VP8 filters, NEON (open issue in go-videodsp/kernels).🤖 Generated with Claude Code