drm/i915: Push the use-semaphore marker onto the intel_context
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 20 Dec 2019 10:12:30 +0000 (10:12 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 20 Dec 2019 10:57:10 +0000 (10:57 +0000)
commit0f100b70487ab8b1323eed1f99cfc10eb18a688e
tree5188d6972f15600b8381569b9442a18363aab35e
parent9f3ccd40acf4a348aab4eda140cdb4d2f1f773b4
drm/i915: Push the use-semaphore marker onto the intel_context

Instead of rummaging through the intel_context to peek at the GEM
context in the middle of request submission to decide whether to use
semaphores, store that information on the intel_context itself.

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/20191220101230.256839-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_context.c
drivers/gpu/drm/i915/gt/intel_context.c
drivers/gpu/drm/i915/gt/intel_context.h
drivers/gpu/drm/i915/gt/intel_context_types.h
drivers/gpu/drm/i915/i915_request.c