* The buffer will be read by a video encode accelerator.
*/
GBM_BO_USE_HW_VIDEO_ENCODER = (1 << 14),
+
+ /**
+ * If this flag is set, no backing memory will be allocated for the
+ * created buffer. The metadata of the buffer (e.g. size) can be
+ * queried, and the values will be equal to a buffer allocated with
+ * the same same arguments minus this flag. However, any methods
+ * which would otherwise access the underlying buffer will fail.
+ */
+ GBM_TEST_ALLOC = (1 << 15),
};
int
GBM_BO_TRANSFER_READ_WRITE = (GBM_BO_TRANSFER_READ | GBM_BO_TRANSFER_WRITE),
};
+void *
+gbm_bo_map(struct gbm_bo *bo,
+ uint32_t x, uint32_t y, uint32_t width, uint32_t height,
+ uint32_t flags, uint32_t *stride, void **map_data);
+
void
gbm_bo_unmap(struct gbm_bo *bo, void *map_data);
gbm_bo_get_plane_fd(struct gbm_bo *bo, size_t plane);
void *
-gbm_bo_map(struct gbm_bo *bo,
- uint32_t x, uint32_t y, uint32_t width, uint32_t height,
- uint32_t flags, uint32_t *stride, void **map_data, size_t plane);
-void *
gbm_bo_map2(struct gbm_bo *bo,
uint32_t x, uint32_t y, uint32_t width, uint32_t height,
uint32_t flags, uint32_t *stride, void **map_data, int plane);