From 7e9676143cd5c7e44b310fa3bce8da5d1cdf21e8 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Thu, 19 Apr 2012 12:34:16 +0200 Subject: [PATCH] tests/gem_ringfill: add progress indicator This thing takes ages on older chips. Signed-Off-by: Daniel Vetter --- tests/gem_ringfill.c | 6 ++++++ 1 file changed, 6 insertions(+) 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);