summaryrefslogtreecommitdiff
path: root/tests/gem_wait.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-02-16 14:42:04 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-02-18 09:46:02 +0000
commit3990dd87b60bf8092671cb3c536666936b460b0c (patch)
tree6cc74f7134f210057fe63fdd12a5a548d139fad0 /tests/gem_wait.c
parent3b12d9e6dc115939ddd110c7a7f7ad319b731524 (diff)
igt/gem_ctx_thrash: Combine context thrashing with a render test
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_wait.c')
-rw-r--r--tests/gem_wait.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/gem_wait.c b/tests/gem_wait.c
index e1c174b3..ecf0dcf3 100644
--- a/tests/gem_wait.c
+++ b/tests/gem_wait.c
@@ -155,7 +155,7 @@ static void render_timeout(int fd)
igt_assert_lt(iter, 1000000);
- igt_info("%d iters is enough work\n", iter);
+ igt_debug("%d iters is enough work\n", iter);
gem_quiescent_gpu(fd);
if (do_signals)
igt_fork_signal_helper();
@@ -174,9 +174,8 @@ static void render_timeout(int fd)
igt_assert_neq(timeout, 0);
if (timeout == (ENOUGH_WORK_IN_SECONDS * NSEC_PER_SEC))
igt_info("Buffer was already done!\n");
- else {
- igt_info("Finished with %" PRIu64 " time remaining\n", timeout);
- }
+ else
+ igt_info("Finished with %fs remaining\n", timeout*1e-9);
/* check that polling with timeout=0 works. */
timeout = 0;