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
This commit is contained in:
Daniel Vetter 2012-06-26 19:47:30 +02:00
parent c6fe31bc47
commit 76b53ef68d

View File

@ -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);