drm/i915: Move i915_gem_init_contexts() earlier
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 21 Dec 2019 20:01:09 +0000 (20:01 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 21 Dec 2019 21:07:01 +0000 (21:07 +0000)
commit78be2c303acae8e3581328fab4b22ce8f1cc4cf9
treea4806919d1dd9e4323b4b1c3432774b49433c4e3
parent4856254d48d3d4435f4919dc505c9749e33eec7d
drm/i915: Move i915_gem_init_contexts() earlier

As the GEM global context setup is now independent of the GT state
(although GT does currently still depend upon the global
i915->kernel_context), we can move its init earlier, leaving the gt init
ready to be extracted.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Andi Shyti <andi.shyti@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191221200109.1202310-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c