minigbm: Remove plane in bo_map
Remove the parameter to align with upstream gbm. For some places that use the number of planes. The number is 1. The multi-planar formats are being allocated into a single plane, and minigbm exynos backend is dropped. So we can just set the plane index to 0 if needed. Fixed the format in i915.c. Bug=b:266776512 TEST=camera works after deploying the change #strongbad TEST=camera works after deploying the change #corsola Change-Id: I0880917754c01b9d0f27d21f3c42d87f00a09f50 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/4249501 Commit-Queue: Dawn Han <dawnhan@google.com> Tested-by: Dawn Han <dawnhan@google.com> Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by: Chia-I Wu <olv@google.com>
This commit is contained in:
parent
46a3cfa5a8
commit
ecbc89179e
12 changed files with 23 additions and 24 deletions
2
drv.c
2
drv.c
|
|
@ -523,7 +523,7 @@ void *drv_bo_map(struct bo *bo, const struct rectangle *rect, uint32_t map_flags
|
|||
}
|
||||
|
||||
memcpy(mapping.vma->map_strides, bo->meta.strides, sizeof(mapping.vma->map_strides));
|
||||
addr = drv->backend->bo_map(bo, mapping.vma, plane, map_flags);
|
||||
addr = drv->backend->bo_map(bo, mapping.vma, map_flags);
|
||||
if (addr == MAP_FAILED) {
|
||||
*map_data = NULL;
|
||||
free(mapping.vma);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue