diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-12-23 10:11:29 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-12-23 10:12:21 +0000 |
commit | 4fc2c39f71c0a480ba678a40016c00b475b6eb63 (patch) | |
tree | 0e8e98e8ff18ae0b7c21340f7a34295ff5450f2b /tests/i915/gem_unfence_active_buffers.c | |
parent | 2100c6efd2de767a876977ae1a8a6366e4beb643 (diff) |
i915/gem_unfence_active_buffers: Skip if the platform has no fences
If the platform doesn't use fences (aperture detiling registers), then
unfence is meaningless and tests nothing.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Diffstat (limited to 'tests/i915/gem_unfence_active_buffers.c')
-rw-r--r-- | tests/i915/gem_unfence_active_buffers.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/i915/gem_unfence_active_buffers.c b/tests/i915/gem_unfence_active_buffers.c index e21f3d9c..887d6177 100644 --- a/tests/i915/gem_unfence_active_buffers.c +++ b/tests/i915/gem_unfence_active_buffers.c @@ -75,6 +75,7 @@ igt_simple_main spin = igt_spin_new(i915); num_fences = gem_available_fences(i915); + igt_require(num_fences); igt_info("creating havoc on %i fences\n", num_fences); for (int i = 0; i < num_fences + 3; i++) { |