diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-03-09 12:23:54 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-05-31 17:49:17 +0100 |
commit | fadf6e48639131c36708732a317dad1851583622 (patch) | |
tree | fe8e405ba089972ec5c55574f5b02bfccc541e03 /lib/i915 | |
parent | 63f0bf3d50b70f011b9d600a1a4bc1a1c7720654 (diff) |
lib: Assert that we do manage to submit at least one batch when measuring
As we measure the ring size, we never expect to find we can not submit
no batches at all. Assert against the unexpected.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Antonio Argenziano <antonio.argenziano@intel.com>
Reviewed-by: Antonio Argenziano <antonio.argenziano@intel.com>
Diffstat (limited to 'lib/i915')
-rw-r--r-- | lib/i915/gem_ring.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/i915/gem_ring.c b/lib/i915/gem_ring.c index 10d2f2cd..7d64165e 100644 --- a/lib/i915/gem_ring.c +++ b/lib/i915/gem_ring.c @@ -100,6 +100,7 @@ __gem_measure_ring_inflight(int fd, unsigned int engine, enum measure_ring_flags } while (1); igt_assert_eq(__execbuf(fd, &execbuf), -EINTR); + igt_assert(count); memset(&itv, 0, sizeof(itv)); setitimer(ITIMER_REAL, &itv, NULL); |