gbm: Export a per plane getter for offset
[mesa.git] / src / gbm / main / gbmint.h
index c6a6701464a4aeb32ddd0d22512204aa8b3f4409..a6541d91c555dbd6f4eb4dfce0ed14826b26e17c 100644 (file)
@@ -77,6 +77,9 @@ struct gbm_device {
    int (*bo_write)(struct gbm_bo *bo, const void *buf, size_t data);
    int (*bo_get_fd)(struct gbm_bo *bo);
    int (*bo_get_planes)(struct gbm_bo *bo);
+   union gbm_bo_handle (*bo_get_handle)(struct gbm_bo *bo, int plane);
+   uint32_t (*bo_get_stride)(struct gbm_bo *bo, int plane);
+   int64_t (*bo_get_offset)(struct gbm_bo *bo, int plane);
    void (*bo_destroy)(struct gbm_bo *bo);
 
    struct gbm_surface *(*surface_create)(struct gbm_device *gbm,