egl/sl: use drmDevice API to enumerate available devices
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 19 Feb 2019 14:08:07 +0000 (14:08 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 28 Feb 2019 12:02:38 +0000 (12:02 +0000)
commit218c7b5acaa053482d368afbce4612232731b3a4
treeefccc2f4bf55e3d36a0f0e62ec355829cf45e174
parent893421f3159ac6d82bb56b3feccf79dd71eb250e
egl/sl: use drmDevice API to enumerate available devices

This provides for a more comprehensive iteration and slightly more
straight-forward codebase.

v2:
 - s/dpy/disp/
 - keep original 64 devices (Eric)

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
src/egl/drivers/dri2/platform_surfaceless.c