From 666788a6062de62aa0b3560760fbb0903167a319 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Tue, 16 Sep 2014 16:26:50 -0400 Subject: freedreno: add dmabuf import/export helpers Signed-off-by: Rob Clark --- freedreno/freedreno_drmif.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'freedreno/freedreno_drmif.h') diff --git a/freedreno/freedreno_drmif.h b/freedreno/freedreno_drmif.h index 7c54e04b..88fc03de 100644 --- a/freedreno/freedreno_drmif.h +++ b/freedreno/freedreno_drmif.h @@ -98,10 +98,12 @@ struct fd_bo * fd_bo_from_fbdev(struct fd_pipe *pipe, struct fd_bo *fd_bo_from_handle(struct fd_device *dev, uint32_t handle, uint32_t size); struct fd_bo * fd_bo_from_name(struct fd_device *dev, uint32_t name); +struct fd_bo * fd_bo_from_dmabuf(struct fd_device *dev, int fd); struct fd_bo * fd_bo_ref(struct fd_bo *bo); void fd_bo_del(struct fd_bo *bo); int fd_bo_get_name(struct fd_bo *bo, uint32_t *name); uint32_t fd_bo_handle(struct fd_bo *bo); +int fd_bo_dmabuf(struct fd_bo *bo); uint32_t fd_bo_size(struct fd_bo *bo); void * fd_bo_map(struct fd_bo *bo); int fd_bo_cpu_prep(struct fd_bo *bo, struct fd_pipe *pipe, uint32_t op); -- cgit v1.2.3