diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-04-19 13:38:32 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-04-19 13:39:38 +0100 |
commit | f6a31ad35834b830906877400446c39132369457 (patch) | |
tree | bad78444b522d2506903fb2557e9924d354fb85a /tests/gem_exec_nop.c | |
parent | b3e4273593dbebd410eaba359464ac32a7897e1f (diff) |
igt/gem_exec_nop: Add some output to headless subtest
Report the measurements as we make them.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_exec_nop.c')
-rw-r--r-- | tests/gem_exec_nop.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/gem_exec_nop.c b/tests/gem_exec_nop.c index 66c2fc1d..865dbaea 100644 --- a/tests/gem_exec_nop.c +++ b/tests/gem_exec_nop.c @@ -168,12 +168,16 @@ static void headless(int fd, uint32_t handle) /* benchmark nops */ n_display = stable_nop_on_ring(fd, handle, I915_EXEC_DEFAULT, 1, 5); + igt_info("With one display connected: %.2fus\n", + n_display * 1e6); /* force all connectors off */ kmstest_unset_all_crtcs(fd, res); /* benchmark nops again */ n_headless = stable_nop_on_ring(fd, handle, I915_EXEC_DEFAULT, 1, 5); + igt_info("Without a display connected (headless): %.2fus\n", + n_headless * 1e6); /* check that the two execution speeds are roughly the same */ assert_within_epsilon(n_headless, n_display, 0.1f); |