tests/get_wait_rendering_timeout: fixup the auto-tuner
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 29 May 2012 14:35:11 +0000 (16:35 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 29 May 2012 14:35:30 +0000 (16:35 +0200)
- start at 1 iterations
- actually adjust the number of iterations like the comment claims

tests/gem_wait_render_timeout.c

index dded96c..c38a9cd 100644 (file)
@@ -109,7 +109,7 @@ int main(int argc, char **argv)
        const bool do_signals = true; /* signals will seem to make the operation
                                       * use less process CPU time */
        bool done = false;
-       int i, iter = 0x100;
+       int i, iter = 1;
 
        fd = drm_open_any();
 
@@ -155,8 +155,9 @@ int main(int argc, char **argv)
        gem_quiescent_gpu(fd);
        if (do_signals)
                drmtest_fork_signal_helper();
+
        /* We should be able to do half as much work in the same amount of time */
-       for (i = 0; i < iter; i++)
+       for (i = 0; i < iter/2; i++)
                blt_color_fill(batch, dst2, BUF_PAGES);
 
        intel_batchbuffer_flush(batch);