commit | 6f3f6cb93acb201f1f3f88b28876f942236cee3f | [log] [tgz] |
---|---|---|
author | Dawn Han <[email protected]> | Tue Mar 14 21:30:51 2023 +0000 |
committer | Chromeos LUCI <[email protected]> | Sun Apr 09 18:57:38 2023 +0000 |
tree | d1ec8096ff1a473ca2f174c8cb717111f1f04529 | |
parent | 8a2270e573f0dc7d7f270411db25fb6119b4d812 [diff] |
minigbm: refactor the logic in import_into_minigbm Multi-planer formats are being allocated into a single plane, so `dmabuf_sizes[DRV_MAX_PLANES]` is no longer needed. There is only one `dmabuf_size` now. And use bo->handles[0] only. In the clean-up function, close handle[0] if it's not empty. Bug=b:266776512 TEST=camera and screenshot work fine after deploying the change #kukui-arc-ri Change-Id: I068bcafbfbaf1b2be543aec3a4d87e1870a10d23 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/4338596 Reviewed-by: Yiwei Zhang <[email protected]> Commit-Queue: Dawn Han <[email protected]> Tested-by: Dawn Han <[email protected]>