summaryrefslogtreecommitdiff
path: root/tests/i915/gem_exec_schedule.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2020-05-31 22:20:34 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2020-06-01 00:09:48 +0100
commit668a5be752186b6e08f361bac34da37309d08393 (patch)
tree43d2a4aa8453ad508c2695d228e2472b1528469e /tests/i915/gem_exec_schedule.c
parentb080c88ba224fb71e6c097d233c0d9a4237058b6 (diff)
i915/gem_exec_schedule: Check for store-dw support before use
Be careful and check the engine support store-dw as we are using __igt_spin_new() which skips the requirement checks. 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_exec_schedule.c')
-rw-r--r--tests/i915/gem_exec_schedule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/i915/gem_exec_schedule.c b/tests/i915/gem_exec_schedule.c
index c5390493..56c63883 100644
--- a/tests/i915/gem_exec_schedule.c
+++ b/tests/i915/gem_exec_schedule.c
@@ -2435,6 +2435,9 @@ static void measure_semaphore_power(int i915)
int64_t jiffie = 1;
igt_spin_t *spin;
+ if (!gem_class_can_store_dword(i915, signaler->class))
+ continue;
+
spin = __igt_spin_new(i915,
.engine = signaler->flags,
.flags = IGT_SPIN_POLL_RUN);