ecore_drm2: Ensure device we find can mode set
authorDerek Foreman <derekf@osg.samsung.com>
Fri, 21 Jul 2017 21:40:17 +0000 (16:40 -0500)
committerDerek Foreman <derekf@osg.samsung.com>
Fri, 21 Jul 2017 21:46:00 +0000 (16:46 -0500)
commit414d406b3b442216543cdaef112787696ae09898
tree23643ba6614fede0de4c932a1e52b434dda2433e
parent57e826db69bc02ab6b779a5d65b278f0288bf718
ecore_drm2: Ensure device we find can mode set

Some systems have dri devices that can't mode set, and if they're first in
the directory they'll get picked by our code and things fall apart later.

So, open the potential device and ensure it has basic functionality before
selecting it.

This is a little inefficient as it gets the device via elput twice before
it can be used - this will be addressed later as the changes are a little
more invasive to optimize.
src/lib/ecore_drm2/ecore_drm2_device.c