OSDN Git Service

minigbm: One buffer for NV12
authorGurchetan Singh <gurchetansingh@chromium.org>
Fri, 15 Jul 2016 02:54:44 +0000 (19:54 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Tue, 19 Jul 2016 00:32:55 +0000 (17:32 -0700)
commitf64487b09663ecd16b176e0bf6277ecba3542951
treeb1ebd5963885fae7d0a16c6d8c18e9ed9bb33a07
parentf9e7c4c8e91fb354abf714c7a5c89b4990814ff3
minigbm: One buffer for NV12

Some of our Android framework code expects one fd per format.  The gbm
API allows it, so let's go with this representation.  Also fixed a bug
that comes up when bo->num_planes = 2, but the handles are the same.

BUG=chromium:616275
TEST=gbmtest, plane_test

Change-Id: Iec0e6319d144941a73c26497af2078112d5e4e64
Reviewed-on: https://chromium-review.googlesource.com/360905
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Zach Reizner <zachr@chromium.org>
helpers.c
rockchip.c