OSDN Git Service

drm/i915: Consolidate the timeline->barrier
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 8 Apr 2019 09:17:03 +0000 (10:17 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 8 Apr 2019 16:04:12 +0000 (17:04 +0100)
commitde220cc21967fd745d91fbd3fc23a13372730db8
tree13143d3fbd12cbcfa8a8ddae25445e647e0b9e82
parentda23379f1508dba4a02feb1ed4f53122fb4ecf64
drm/i915: Consolidate the timeline->barrier

The timeline is strictly ordered, so by inserting the timeline->barrier
request into the timeline->last_request it naturally provides the same
barrier. Consolidate the pair of barriers into one as they serve the
same purpose.

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/20190408091728.20207-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_context.c
drivers/gpu/drm/i915/i915_request.c
drivers/gpu/drm/i915/i915_timeline.c
drivers/gpu/drm/i915/i915_timeline.h
drivers/gpu/drm/i915/i915_timeline_types.h
drivers/gpu/drm/i915/selftests/mock_timeline.c