drm/i915/selftests: Be engine agnostic
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 4 Jul 2019 21:23:43 +0000 (22:23 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 4 Jul 2019 21:55:00 +0000 (22:55 +0100)
commit8f856c743c770b57308de450b21f70c0d16ab4cf
tree728937a403f2af55e8c69c0a27f276a243010356
parentec22f256a60ccf0dedd4ee305e616b6f17ed2bb7
drm/i915/selftests: Be engine agnostic

When using MI operations, we do not care which engine we use, so use
them all where possible, and where inconvenient double check we have the
engine we selected at random.

v2: Drop the local copy of engine->sseu to avoid an unchecked deref

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190704212343.6820-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
drivers/gpu/drm/i915/gem/selftests/i915_gem_coherency.c
drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c
drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c