summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlan Kelly <alankelly-at-google.com@ffmpeg.org>2021-12-20 15:45:45 +0100
committerJames Almer <jamrial@gmail.com>2021-12-21 17:44:53 -0300
commiteebe406c808e6061ee76e93a616537b5369dbf40 (patch)
tree52e7a385571100fafff7c9d1f8e838508dec3efb /tests
parentffbab99f2c22be06ef3c564fd38320d40e48a2b5 (diff)
downloadffmpeg-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 'tests')
-rw-r--r--tests/checkasm/sw_scale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/checkasm/sw_scale.c b/tests/checkasm/sw_scale.c
index f4912e6c2c..3c0a083b42 100644
--- a/tests/checkasm/sw_scale.c
+++ b/tests/checkasm/sw_scale.c
@@ -217,7 +217,7 @@ static void check_hscale(void)
}
ff_sws_init_scale(ctx);
memcpy(filterAvx2, filter, sizeof(uint16_t) * (SRC_PIXELS * MAX_FILTER_WIDTH + MAX_FILTER_WIDTH));
- if (cpu_flags & AV_CPU_FLAG_AVX2)
+ if ((cpu_flags & AV_CPU_FLAG_AVX2) && !(cpu_flags & AV_CPU_FLAG_SLOW_GATHER))
ff_shuffle_filter_coefficients(ctx, filterPosAvx, width, filterAvx2, SRC_PIXELS);
if (check_func(ctx->hcScale, "hscale_%d_to_%d_width%d", ctx->srcBpc, ctx->dstBpc + 1, width)) {