From a8a16c15c8dbf2231d439fa46587d0a15c1778ce Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Wed, 1 Oct 2025 13:42:09 +0200 Subject: [PATCH] tests/checkasm/llviddsp: Use the same width for each cpuflag Otherwise the benchmark numbers would be incomparable nonsense. Signed-off-by: Andreas Rheinhardt --- tests/checkasm/llviddsp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/checkasm/llviddsp.c b/tests/checkasm/llviddsp.c index 9f8de65df4..0552e98106 100644 --- a/tests/checkasm/llviddsp.c +++ b/tests/checkasm/llviddsp.c @@ -195,9 +195,13 @@ static void check_add_gradient_pred(LLVidDSPContext *c, int w) { void checkasm_check_llviddsp(void) { LLVidDSPContext c; - int width = 16 * av_clip(rnd(), 16, 128); + static int saved_width = 0; + int width = saved_width; int accRnd = rnd() & 0xFF; + if (!width) + saved_width = width = 16 * av_clip(rnd(), 16, 128); + ff_llviddsp_init(&c); check_add_bytes(&c, width);