igt/gem_exec_whisper: Move the require(gen>5) out of the child
Don't perform igt_require() in children, it only angers igt.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
diff --git a/tests/gem_exec_whisper.c b/tests/gem_exec_whisper.c
index 60f1031..d8a2c69 100644
--- a/tests/gem_exec_whisper.c
+++ b/tests/gem_exec_whisper.c
@@ -233,6 +233,9 @@
}
igt_require(nengine);
+ if (flags & FDS)
+ igt_require(gen >= 6);
+
if (flags & CONTEXTS) {
igt_require(__gem_context_create(fd, &contexts[0]) == 0);
gem_context_destroy(fd, contexts[0]);
@@ -300,7 +303,6 @@
contexts[n] = gem_context_create(fd);
}
if (flags & FDS) {
- igt_require(gen >= 6);
for (n = 0; n < 64; n++)
fds[n] = drm_open_driver(DRIVER_INTEL);
}