Lines Matching defs:backend
66 const struct backend *backend; member
77 struct backend { struct
78 char *name;
79 void (*preload)(bool load);
80 int (*init)(struct driver *drv);
81 void (*close)(struct driver *drv);
82 int (*bo_create)(struct bo *bo, uint32_t width, uint32_t height, uint32_t format,
84 int (*bo_create_with_modifiers)(struct bo *bo, uint32_t width, uint32_t height,
88 int (*bo_compute_metadata)(struct bo *bo, uint32_t width, uint32_t height, uint32_t format,
90 int (*bo_create_from_metadata)(struct bo *bo);
92 int (*bo_release)(struct bo *bo);
94 int (*bo_destroy)(struct bo *bo);
95 int (*bo_import)(struct bo *bo, struct drv_import_fd_data *data);
96 void *(*bo_map)(struct bo *bo, struct vma *vma, uint32_t map_flags);
97 int (*bo_unmap)(struct bo *bo, struct vma *vma);
98 int (*bo_invalidate)(struct bo *bo, struct mapping *mapping);
99 int (*bo_flush)(struct bo *bo, struct mapping *mapping);
100 void (*resolve_format_and_use_flags)(struct driver *drv, uint32_t format,
103 size_t (*num_planes_from_modifier)(struct driver *drv, uint32_t format, uint64_t modifier);
104 int (*resource_info)(struct bo *bo, uint32_t strides[DRV_MAX_PLANES],
106 uint32_t (*get_max_texture_2d_size)(struct driver *drv);