benchmarks/gem_exec_nop: Flush retirement lists before executing

wait-ioctl skips a couple of side-effects of retiring, so provoke them
using set-domain before we sleep.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-12-04 10:22:16 +00:00
parent 839a1426ce
commit 39e44dfa4c

View File

@ -102,6 +102,8 @@ static int loop(unsigned ring, int reps)
for (n = 0; n < reps; n++) {
struct timespec start, end;
int loops = count;
gem_set_domain(fd, gem_exec.handle,
I915_GEM_DOMAIN_GTT, 0);
sleep(1); /* wait for the hw to go back to sleep */
clock_gettime(CLOCK_MONOTONIC, &start);
while (loops--)