OSDN Git Service

minigbm: cros_gralloc: fix rendernode query
authorGurchetan Singh <gurchetansingh@chromium.org>
Sat, 3 Dec 2016 02:15:35 +0000 (18:15 -0800)
committerchrome-bot <chrome-bot@chromium.org>
Tue, 13 Dec 2016 02:34:17 +0000 (18:34 -0800)
commit0d210f92cc58c5a183896d06bf2fd4548f511b65
tree386fe0769d0a96b713e11fc71ee595923af49767
parentf028a6fc0dcfe5df2d0e09aba2ccf90c1ee70061
minigbm: cros_gralloc: fix rendernode query

If the vgem driver and a hardware driver are both present on
a machine, and if the vgem driver corresponds to a lower
number rendernode, we'll end up picking the vgem driver. This is
not the desired behavior, so let's fix it.

BUG=chromium:616275
TEST=mediatek driver loads
CQ-DEPEND=CL:416396

Change-Id: Ib2647f4dbaf3c45fab97bbbcbb94e09c1daa6d5d
Reviewed-on: https://chromium-review.googlesource.com/416397
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
cros_gralloc/cros_gralloc_helpers.cc