Displaying 2 results from an estimated 2 matches for "sync_fence_cb".
2014 Sep 26
0
[RFC PATCH 1/7] android: Support creating sync fence from drm fences
...ence->cbs[0].sync_pt = &pt->base;
- fence->cbs[0].fence = fence;
- if (fence_add_callback(&pt->base, &fence->cbs[0].cb,
- fence_check_cb_func))
- atomic_dec(&fence->status);
+ for (i = 0; i < num_fences; i++) {
+ struct fence *f = fences[i];
+ struct sync_fence_cb *cb = &sync_fence->cbs[i];
- sync_fence_debug_add(fence);
+ cb->sync_pt = fence_get(f);
+ cb->fence = sync_fence;
+ if (!fence_add_callback(f, &cb->cb, fence_check_cb_func))
+ atomic_inc(&sync_fence->status);
+ }
+ sync_fence_debug_add(sync_fence);
- return fence...
2014 Sep 26
14
[RFC] Explicit synchronization for Nouveau
Hi guys,
I'd like to start a new thread about explicit fence synchronization. This time
with a Nouveau twist. :-)
First, let me define what I understand by implicit/explicit sync:
Implicit synchronization
* Fences are attached to buffers
* Kernel manages fences automatically based on buffer read/write access
Explicit synchronization
* Fences are passed around independently
* Kernel takes