summaryrefslogtreecommitdiff
path: root/src/etnaviv/viv.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/etnaviv/viv.h')
-rw-r--r--src/etnaviv/viv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/etnaviv/viv.h b/src/etnaviv/viv.h
index a8daf47..ec044f5 100644
--- a/src/etnaviv/viv.h
+++ b/src/etnaviv/viv.h
@@ -264,6 +264,10 @@ int viv_free_vidmem(struct viv_conn *conn, viv_node_t node);
*/
int viv_free_contiguous(struct viv_conn *conn, size_t bytes, viv_addr_t physical, void *logical);
+/** Map a dmabuf to GPU memory.
+ */
+int viv_map_dmabuf(struct viv_conn *conn, int fd, viv_usermem_t *info, viv_addr_t *address, int prot);
+
/** Map user memory to GPU memory.
*/
int viv_map_user_memory(struct viv_conn *conn, void *memory, size_t size, viv_usermem_t *info, viv_addr_t *address);