1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-10-06 05:47:18 +02:00

tests/checkasm/llviddsp: Use the same width for each cpuflag

Otherwise the benchmark numbers would be incomparable nonsense.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-10-01 13:42:09 +02:00
committed by James Almer
parent df4587789f
commit a8a16c15c8

View File

@@ -195,9 +195,13 @@ static void check_add_gradient_pred(LLVidDSPContext *c, int w) {
void checkasm_check_llviddsp(void) void checkasm_check_llviddsp(void)
{ {
LLVidDSPContext c; LLVidDSPContext c;
int width = 16 * av_clip(rnd(), 16, 128); static int saved_width = 0;
int width = saved_width;
int accRnd = rnd() & 0xFF; int accRnd = rnd() & 0xFF;
if (!width)
saved_width = width = 16 * av_clip(rnd(), 16, 128);
ff_llviddsp_init(&c); ff_llviddsp_init(&c);
check_add_bytes(&c, width); check_add_bytes(&c, width);