minigbm: add gbm_bo_get_fd_for_plane
One more piece in aligning with Mesa GBM .. BUG=b:145747113 TEST=compile Change-Id: Ic9d5dad5705feccd7005f40370f59d0339fe8bfc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/2803580 Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org> Tested-by: Gurchetan Singh <gurchetansingh@chromium.org> Commit-Queue: Gurchetan Singh <gurchetansingh@chromium.org>
This commit is contained in:
parent
39d9f8bcf2
commit
146ee021c0
3 changed files with 10 additions and 2 deletions
5
gbm.c
5
gbm.c
|
|
@ -328,6 +328,11 @@ PUBLIC union gbm_bo_handle gbm_bo_get_handle_for_plane(struct gbm_bo *bo, size_t
|
|||
return (union gbm_bo_handle)drv_bo_get_plane_handle(bo->bo, (size_t)plane).u64;
|
||||
}
|
||||
|
||||
PUBLIC int gbm_bo_get_fd_for_plane(struct gbm_bo *bo, int plane)
|
||||
{
|
||||
return drv_bo_get_plane_fd(bo->bo, plane);
|
||||
}
|
||||
|
||||
PUBLIC uint32_t gbm_bo_get_offset(struct gbm_bo *bo, size_t plane)
|
||||
{
|
||||
return drv_bo_get_plane_offset(bo->bo, (size_t)plane);
|
||||
|
|
|
|||
3
gbm.h
3
gbm.h
|
|
@ -428,6 +428,9 @@ gbm_bo_get_plane_count(struct gbm_bo *bo);
|
|||
union gbm_bo_handle
|
||||
gbm_bo_get_handle_for_plane(struct gbm_bo *bo, size_t plane);
|
||||
|
||||
int
|
||||
gbm_bo_get_fd_for_plane(struct gbm_bo *bo, int plane);
|
||||
|
||||
int
|
||||
gbm_bo_write(struct gbm_bo *bo, const void *buf, size_t count);
|
||||
|
||||
|
|
|
|||
4
msm.c
4
msm.c
|
|
@ -229,8 +229,8 @@ static int msm_init(struct driver *drv)
|
|||
* compressed in this case because the UBWC flags/meta data can be out of
|
||||
* sync with pixel data while the GPU is writing a frame out to memory.
|
||||
*/
|
||||
uint64_t sw_flags = (BO_USE_RENDERSCRIPT | BO_USE_SW_MASK |
|
||||
BO_USE_LINEAR | BO_USE_FRONT_RENDERING);
|
||||
uint64_t sw_flags =
|
||||
(BO_USE_RENDERSCRIPT | BO_USE_SW_MASK | BO_USE_LINEAR | BO_USE_FRONT_RENDERING);
|
||||
|
||||
drv_add_combinations(drv, render_target_formats, ARRAY_SIZE(render_target_formats),
|
||||
&LINEAR_METADATA, render_use_flags);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue