diff options
| author | Gurchetan Singh <gurchetansingh@chromium.org> | 2016-11-21 10:46:38 -0800 |
|---|---|---|
| committer | chrome-bot <chrome-bot@chromium.org> | 2016-11-28 23:59:30 -0800 |
| commit | f3b22da397567eaa9d7cd59b50f43eea92b9be61 (patch) | |
| tree | f335dddd3b8528808796ef559e54955a04b1bf51 /amdgpu.c | |
| parent | c746dca555369056a6a74924bba576e904f0b38d (diff) | |
| download | platform_external_minigbm-f3b22da397567eaa9d7cd59b50f43eea92b9be61.tar.gz platform_external_minigbm-f3b22da397567eaa9d7cd59b50f43eea92b9be61.tar.bz2 platform_external_minigbm-f3b22da397567eaa9d7cd59b50f43eea92b9be61.zip | |
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 'amdgpu.c')
| -rw-r--r-- | amdgpu.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -346,12 +346,12 @@ const struct backend backend_amdgpu = { .bo_destroy = drv_gem_bo_destroy, .format_list = { /* Linear support */ - {DRV_FORMAT_XRGB8888, DRV_BO_USE_SCANOUT | DRV_BO_USE_LINEAR}, - {DRV_FORMAT_ARGB8888, DRV_BO_USE_SCANOUT | DRV_BO_USE_CURSOR | DRV_BO_USE_LINEAR}, + {DRM_FORMAT_XRGB8888, DRV_BO_USE_SCANOUT | DRV_BO_USE_LINEAR}, + {DRM_FORMAT_ARGB8888, DRV_BO_USE_SCANOUT | DRV_BO_USE_CURSOR | DRV_BO_USE_LINEAR}, /* Blocklinear support */ - {DRV_FORMAT_XRGB8888, DRV_BO_USE_SCANOUT | DRV_BO_USE_RENDERING}, - {DRV_FORMAT_ARGB8888, DRV_BO_USE_SCANOUT | DRV_BO_USE_RENDERING}, - {DRV_FORMAT_XBGR8888, DRV_BO_USE_SCANOUT | DRV_BO_USE_RENDERING}, + {DRM_FORMAT_XRGB8888, DRV_BO_USE_SCANOUT | DRV_BO_USE_RENDERING}, + {DRM_FORMAT_ARGB8888, DRV_BO_USE_SCANOUT | DRV_BO_USE_RENDERING}, + {DRM_FORMAT_XBGR8888, DRV_BO_USE_SCANOUT | DRV_BO_USE_RENDERING}, } }; |
