minigbm: Add drv_bo_get_pixel_stride function
Some drivers may copy/convert the buffer during mapping and in some cases stride of copied image can be different from original. Android uses pixel_stride for CPU access and need map_time stride instead of original stride in this cases. Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
This commit is contained in:
parent
4e28ceda1c
commit
446588514a
4 changed files with 21 additions and 3 deletions
|
|
@ -98,6 +98,7 @@ struct backend {
|
|||
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);
|
||||
uint32_t (*bo_get_map_stride)(struct bo *bo);
|
||||
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