minigbm: Add bo_get_plane_fd backend hook
Non-DRM drivers shouldn't rely on handles and DRM API. Add hook to allow drivers create custom implementation. Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com> Change-Id: I458dae38f80697184070019606b125992a9aa01d
This commit is contained in:
parent
37858e5143
commit
529b476a9e
2 changed files with 6 additions and 0 deletions
|
|
@ -97,6 +97,7 @@ struct backend {
|
|||
int (*bo_unmap)(struct bo *bo, struct vma *vma);
|
||||
int (*bo_invalidate)(struct bo *bo, struct mapping *mapping);
|
||||
int (*bo_flush)(struct bo *bo, struct mapping *mapping);
|
||||
int (*bo_get_plane_fd)(struct bo *bo, size_t plane);
|
||||
void (*resolve_format_and_use_flags)(struct driver *drv, uint32_t format,
|
||||
uint64_t use_flags, uint32_t *out_format,
|
||||
uint64_t *out_use_flags);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue