diff mbox series

[FFmpeg-devel] x86/vf_bwdif_init: limit AVX2 functions using 256bit vectors to cpus known to be fast with it

Message ID 20230325123130.3931-1-jamrial@gmail.com
State Accepted
Commit aca8ceb870b0d3c6d126f165f04322ad569671a4
Headers show
Series [FFmpeg-devel] x86/vf_bwdif_init: limit AVX2 functions using 256bit vectors to cpus known to be fast with it | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

James Almer March 25, 2023, 12:31 p.m. UTC
Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavfilter/x86/vf_bwdif_init.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libavfilter/x86/vf_bwdif_init.c b/libavfilter/x86/vf_bwdif_init.c
index f833318c10..57f908a8ef 100644
--- a/libavfilter/x86/vf_bwdif_init.c
+++ b/libavfilter/x86/vf_bwdif_init.c
@@ -59,14 +59,14 @@  av_cold void ff_bwdif_init_x86(BWDIFContext *bwdif, int bit_depth)
             bwdif->filter_line = ff_bwdif_filter_line_sse2;
         if (EXTERNAL_SSSE3(cpu_flags))
             bwdif->filter_line = ff_bwdif_filter_line_ssse3;
-        if (ARCH_X86_64 && EXTERNAL_AVX2(cpu_flags))
+        if (ARCH_X86_64 && EXTERNAL_AVX2_FAST(cpu_flags))
             bwdif->filter_line = ff_bwdif_filter_line_avx2;
     } else if (bit_depth <= 12) {
         if (EXTERNAL_SSE2(cpu_flags))
             bwdif->filter_line = ff_bwdif_filter_line_12bit_sse2;
         if (EXTERNAL_SSSE3(cpu_flags))
             bwdif->filter_line = ff_bwdif_filter_line_12bit_ssse3;
-        if (ARCH_X86_64 && EXTERNAL_AVX2(cpu_flags))
+        if (ARCH_X86_64 && EXTERNAL_AVX2_FAST(cpu_flags))
             bwdif->filter_line = ff_bwdif_filter_line_12bit_avx2;
     }
 }