Commit 481741ec authored by James Almer's avatar James Almer

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

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent d5b3077e
...@@ -84,7 +84,7 @@ void ff_pixelutils_sad_init_x86(av_pixelutils_sad_fn *sad, int aligned) ...@@ -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) { switch (aligned) {
case 0: sad[4] = ff_pixelutils_sad_32x32_avx2; break; // src1 unaligned, src2 unaligned 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 case 1: sad[4] = ff_pixelutils_sad_u_32x32_avx2; break; // src1 aligned, src2 unaligned
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment