From a380134e5e553661ffa06e92460465ec9a3de29d Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 16 Jul 2017 16:28:41 +0100 Subject: igt/gem_exec_schedule: Basic tests for preemption MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We queue N low priority hanging batches across the engines and check that our high priority write over takes them. Signed-off-by: Chris Wilson Reviewed-by: MichaƂ Winiarski --- tests/kms_flip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/kms_flip.c') diff --git a/tests/kms_flip.c b/tests/kms_flip.c index 837ebecd..5ac6438d 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -694,14 +694,14 @@ static unsigned int run_test_step(struct test_output *o) o->current_fb_id = !o->current_fb_id; if (o->flags & TEST_WITH_DUMMY_BCS) { - spin_bcs = igt_spin_batch_new(drm_fd, I915_EXEC_BLT, + spin_bcs = igt_spin_batch_new(drm_fd, 0, I915_EXEC_BLT, o->fb_info[o->current_fb_id].gem_handle); igt_spin_batch_set_timeout(spin_bcs, NSEC_PER_SEC); } if (o->flags & TEST_WITH_DUMMY_RCS) { - spin_rcs = igt_spin_batch_new(drm_fd, I915_EXEC_RENDER, + spin_rcs = igt_spin_batch_new(drm_fd, 0, I915_EXEC_RENDER, o->fb_info[o->current_fb_id].gem_handle); igt_spin_batch_set_timeout(spin_rcs, NSEC_PER_SEC); -- cgit v1.2.3