Skip to content

Commit

Permalink
i915: Use drm_syncobj_fence_get
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Jason Ekstrand authored and Dave Airlie committed Aug 28, 2017
1 parent 309a548 commit afca421
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/gpu/drm/i915/i915_gem_execbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -2129,9 +2129,7 @@ await_fence_array(struct i915_execbuffer *eb,
if (!(flags & I915_EXEC_FENCE_WAIT))
continue;

rcu_read_lock();
fence = dma_fence_get_rcu_safe(&syncobj->fence);
rcu_read_unlock();
fence = drm_syncobj_fence_get(syncobj);
if (!fence)
return -EINVAL;

Expand Down

0 comments on commit afca421

Please sign in to comment.