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

James Almer git at videolan.org
Sat Mar 25 18:28:00 EET 2023


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Mar 25 09:30:52 2023 -0300| [aca8ceb870b0d3c6d126f165f04322ad569671a4] | committer: James Almer

x86/vf_bwdif_init: limit AVX2 functions using 256bit vectors to cpus known to be fast with it

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=aca8ceb870b0d3c6d126f165f04322ad569671a4
---

 libavfilter/x86/vf_bwdif_init.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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;
     }
 }



More information about the ffmpeg-cvslog mailing list