OSDN Git Service

minigbm: Added gralloc API to internal API
authorGurchetan Singh <gurchetansingh@chromium.org>
Wed, 17 Aug 2016 00:57:10 +0000 (17:57 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Mon, 22 Aug 2016 21:52:30 +0000 (14:52 -0700)
commitbfba8c2697ef0dec00ba28eb7d976d56e3e61166
tree79b292924ca619497f5bbd1d770ecf4868351898
parentd7c84fd88fb71f30c90d3d13bd8dfc2c2d2541da
minigbm: Added gralloc API to internal API

Added the drv analogues of the 2 flexible formats we need to support.
Added analogues of most of the gralloc use flags, except:

GRALLOC_USAGE_SW_READ_MASK
GRALLOC_USAGE_SW_WRITE_MASK
GRALLOC_USAGE_HW_MASK
GRALLOC_USAGE_FOREIGN_BUFFERS
GRALLOC_USAGE_ALLOC_MASK

These are used as masks and don't make sense as usage hints.  In
addition, put the new flags in the drivers' supported lists and
added a flexible format query function.

BUG=chromium:616275
TEST=minigbm still builds
CQ-DEPEND=CL:371501

Change-Id: Idd2ecd6fde3e6c5caaaf3a8404d0d7db20b4ecf4
Reviewed-on: https://chromium-review.googlesource.com/372359
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
drv.c
drv.h
drv_priv.h
i915.c
mediatek.c
rockchip.c
tegra.c