drm/i915/gem: Peek at the inflight context
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 29 Dec 2020 14:41:14 +0000 (14:41 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 29 Dec 2020 19:28:45 +0000 (19:28 +0000)
commitcc1557cadfd4d3894aab910250716b74a141fcfe
tree63e1d0be189cf7342ea4e1b11c48503afa53be51
parent70960ab27542d8dc322f909f516391f331fbd3f1
drm/i915/gem: Peek at the inflight context

If supported by the backend, we can quickly look at the context's
inflight engine rather than search along the active list to confirm.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201229144114.31686-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_context.c
drivers/gpu/drm/i915/gt/intel_context.h
drivers/gpu/drm/i915/gt/intel_context_types.h
drivers/gpu/drm/i915/gt/intel_execlists_submission.c