drm/i915/selftests: Add the mock engine to the gt->engine[]
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 18 Oct 2019 13:07:03 +0000 (14:07 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 18 Oct 2019 13:53:48 +0000 (14:53 +0100)
commitbcce7d90d120cddc726d5c98aa46188daef141f3
tree8338c71c422ea16dc045e9c9bf1c70ce6eeca9ac
parent72405c3d7850c85dccbe4629720004ae933c2add
drm/i915/selftests: Add the mock engine to the gt->engine[]

Remember to include the newly created mock engine in the list of
available engines inside the gt.

Fixes: a50134b1983b ("drm/i915: Make for_each_engine_masked work on intel_gt")
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/20191018130703.31125-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/mock_engine.c