dma-buf/fence: add signal_on_any to the fence array v2

If @signal_on_any is true the fence array signals if any fence in the array
signals, otherwise it signals when all fences in the array signal.

v2: fix signaled test and add comment suggested by Chris Wilson.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Acked-by: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1464786612-5010-4-git-send-email-deathsimple@vodafone.de
This commit is contained in:
Christian König
2016-06-01 15:10:04 +02:00
committed by Daniel Vetter
parent b3dfbdf261
commit f710456896
2 changed files with 27 additions and 9 deletions

View File

@@ -67,6 +67,7 @@ static inline struct fence_array *to_fence_array(struct fence *fence)
}
struct fence_array *fence_array_create(int num_fences, struct fence **fences,
u64 context, unsigned seqno);
u64 context, unsigned seqno,
bool signal_on_any);
#endif /* __LINUX_FENCE_ARRAY_H */