drm/i915/selftests: Teach switch_to_context() to use the context
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 22 Oct 2019 13:02:21 +0000 (14:02 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 22 Oct 2019 19:43:08 +0000 (20:43 +0100)
commitc31c9e82ee8ae032b0ed495ae8b8207a6734452b
tree8a377f395e51480f6b02e774bcb7577ea5caf49d
parentae2e28b02630072134392e75b1062eef69aeeff8
drm/i915/selftests: Teach switch_to_context() to use the context

The context details which engines to use, so use the ctx->engines[] to
generate the requests to cause the context switch.

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/20191022130221.20644-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_gem.c