From 481741ece040b0a938099b521fd431d537d7198a Mon Sep 17 00:00:00 2001 From: James Almer <jamrial@gmail.com> Date: Tue, 31 Jul 2018 22:14:53 -0300 Subject: [PATCH] x86/pixelutils: don't use the AVX2 functions on CPUs known to be slow with them Signed-off-by: James Almer <jamrial@gmail.com> --- 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 dd05421b501..184a3a4a9fc 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 -- GitLab