checkasm: swscale: Fix running the hscale test on 32 bit x86
authorMartin Storsjö <martin@martin.st>
Sat, 16 May 2020 05:13:58 +0000 (08:13 +0300)
committerMartin Storsjö <martin@martin.st>
Sat, 16 May 2020 05:16:12 +0000 (08:16 +0300)
This function doesn't call emms.

Signed-off-by: Martin Storsjö <martin@martin.st>
tests/checkasm/sw_scale.c

index 9f0b720..2680e47 100644 (file)
@@ -63,9 +63,9 @@ static void check_hscale(void)
 
     // The dst parameter here is either int16_t or int32_t but we use void* to
     // just cover both cases.
-    declare_func(void, void *c, void *dst, int dstW,
-                 const uint8_t *src, const int16_t *filter,
-                 const int32_t *filterPos, int filterSize);
+    declare_func_emms(AV_CPU_FLAG_MMX, void, void *c, void *dst, int dstW,
+                      const uint8_t *src, const int16_t *filter,
+                      const int32_t *filterPos, int filterSize);
 
     ctx = sws_alloc_context();
     if (sws_init_context(ctx, NULL, NULL) < 0)