mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 17:36:11 +00:00
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:
parent
839a1426ce
commit
39e44dfa4c
@ -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--)
|
||||
|
Loading…
x
Reference in New Issue
Block a user