drm/i915/selftests: Allocate mock ring/timeline per context
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 18 Jan 2019 19:08:05 +0000 (19:08 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 18 Jan 2019 20:39:27 +0000 (20:39 +0000)
commit209760b7f6eefce3a35cd5e134bd59155ec98888
tree5629184f0d6e94c151f30f0984d42f445cfd3478
parentbfb0a2cb2b2d8ff3620b8cd21fdaf00c28998e19
drm/i915/selftests: Allocate mock ring/timeline per context

To correctly simulate preemption between contexts, we need independent
timelines along each context. Make it so.

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