diff options
author | Alan Kelly <alankelly-at-google.com@ffmpeg.org> | 2021-12-20 15:45:45 +0100 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-12-21 17:44:53 -0300 |
commit | eebe406c808e6061ee76e93a616537b5369dbf40 (patch) | |
tree | 52e7a385571100fafff7c9d1f8e838508dec3efb /libswscale/utils.c | |
parent | ffbab99f2c22be06ef3c564fd38320d40e48a2b5 (diff) | |
download | ffmpeg-eebe406c808e6061ee76e93a616537b5369dbf40.tar.gz |
libswscale: Test AV_CPU_FLAG_SLOW_GATHER for hscale functions.
This is instead of EXTERNAL_AVX2_FAST so that the avx2 hscale functions
are only used where they are faster.
Diffstat (limited to 'libswscale/utils.c')
-rw-r--r-- | libswscale/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index d4a72d3ce1..7158384f0b 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -282,7 +282,7 @@ void ff_shuffle_filter_coefficients(SwsContext *c, int *filterPos, int filterSiz #if ARCH_X86_64 int i, j, k, l; int cpu_flags = av_get_cpu_flags(); - if (EXTERNAL_AVX2_FAST(cpu_flags)){ + if (EXTERNAL_AVX2_FAST(cpu_flags) && !(cpu_flags & AV_CPU_FLAG_SLOW_GATHER)) { if ((c->srcBpc == 8) && (c->dstBpc <= 14)){ if (dstW % 16 == 0){ if (filter != NULL){ |