Commit 17426a6a authored by Martin Storsjö's avatar Martin Storsjö Committed by Jean-Baptiste Kempf

checkasm: Don't benchmark all the 8tap filters

This significantly reduces the runtime when benchmarking. For all
practical cases, it is enough to just benchmark one version of
the 8tap filter.
parent 84b7a861
......@@ -67,7 +67,9 @@ static void check_mc(Dav1dMCDSPContext *const c) {
if (memcmp(c_dst, a_dst, w * h * sizeof(*c_dst)))
fail();
bench_new(a_dst, w, src, w, w, h, mx, my);
if (filter == FILTER_2D_8TAP_REGULAR ||
filter == FILTER_2D_BILINEAR)
bench_new(a_dst, w, src, w, w, h, mx, my);
}
}
report("mc");
......@@ -100,7 +102,9 @@ static void check_mct(Dav1dMCDSPContext *const c) {
if (memcmp(c_tmp, a_tmp, w * h * sizeof(*c_tmp)))
fail();
bench_new(a_tmp, src, w, w, h, mx, my);
if (filter == FILTER_2D_8TAP_REGULAR ||
filter == FILTER_2D_BILINEAR)
bench_new(a_tmp, src, w, w, h, mx, my);
}
report("mct");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment