diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-07-16 16:28:41 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-09-07 19:10:28 +0100 |
commit | a380134e5e553661ffa06e92460465ec9a3de29d (patch) | |
tree | 6943c8aaf4d2959f9c5da59a55e0b616cf4f0365 /tests/gem_wait.c | |
parent | 61f8de7d04e6b69d1cb43770bbef522311ebc3cc (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.c | 2 |
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 }; |