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:

committed by
Dave Airlie

parent
309a5482fa
commit
afca4216b8
@@ -2129,9 +2129,7 @@ await_fence_array(struct i915_execbuffer *eb,
|
|||||||
if (!(flags & I915_EXEC_FENCE_WAIT))
|
if (!(flags & I915_EXEC_FENCE_WAIT))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
rcu_read_lock();
|
fence = drm_syncobj_fence_get(syncobj);
|
||||||
fence = dma_fence_get_rcu_safe(&syncobj->fence);
|
|
||||||
rcu_read_unlock();
|
|
||||||
if (!fence)
|
if (!fence)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user