drm/i915: Remove redundant i915_request_await_object in blit clears
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 15 Jun 2020 15:14:49 +0000 (16:14 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 16 Jun 2020 20:53:56 +0000 (21:53 +0100)
commit223128f767102127bf651a509df745fb6d56b3fb
treefa647a1ea7183099401031c86e2209b796c3a247
parente971fe9128a742537a1d8803b852c69777a885eb
drm/i915: Remove redundant i915_request_await_object in blit clears

One i915_request_await_object is enough and we keep the one under the
object lock so it is final.

At the same time move async clflushing setup under the same locked
section and consolidate common code into a helper function.

v2:
 * Emit initial breadcrumbs after aways are set up. (Chris)

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michael J. Ruhl <michael.j.ruhl@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200615151449.32605-1-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/gem/i915_gem_object_blt.c