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-03-15 10:52:37 +0000 |
commit | b6ea0e5c8e4aa77397156434103638e8ddc071de (patch) | |
tree | cfecc0ceb48535af810c4bf706090010ca5623ac | |
parent | a99f6937564e045cb14c131771f4dcff7f3d219f (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>
-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 df92e620..35383ceb 100644 --- a/lib/i915/gem_ring.c +++ b/lib/i915/gem_ring.c @@ -113,6 +113,7 @@ gem_measure_ring_inflight(int fd, unsigned int engine, enum measure_ring_flags f } while (1); igt_assert_eq(__execbuf(fd, &execbuf), -EINTR); + igt_assert(count); memset(&itv, 0, sizeof(itv)); setitimer(ITIMER_REAL, &itv, NULL); |