OSDN Git Service

drm/i915: Pass around the intel_context
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 6 Mar 2019 08:47:04 +0000 (08:47 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 6 Mar 2019 10:16:33 +0000 (10:16 +0000)
commitb146e5efe660e03eee2b2c4a2e02410d9a8824ec
tree18d92f0c2901e19d3e8cb4398915d3cb1b61e28d
parent103b76eeff2e86cad489a54e6003d0173df76bde
drm/i915: Pass around the intel_context

Instead of passing the gem_context and engine to find the instance of
the intel_context to use, pass around the intel_context instead. This is
useful for the next few patches, where the intel_context is no longer a
direct lookup.

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/20190306084704.15755-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_perf.c
drivers/gpu/drm/i915/intel_lrc.c