drm/i915/selftests: Use a random engine for GEM coherency tests
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 27 Oct 2019 22:58:07 +0000 (22:58 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 28 Oct 2019 11:42:59 +0000 (11:42 +0000)
commitc8c197d42646c2a9ebc0ff114b4e916d12208d09
tree5fe67ddc60aa3135cf80930eb4c9e7bdf822902d
parent96815f3d8b50542ab168d94f018461cfae93eae1
drm/i915/selftests: Use a random engine for GEM coherency tests

Select a random user accessible engine for checking coherency results.
While we should check all engines, we use a random selection so that
over repeated runs we cover all.

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/20191027225808.19437-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/selftests/i915_gem_coherency.c