drm/i915: Replace nested subclassing with explicit subclasses
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Jul 2018 21:07:10 +0000 (22:07 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 7 Jul 2018 07:09:43 +0000 (08:09 +0100)
commit890fd185d53037d05d10a0825950c4b038e39d4a
tree7f3885cd7de4e908ccb76e35a23adab8d274a1ae
parent07e070e1e3b24e4b66a3b5e55e6486d7fe9769dd
drm/i915: Replace nested subclassing with explicit subclasses

In the next patch, we will want a third distinct class of timeline that
may overlap with the current pair of client and engine timeline classes.
Rather than use the ad hoc markup of SINGLE_DEPTH_NESTING, initialise
the different timeline classes with an explicit subclass.

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/20180706210710.16251-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_request.c
drivers/gpu/drm/i915/i915_timeline.h
drivers/gpu/drm/i915/intel_engine_cs.c
drivers/gpu/drm/i915/selftests/mock_engine.c