OSDN Git Service

gralloc4: Add DRM_FORMAT_ARGB4444 format layout
[android-x86/external-minigbm.git] / drv_priv.h
index d918b33..3f7a2fd 100644 (file)
@@ -57,6 +57,7 @@ struct driver {
        struct drv_array *mappings;
        struct drv_array *combos;
        pthread_mutex_t driver_lock;
+       bool compression;
 };
 
 struct backend {
@@ -72,6 +73,7 @@ struct backend {
        int (*bo_compute_metadata)(struct bo *bo, uint32_t width, uint32_t height, uint32_t format,
                                   uint64_t use_flags, const uint64_t *modifiers, uint32_t count);
        int (*bo_create_from_metadata)(struct bo *bo);
+       int (*bo_get_plane_fd)(struct bo *bo, size_t plane);
        int (*bo_destroy)(struct bo *bo);
        int (*bo_import)(struct bo *bo, struct drv_import_fd_data *data);
        void *(*bo_map)(struct bo *bo, struct vma *vma, size_t plane, uint32_t map_flags);