summaryrefslogtreecommitdiff
path: root/drv_priv.h
diff options
context:
space:
mode:
authorGurchetan Singh <gurchetansingh@chromium.org>2017-11-02 17:32:00 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-11-14 03:22:34 -0800
commitcfedbcc8d475fca39ac0a0d4bc6e4881937e2875 (patch)
treea5a242d2038b07d06775a162d971ca08ac58f6f3 /drv_priv.h
parent0b78e0716b1806806ef2babc870cc19f8a485abe (diff)
minigbm: use drv_array for mappings
Let's start allowing multiple mappings of the same buffer when different map flags are passed in. BUG=chromium:764871 TEST=mmap_test -g on Kevin, gbmtest Change-Id: I4eb0b6f4c3572a92001696c2720d5a5f7d9d73a4 Reviewed-on: https://chromium-review.googlesource.com/758146 Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org> Tested-by: Gurchetan Singh <gurchetansingh@chromium.org> Reviewed-by: Joe Kniss <djmk@google.com> Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Diffstat (limited to 'drv_priv.h')
-rw-r--r--drv_priv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drv_priv.h b/drv_priv.h
index e5b9d55..dceeeb7 100644
--- a/drv_priv.h
+++ b/drv_priv.h
@@ -60,7 +60,7 @@ struct driver {
const struct backend *backend;
void *priv;
void *buffer_table;
- void *map_table;
+ struct drv_array *mappings;
struct combinations combos;
pthread_mutex_t driver_lock;
};