summaryrefslogtreecommitdiff
path: root/drv_priv.h
diff options
context:
space:
mode:
authorGurchetan Singh <gurchetansingh@chromium.org>2016-11-21 10:46:38 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-11-28 23:59:30 -0800
commitf3b22da397567eaa9d7cd59b50f43eea92b9be61 (patch)
treef335dddd3b8528808796ef559e54955a04b1bf51 /drv_priv.h
parentc746dca555369056a6a74924bba576e904f0b38d (diff)
minigbm: Switch to <drm_fourcc.h>
We were duplicating formats. The original rationale behind this was DRV_FORMAT_* would be a superset of Android and DRM formats. However, there are only 2 HAL flexible formats not defined by DRM, and we can deal with these easily. The DRM format namespace is large enough to handle any additions we may need. BUG=NONE TEST=Ran graphics_Gbm, arc-cros-gralloc still builds Change-Id: Ie173eee6ac6926947a3b98c3ae809e38a0ea8014 Reviewed-on: https://chromium-review.googlesource.com/405790 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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drv_priv.h b/drv_priv.h
index 4f83db5..fc427bd 100644
--- a/drv_priv.h
+++ b/drv_priv.h
@@ -53,12 +53,12 @@ struct backend
int (*init)(struct driver *drv);
void (*close)(struct driver *drv);
int (*bo_create)(struct bo *bo, uint32_t width, uint32_t height,
- drv_format_t format, uint32_t flags);
+ uint32_t format, uint32_t flags);
void* (*bo_map)(struct bo *bo, struct map_info *data, size_t plane);
int (*bo_destroy)(struct bo *bo);
- drv_format_t (*resolve_format)(drv_format_t format);
+ uint32_t (*resolve_format)(uint32_t format);
struct format_supported {
- drv_format_t format;
+ uint32_t format;
uint64_t usage;
}
format_list[19];