[FFmpeg-cvslog] x86/pixelutils: don't use the AVX2 functions on CPUs known to be slow with them

James Almer git at videolan.org
Wed Aug 1 04:17:17 EEST 2018


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Tue Jul 31 22:14:53 2018 -0300| [481741ece040b0a938099b521fd431d537d7198a] | committer: James Almer

x86/pixelutils: don't use the AVX2 functions on CPUs known to be slow with them

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

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

 libavutil/x86/pixelutils_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/x86/pixelutils_init.c b/libavutil/x86/pixelutils_init.c
index dd05421b50..184a3a4a9f 100644
--- a/libavutil/x86/pixelutils_init.c
+++ b/libavutil/x86/pixelutils_init.c
@@ -84,7 +84,7 @@ void ff_pixelutils_sad_init_x86(av_pixelutils_sad_fn *sad, int aligned)
         }
     }
 
-    if (EXTERNAL_AVX2(cpu_flags)) {
+    if (EXTERNAL_AVX2_FAST(cpu_flags)) {
         switch (aligned) {
         case 0: sad[4] = ff_pixelutils_sad_32x32_avx2;   break; // src1 unaligned, src2 unaligned
         case 1: sad[4] = ff_pixelutils_sad_u_32x32_avx2; break; // src1   aligned, src2 unaligned



More information about the ffmpeg-cvslog mailing list