freedreno: add dmabuf import/export helpers
[platform/upstream/libdrm.git] / freedreno / freedreno_priv.h
index 6bd1dec..b204e53 100644 (file)
@@ -139,6 +139,7 @@ struct fd_bo {
        uint32_t size;
        uint32_t handle;
        uint32_t name;
+       int fd;          /* dmabuf handle */
        void *map;
        atomic_t refcnt;
        struct fd_bo_funcs *funcs;
@@ -148,9 +149,6 @@ struct fd_bo {
        time_t free_time;        /* time when added to bucket-list */
 };
 
-struct fd_bo *fd_bo_from_handle(struct fd_device *dev,
-               uint32_t handle, uint32_t size);
-
 #define ALIGN(v,a) (((v) + (a) - 1) & ~((a) - 1))
 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))