]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7a5b065b39514df3c65473e84c6d2f2cdb2a9ca8
tree13143d3fbd12cbcfa8a8ddae25445e647e0b9e82
parent85abc07362ea43b0bab5567dc586ceb8e5cafe7a
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