summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2012-04-19 12:34:16 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-04-19 12:36:48 +0200
commit7e9676143cd5c7e44b310fa3bce8da5d1cdf21e8 (patch)
treebef5200bcd7cbcca0a74595ad82edb623dc12be0
parent127d76d51c00fa1693053d126f8045b1efa7f07a (diff)
tests/gem_ringfill: add progress indicator
This thing takes ages on older chips. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--tests/gem_ringfill.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/gem_ringfill.c b/tests/gem_ringfill.c
index 48572645..5bae8f11 100644
--- a/tests/gem_ringfill.c
+++ b/tests/gem_ringfill.c
@@ -118,8 +118,11 @@ static int check_ring(drm_intel_bufmgr *bufmgr,
{
struct scratch_buf src, tmp, dst;
struct bo bo;
+ char output[100];
int i;
+ snprintf(output, 100, "filling %s ring: ", ring);
+
create_bo(bufmgr, &bo, ring);
src.stride = 4 * width;
@@ -152,6 +155,8 @@ static int check_ring(drm_intel_bufmgr *bufmgr,
int x = i % width;
int y = i / width;
+ drmtest_progress(output, i, width*height);
+
assert(y < height);
/* Dummy load to fill the ring */
@@ -161,6 +166,7 @@ static int check_ring(drm_intel_bufmgr *bufmgr,
}
/* verify */
+ printf("verifying\n");
i = check_bo(&bo);
destroy_bo(&bo);