i915: Use drm_syncobj_fence_get

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Jason Ekstrand 2017-08-25 10:52:21 -07:00 committed by Dave Airlie
parent 309a5482fa
commit afca4216b8

View File

@ -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;