diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-02-25 21:43:01 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-03-01 13:25:07 +0000 |
commit | aed69b56d4c63a19594440be6679307b2781ae2c (patch) | |
tree | c378ad1952669e651c11a89e1e2136a70db06fb7 /lib/ioctl_wrappers.h | |
parent | 925e5e1caef9b56bd53df457735514b644c7a399 (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.h | 4 |
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 { |