tests/gem_ringfill: add progress indicator

This thing takes ages on older chips.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter 2012-04-19 12:34:16 +02:00
parent 127d76d51c
commit 7e9676143c

View File

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