summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2012-06-26 19:47:30 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-06-26 19:47:30 +0200
commit76b53ef68d39063c4b0203aa8db2b32dcce1e3b4 (patch)
treed4f2354de7d2ae0f0e05ffbcdb98b2665a1cc2ea
parentc6fe31bc473a7ae44bc42bad7da5faca3c924821 (diff)
tests/gem_wait_rendering_timeout: needs more fudge
Due to the way we calculate the workload by doubling it each time we might end up with almost twice as much as we want. Hence increase our fudge by 1.5 to account for that. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50666
-rw-r--r--tests/gem_wait_render_timeout.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/gem_wait_render_timeout.c b/tests/gem_wait_render_timeout.c
index e19b3c44..bbe98c06 100644
--- a/tests/gem_wait_render_timeout.c
+++ b/tests/gem_wait_render_timeout.c
@@ -167,8 +167,10 @@ int main(int argc, char **argv)
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/2; i++)
+ /* We should be able to do half as much work in the same amount of time,
+ * but because we might schedule almost twice as much as required, we
+ * might accidentally time out. Hence add some fudge. */
+ for (i = 0; i < iter/3; i++)
blt_color_fill(batch, dst2, BUF_PAGES);
intel_batchbuffer_flush(batch);