drm/i915/selftests: Set igt_spinner.gt for early exit
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 8 Jul 2019 21:55:24 +0000 (22:55 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 9 Jul 2019 07:07:09 +0000 (08:07 +0100)
commitbaf08ed50a614f21398f30e11d4b6ba2ffecc36e
tree5623222e447bdcb5bcd90b38f43d69782cadabed
parenta17ce803dffa8e34fda39f8af721a4005c451fef
drm/i915/selftests: Set igt_spinner.gt for early exit

Set up a default gt pointer for an early cleanup of igt_spinnter, before
a request is created and igt_spinner.gt set to the active engine's.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190708215524.31639-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/igt_spinner.c