[RFC,v4,06/17,media] vb2: add .send_out_fence() to notify userspace of out_fence_fd
Commit Message
From: Gustavo Padovan <gustavo.padovan@collabora.com>
With the upcoming explicit synchronization support to V4L2 we need a
way to notify userspace of the out_fence_fd when buffers are queued to the
driver - buffers with in-fences attached to it can only be queued once the
fence signal, so the queueing to the driver might be deferred.
v2: rename to .send_out_fence()
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
---
include/media/videobuf2-core.h | 2 ++
1 file changed, 2 insertions(+)
@@ -408,6 +408,7 @@ struct vb2_ops {
* will return an error.
* @copy_timestamp: copy the timestamp from a userspace structure to
* the vb2_buffer struct.
+ * @send_out_fence: send an out_fence fd of the buffer queued to userspace.
*/
struct vb2_buf_ops {
int (*verify_planes_array)(struct vb2_buffer *vb, const void *pb);
@@ -415,6 +416,7 @@ struct vb2_buf_ops {
int (*fill_vb2_buffer)(struct vb2_buffer *vb, const void *pb,
struct vb2_plane *planes);
void (*copy_timestamp)(struct vb2_buffer *vb, const void *pb);
+ void (*send_out_fence)(struct vb2_buffer *vb);
};
/**