CHROMIUM: xf86drm: continue after drmProcessPlatformDevice failure
On the ChromeOS board cave, readdir() processes the directory in
the following order:
-NAME- -TYPE-
. n/a
.. n/a
vgem n/a
card1 DRM_BUS_PLATFORM
renderD129 DRM_BUS_PLATFORM
card0 DRM_BUS_PCI
renderD128 DRM_BUS_PCI
controlD64 DRM_BUS_PCI
In drmGetDevices2, after drmProcessPlatformDevice fails for
/dev/dri/card1, we don't process the remaining directory entries.
As such, Vulkan fails to initialize. To fix this, continue
if drmProcessPlatformDevice fails.
BUG=chromium:734282
TEST=All but one Vulkan test passes in graphics_dEQP.bvt
Change-Id: I3a4e13c41197b37a5e3d8e455bda22f39af1e6d9
Reviewed-on: https://chromium-review.googlesource.com/576873
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Ilja H. Friedel <ihf@chromium.org>
Reviewed-by: Chad Versace <chadversary@google.com>
1 file changed