diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-10-09 19:36:15 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-12-13 12:01:31 +0000 |
commit | 7afcc75fab0c9ba47f87572ea3ebdcbdd887307d (patch) | |
tree | 4f4c0797c8b09ddffdb037b9d272900a18780ed6 /tests | |
parent | 0136ff0be60c2661289fc1a7eccf59a2762708b4 (diff) |
i915/gem_exec_reloc: Continuing the trend of checking userptr
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/i915/gem_exec_reloc.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/i915/gem_exec_reloc.c b/tests/i915/gem_exec_reloc.c index cc9b8cd6..ee8af429 100644 --- a/tests/i915/gem_exec_reloc.c +++ b/tests/i915/gem_exec_reloc.c @@ -499,7 +499,7 @@ static unsigned int offset_in_page(void *addr) return (uintptr_t)addr & 4095; } -static void active_spin(int fd, unsigned engine) +static void active_spin(int fd, unsigned engine, unsigned long flags) { const uint32_t bbe = MI_BATCH_BUFFER_END; struct drm_i915_gem_relocation_entry reloc; @@ -509,7 +509,7 @@ static void active_spin(int fd, unsigned engine) spin = igt_spin_new(fd, .engine = engine, - .flags = IGT_SPIN_NO_PREEMPTION); + .flags = IGT_SPIN_NO_PREEMPTION | flags); memset(obj, 0, sizeof(obj)); obj[0] = spin->obj[IGT_SPIN_BATCH]; @@ -1475,7 +1475,14 @@ igt_main igt_subtest_with_dynamic("basic-spin") { __for_each_physical_engine(fd, e) { igt_dynamic_f("%s", e->name) - active_spin(fd, e->flags); + active_spin(fd, e->flags, 0); + } + } + + igt_subtest_with_dynamic("basic-spin-user") { + __for_each_physical_engine(fd, e) { + igt_dynamic_f("%s", e->name) + active_spin(fd, e->flags, IGT_SPIN_USERPTR); } } |