diff mbox series

[FFmpeg-devel,07/14] checkasm/sw_range_convert: only run benchmarks on largest input width

Message ID 20240923124017.33659-8-ramiro.polla@gmail.com
State New
Headers show
Series swscale/range_convert: fix mpeg ranges in yuv range conversion for non-8-bit pixel formats | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 fail Make fate failed
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Ramiro Polla Sept. 23, 2024, 12:40 p.m. UTC
---
 tests/checkasm/sw_range_convert.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/tests/checkasm/sw_range_convert.c b/tests/checkasm/sw_range_convert.c
index df27b6c81e..e97388d14a 100644
--- a/tests/checkasm/sw_range_convert.c
+++ b/tests/checkasm/sw_range_convert.c
@@ -62,6 +62,7 @@  static void check_lumConvertRange(int from)
             call_new(dst1, width);
             if (memcmp(dst0, dst1, width * sizeof(int16_t)))
                 fail();
+            if (width == LARGEST_INPUT_SIZE)
             bench_new(dst1, width);
         }
     }
@@ -109,6 +110,7 @@  static void check_chrConvertRange(int from)
             if (memcmp(dstU0, dstU1, width * sizeof(int16_t)) ||
                 memcmp(dstV0, dstV1, width * sizeof(int16_t)))
                 fail();
+            if (width == LARGEST_INPUT_SIZE)
             bench_new(dstU1, dstV1, width);
         }
     }