summaryrefslogtreecommitdiff
path: root/lib/igt_dummyload.h
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 /lib/igt_dummyload.h
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 'lib/igt_dummyload.h')
-rw-r--r--lib/igt_dummyload.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/igt_dummyload.h b/lib/igt_dummyload.h
index 340cada0..215425f7 100644
--- a/lib/igt_dummyload.h
+++ b/lib/igt_dummyload.h
@@ -37,8 +37,14 @@ typedef struct igt_spin {
uint32_t *batch;
} igt_spin_t;
-igt_spin_t *__igt_spin_batch_new(int fd, int engine, unsigned int dep);
-igt_spin_t *igt_spin_batch_new(int fd, int engine, unsigned int dep);
+igt_spin_t *__igt_spin_batch_new(int fd,
+ uint32_t ctx,
+ unsigned engine,
+ uint32_t dep);
+igt_spin_t *igt_spin_batch_new(int fd,
+ uint32_t ctx,
+ unsigned engine,
+ uint32_t dep);
void igt_spin_batch_set_timeout(igt_spin_t *spin, int64_t ns);
void igt_spin_batch_end(igt_spin_t *spin);
void igt_spin_batch_free(int fd, igt_spin_t *spin);