diff options
author | 2020-05-08 10:29:25 +0100 | |
---|---|---|
committer | 2020-05-08 12:38:54 +0100 | |
commit | 2045d666ae634f1676660acfb864bcba0e9f86ca (patch) | |
tree | 211e50699975e0ceb8d71ecd68211f78c42dfaaa /drivers/gpu/drm/i915/i915_request.c | |
parent | drm/i915/gen12: Add aux table invalidate for all engines (diff) | |
download | linux-dev-2045d666ae634f1676660acfb864bcba0e9f86ca.tar.xz linux-dev-2045d666ae634f1676660acfb864bcba0e9f86ca.zip |
drm/i915: Ignore submit-fences on the same timeline
While we ordinarily do not skip submit-fences due to the accompanying
hook that we want to callback on execution, a submit-fence on the same
timeline is meaningless.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200508092933.738-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_request.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_request.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_request.c b/drivers/gpu/drm/i915/i915_request.c index 589739bfee25..be2ce9065a29 100644 --- a/drivers/gpu/drm/i915/i915_request.c +++ b/drivers/gpu/drm/i915/i915_request.c @@ -1242,6 +1242,9 @@ i915_request_await_execution(struct i915_request *rq, continue; } + if (fence->context == rq->fence.context) + continue; + /* * We don't squash repeated fence dependencies here as we * want to run our callback in all cases. |