drm/i915: Skip request serialisation if the timeline is already complete
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 7 Feb 2018 08:43:50 +0000 (08:43 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 7 Feb 2018 13:12:32 +0000 (13:12 +0000)
commit8ac71d1db1f8ebc68540cda131492927f46f334c
treebaf2437f8b341fbfadc2e9dea5552efcd6d49102
parent31dade7df4605b4b40f2c026f15aa188916ea420
drm/i915: Skip request serialisation if the timeline is already complete

If the last request on the timeline is already complete, we do not need
to emit the serialisation barriers.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180207084350.3929-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_request.c