mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-11 18:06:13 +00:00
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:
parent
127d76d51c
commit
7e9676143c
@ -118,8 +118,11 @@ static int check_ring(drm_intel_bufmgr *bufmgr,
|
|||||||
{
|
{
|
||||||
struct scratch_buf src, tmp, dst;
|
struct scratch_buf src, tmp, dst;
|
||||||
struct bo bo;
|
struct bo bo;
|
||||||
|
char output[100];
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
snprintf(output, 100, "filling %s ring: ", ring);
|
||||||
|
|
||||||
create_bo(bufmgr, &bo, ring);
|
create_bo(bufmgr, &bo, ring);
|
||||||
|
|
||||||
src.stride = 4 * width;
|
src.stride = 4 * width;
|
||||||
@ -152,6 +155,8 @@ static int check_ring(drm_intel_bufmgr *bufmgr,
|
|||||||
int x = i % width;
|
int x = i % width;
|
||||||
int y = i / width;
|
int y = i / width;
|
||||||
|
|
||||||
|
drmtest_progress(output, i, width*height);
|
||||||
|
|
||||||
assert(y < height);
|
assert(y < height);
|
||||||
|
|
||||||
/* Dummy load to fill the ring */
|
/* Dummy load to fill the ring */
|
||||||
@ -161,6 +166,7 @@ static int check_ring(drm_intel_bufmgr *bufmgr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* verify */
|
/* verify */
|
||||||
|
printf("verifying\n");
|
||||||
i = check_bo(&bo);
|
i = check_bo(&bo);
|
||||||
destroy_bo(&bo);
|
destroy_bo(&bo);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user