diff options
author | Mika Kuoppala <mika.kuoppala@linux.intel.com> | 2019-04-17 18:28:33 +0300 |
---|---|---|
committer | Mika Kuoppala <mika.kuoppala@linux.intel.com> | 2019-04-18 17:04:09 +0300 |
commit | a765aa108105804c19096554447ad0cb71f64fc3 (patch) | |
tree | 5570cc9b5c6a733268d56a3a96939873d254e61b /tests/i915/gem_ctx_exec.c | |
parent | 226b9995d1fb486d34cd35428025b55532e9e3d1 (diff) |
lib/igt_dummyload: Get rid of 'batch' on spinner accessors
There is no guarantee that spinners are and will be implemented
using batches. As we have igt_spin_t, manipulate it through
igt_spin_* functions consistently and hide the batch nature.
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/i915/gem_ctx_exec.c')
-rw-r--r-- | tests/i915/gem_ctx_exec.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/i915/gem_ctx_exec.c b/tests/i915/gem_ctx_exec.c index f37e6f28..b8e0e074 100644 --- a/tests/i915/gem_ctx_exec.c +++ b/tests/i915/gem_ctx_exec.c @@ -178,16 +178,16 @@ static void norecovery(int i915) gem_context_get_param(i915, ¶m); igt_assert_eq(param.value, pass); - spin = __igt_spin_batch_new(i915, - .ctx = param.ctx_id, - .flags = IGT_SPIN_POLL_RUN); + spin = __igt_spin_new(i915, + .ctx = param.ctx_id, + .flags = IGT_SPIN_POLL_RUN); igt_spin_busywait_until_started(spin); igt_force_gpu_reset(i915); - igt_spin_batch_end(spin); + igt_spin_end(spin); igt_assert_eq(__gem_execbuf(i915, &spin->execbuf), expect); - igt_spin_batch_free(i915, spin); + igt_spin_free(i915, spin); gem_context_destroy(i915, param.ctx_id); } |