drm/i915: Avoid ce->gem_context->i915
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 30 Jul 2019 16:34:41 +0000 (17:34 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 31 Jul 2019 06:43:42 +0000 (07:43 +0100)
commitcb0c43f30ca6a34cf9e796d6ca165668cbc2ec89
tree6e423cf0d48f18bc402bac05600ce23460c9412c
parent2e8de0879cf662967c850edb4462f73f3baf8794
drm/i915: Avoid ce->gem_context->i915

My plan for the future is to have kernel contexts not to have a GEM
context backpointer (as they will not belong to any GEM context). In a
few places, we use ce->gem_context to simply obtain the i915 backpointer,
for which we can use ce->engine->i915 instead.

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/20190730163441.16477-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_client_blt.c
drivers/gpu/drm/i915/gem/i915_gem_context.c
drivers/gpu/drm/i915/i915_perf.c