summaryrefslogtreecommitdiff
path: root/lib/igt_dummyload.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2020-05-05 13:08:54 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2020-05-19 14:18:56 +0100
commitf3072b262d01c1d2837b73c658faba77686dd154 (patch)
tree3de2331d188c77ec357711300eba0404d22a969c /lib/igt_dummyload.c
parent66ab5e42811fee3dea8c21ab29e70e323a0650de (diff)
lib/i915: Reset all engine properties to defaults prior to the start of a test
We need each test in an isolated context, so that bad results from one test do not interfere with the next. In particular, we want to clean up the device and reset it to the defaults so that they are known for the next test, and the test can focus on behaviour it wants to control. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Diffstat (limited to 'lib/igt_dummyload.c')
-rw-r--r--lib/igt_dummyload.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/igt_dummyload.c b/lib/igt_dummyload.c
index 0b52eb5b..a733bd67 100644
--- a/lib/igt_dummyload.c
+++ b/lib/igt_dummyload.c
@@ -355,8 +355,6 @@ igt_spin_factory(int fd, const struct igt_spin_factory *opts)
{
igt_spin_t *spin;
- igt_require_gem(fd);
-
if (opts->engine != ALL_ENGINES) {
struct intel_execution_engine2 e;
int class;