OSDN Git Service

minigbm: vgem: allow driver creation without planes resources
authorGurchetan Singh <gurchetansingh@chromium.org>
Fri, 2 Dec 2016 19:02:47 +0000 (11:02 -0800)
committerchrome-bot <chrome-bot@chromium.org>
Wed, 7 Dec 2016 03:55:10 +0000 (19:55 -0800)
With CL:405019, when drmModeGetPlaneResources failed, creation of
the driver failed. This was an issue for our vgem backend, which
we use to run ARC++ with QEMU. Let's not add KMS flags for vgem
since we know that doesn't work.

BUG=b:31942635
TEST=arc-cos-gralloc with vgem works

CQ-DEPEND=CL:415442

Change-Id: I33a812ab9a24e2e35a47d28f720c4cc2e83eb8f0
Reviewed-on: https://chromium-review.googlesource.com/416290
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
vgem.c

diff --git a/vgem.c b/vgem.c
index 21d8f22..ae845d3 100644 (file)
--- a/vgem.c
+++ b/vgem.c
@@ -18,7 +18,7 @@ static struct supported_combination combos[2] = {
 static int vgem_init(struct driver *drv)
 {
        drv_insert_combinations(drv, combos, ARRAY_SIZE(combos));
-       return drv_add_kms_flags(drv);
+       return 0;
 }
 
 static uint32_t vgem_resolve_format(uint32_t format)