summaryrefslogtreecommitdiff
path: root/drv_priv.h
diff options
context:
space:
mode:
authorGurchetan Singh <gurchetansingh@chromium.org>2017-11-03 17:17:35 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-11-16 13:52:02 -0800
commitbc9a87d54c5296d467ead2b4ea35e317f00ee401 (patch)
treed31c7bfc97f3cc693363345620f772c4f4465674 /drv_priv.h
parentd300145b093cf67277648a664d3748b881d4a315 (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.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/drv_priv.h b/drv_priv.h
index 048b9a3..18a289c 100644
--- a/drv_priv.h
+++ b/drv_priv.h
@@ -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;
};