diff options
author | Kristian Høgsberg <[email protected]> | 2014-03-28 10:17:11 -0700 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2014-04-01 12:27:26 -0700 |
commit | a43d286ef7ff65087b1f051d071b829ca7b02073 (patch) | |
tree | ca66de52ed5d0f42d7473167aef75086682e7ea4 /src/gbm/main/gbm.h | |
parent | f54f5891be24eea2af2d1c9864a3f74c1e7648fc (diff) |
gbm: Add import from fd
Add a new import type that lets us create a gbm bo from a
DMA-BUF file descriptor.
Signed-off-by: Kristian Høgsberg <[email protected]>
Diffstat (limited to 'src/gbm/main/gbm.h')
-rw-r--r-- | src/gbm/main/gbm.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gbm/main/gbm.h b/src/gbm/main/gbm.h index 9e0c7705ea8..92d472a0762 100644 --- a/src/gbm/main/gbm.h +++ b/src/gbm/main/gbm.h @@ -232,6 +232,15 @@ gbm_bo_create(struct gbm_device *gbm, #define GBM_BO_IMPORT_WL_BUFFER 0x5501 #define GBM_BO_IMPORT_EGL_IMAGE 0x5502 +#define GBM_BO_IMPORT_FD 0x5503 + +struct gbm_import_fd_data { + int fd; + uint32_t width; + uint32_t height; + uint32_t stride; + uint32_t format; +}; struct gbm_bo * gbm_bo_import(struct gbm_device *gbm, uint32_t type, |