From a765aa108105804c19096554447ad0cb71f64fc3 Mon Sep 17 00:00:00 2001 From: Mika Kuoppala Date: Wed, 17 Apr 2019 18:28:33 +0300 Subject: 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 Signed-off-by: Mika Kuoppala Reviewed-by: Chris Wilson --- tests/i915/gem_ctx_exec.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/i915/gem_ctx_exec.c') 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); } -- cgit v1.2.3