OSDN Git Service

minigbm: introduce drv_array
authorGurchetan Singh <gurchetansingh@chromium.org>
Thu, 2 Nov 2017 23:42:49 +0000 (16:42 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Thu, 9 Nov 2017 08:38:12 +0000 (00:38 -0800)
commit39f66c0cf95dc64c263feb91b493c49acdbd6c71
tree05175ce5efb7268c587ddaf6090ac7ff34345651
parent47e629b70ddec014c7691a48509ef437c57761bb
minigbm: introduce drv_array

We want to allow multiple mappings of a single buffer with different
map flags. To do this, we'll need some sort of linked list or dynamic
array of mappings. We already use dynamic arrays in minigbm, so let's
centralize that functionality and use it.

BUG=chromium:764871
TEST=emerge-kevin {minigbm, arc-cros-gralloc}

Change-Id: I2b391d6e8e690eac6368b1404a806b2bfbbcdf44
Reviewed-on: https://chromium-review.googlesource.com/758145
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
helpers.h
helpers_array.c [new file with mode: 0644]
helpers_array.h [new file with mode: 0644]