diff options
Diffstat (limited to 'src/etnaviv/etna_bo.h')
-rw-r--r-- | src/etnaviv/etna_bo.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/etnaviv/etna_bo.h b/src/etnaviv/etna_bo.h index a4f1024..ad5bffb 100644 --- a/src/etnaviv/etna_bo.h +++ b/src/etnaviv/etna_bo.h @@ -62,6 +62,9 @@ struct etna_bo; /* Allocate linear block of video memory */ struct etna_bo *etna_bo_new(struct viv_conn *conn, size_t bytes, uint32_t flags); +/* Map user memory (which may be write protected) into GPU memory space */ +struct etna_bo *etna_bo_from_usermem_prot(struct viv_conn *conn, void *memory, size_t size, int prot); + /* Map user memory into GPU memory space */ struct etna_bo *etna_bo_from_usermem(struct viv_conn *conn, void *memory, size_t size); |