summaryrefslogtreecommitdiff
path: root/tests/gem_wait.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-07-16 16:28:41 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2017-09-07 19:10:28 +0100
commita380134e5e553661ffa06e92460465ec9a3de29d (patch)
tree6943c8aaf4d2959f9c5da59a55e0b616cf4f0365 /tests/gem_wait.c
parent61f8de7d04e6b69d1cb43770bbef522311ebc3cc (diff)
igt/gem_exec_schedule: Basic tests for preemption
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 <chris@chris-wilson.co.uk> Reviewed-by: MichaƂ Winiarski <michal.winiarski@intel.com>
Diffstat (limited to 'tests/gem_wait.c')
-rw-r--r--tests/gem_wait.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_wait.c b/tests/gem_wait.c
index 591690ad..cf8c8154 100644
--- a/tests/gem_wait.c
+++ b/tests/gem_wait.c
@@ -110,7 +110,7 @@ static void unplug(struct cork *c)
static void basic(int fd, unsigned engine, unsigned flags)
{
struct cork cork = plug(fd, flags);
- igt_spin_t *spin = igt_spin_batch_new(fd, engine, cork.handle);
+ igt_spin_t *spin = igt_spin_batch_new(fd, 0, engine, cork.handle);
struct drm_i915_gem_wait wait = {
flags & WRITE ? cork.handle : spin->handle
};