diff options
author | Gurchetan Singh <gurchetansingh@chromium.org> | 2017-11-03 17:17:35 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-11-16 13:52:02 -0800 |
commit | bc9a87d54c5296d467ead2b4ea35e317f00ee401 (patch) | |
tree | d31c7bfc97f3cc693363345620f772c4f4465674 /drv_priv.h | |
parent | d300145b093cf67277648a664d3748b881d4a315 (diff) |
minigbm: use drv_array for combinations and kms_items
This de-deuplicates the various dynamic arrays we use.
BUG=chromium:764871
TEST=gbmtest passes
Change-Id: I94c8cf7c71fdb98b931aab00c5381853e2ae0d3f
Reviewed-on: https://chromium-review.googlesource.com/758149
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Diffstat (limited to 'drv_priv.h')
-rw-r--r-- | drv_priv.h | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -49,19 +49,13 @@ struct combination { uint64_t use_flags; }; -struct combinations { - struct combination *data; - uint32_t size; - uint32_t allocations; -}; - struct driver { int fd; const struct backend *backend; void *priv; void *buffer_table; struct drv_array *mappings; - struct combinations combos; + struct drv_array *combos; pthread_mutex_t driver_lock; }; |