aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer2018-07-31 22:14:53 -0300
committerJames Almer2018-07-31 22:14:53 -0300
commit481741ece040b0a938099b521fd431d537d7198a (patch)
tree9af98357a53d6b45a915903087c29a9c86fa5e30
parentd5b3077ecffb94887c97cd2f1d34a2de4c991ec4 (diff)
x86/pixelutils: don't use the AVX2 functions on CPUs known to be slow with them
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavutil/x86/pixelutils_init.c2
1 files changed, 1 insertions, 1 deletions
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