shithub: dav1d

Download patch

ref: 17426a6a442643a4339d825f5ba8ee5034004c3a
parent: 84b7a8615354b32e4e9bd75f8585c929420eca5e
author: Martin Storsjö <[email protected]>
date: Sun Oct 28 19:33:40 EDT 2018

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.

--- a/tests/checkasm/mc.c
+++ b/tests/checkasm/mc.c
@@ -67,7 +67,9 @@
                         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 @@
                         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");
 }