minigbm: factor out metadata from struct bo

Generated using coccinelle:

@@
struct bo *B;
@@

- B->width
+ B->width

BUG=chromium:924405
TEST=compile

Change-Id: I4da1731a650d198ce7f2bda3031a47b2f9c3041c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/1815566
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
diff --git a/drv_priv.h b/drv_priv.h
index 46e6490..b497890 100644
--- a/drv_priv.h
+++ b/drv_priv.h
@@ -14,20 +14,24 @@
 
 #include "drv.h"
 
-struct bo {
-	struct driver *drv;
+struct bo_metadata {
 	uint32_t width;
 	uint32_t height;
 	uint32_t format;
 	uint32_t tiling;
 	size_t num_planes;
-	union bo_handle handles[DRV_MAX_PLANES];
 	uint32_t offsets[DRV_MAX_PLANES];
 	uint32_t sizes[DRV_MAX_PLANES];
 	uint32_t strides[DRV_MAX_PLANES];
 	uint64_t format_modifiers[DRV_MAX_PLANES];
 	uint64_t use_flags;
 	size_t total_size;
+};
+
+struct bo {
+	struct driver *drv;
+	struct bo_metadata meta;
+	union bo_handle handles[DRV_MAX_PLANES];
 	void *priv;
 };