mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-11 01:46:14 +00:00
igt/gem_busy: Cap number of tries to create busy rings
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
0f5b03fa38
commit
92ee3cc1f6
@ -279,6 +279,9 @@ static void store(int fd, unsigned ring, uint32_t flags)
|
||||
gem_execbuf(fd, &execbuf);
|
||||
__gem_busy(fd, obj[0].handle, &read[0], &write[0]);
|
||||
__gem_busy(fd, obj[1].handle, &read[1], &write[1]);
|
||||
igt_debug("After %d cycles: read[0]=%x read[1]=%x\n",
|
||||
count, read[0], read[1]);
|
||||
igt_require(count <= 1 << 12);
|
||||
count <<= 1;
|
||||
} while (read[0] == 0 || read[1] == 0);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user