summaryrefslogtreecommitdiff
path: root/lib/ioctl_wrappers.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-02-25 21:43:01 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-03-01 13:25:07 +0000
commitaed69b56d4c63a19594440be6679307b2781ae2c (patch)
treec378ad1952669e651c11a89e1e2136a70db06fb7 /lib/ioctl_wrappers.h
parent925e5e1caef9b56bd53df457735514b644c7a399 (diff)
lib: Add read/write direction support for dmabuf synchronisation
Allow read-only synchronisation on dmabuf mmaps, useful to allow concurrent read-read testing between the CPU and GPU. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/ioctl_wrappers.h')
-rw-r--r--lib/ioctl_wrappers.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ioctl_wrappers.h b/lib/ioctl_wrappers.h
index dc0827a1..f59eafba 100644
--- a/lib/ioctl_wrappers.h
+++ b/lib/ioctl_wrappers.h
@@ -177,8 +177,8 @@ int prime_handle_to_fd(int fd, uint32_t handle);
int prime_handle_to_fd_for_mmap(int fd, uint32_t handle);
uint32_t prime_fd_to_handle(int fd, int dma_buf_fd);
off_t prime_get_size(int dma_buf_fd);
-void prime_sync_start(int dma_buf_fd);
-void prime_sync_end(int dma_buf_fd);
+void prime_sync_start(int dma_buf_fd, bool write);
+void prime_sync_end(int dma_buf_fd, bool write);
/* addfb2 fb modifiers */
struct local_drm_mode_fb_cmd2 {