minigbm: vgem: add more supported formats

The VM-tests in the Android PFQ require this now.

BUG=chromium:616275
TEST=-cheets_CTSHelper.smoke doesn't crash in a VM

Change-Id: Icd062210852810036ab349af10b350507e1b560b
Reviewed-on: https://chromium-review.googlesource.com/467626
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
This commit is contained in:
Gurchetan Singh 2017-04-04 08:51:23 -07:00 committed by chrome-bot
parent f1afe32a3d
commit 2de66f78ea

6
vgem.c
View file

@ -11,8 +11,10 @@
#define MESA_LLVMPIPE_TILE_ORDER 6
#define MESA_LLVMPIPE_TILE_SIZE (1 << MESA_LLVMPIPE_TILE_ORDER)
static const uint32_t supported_formats[] = { DRM_FORMAT_ARGB8888, DRM_FORMAT_RGB565,
DRM_FORMAT_XRGB8888, DRM_FORMAT_YVU420_ANDROID };
static const uint32_t supported_formats[] = { DRM_FORMAT_ABGR8888, DRM_FORMAT_ARGB8888,
DRM_FORMAT_RGB565, DRM_FORMAT_XBGR8888,
DRM_FORMAT_XRGB8888, DRM_FORMAT_YVU420,
DRM_FORMAT_YVU420_ANDROID };
static int vgem_init(struct driver *drv)
{