loader: use drmGetDevice[s]2 API
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 1 Dec 2016 19:51:03 +0000 (19:51 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 15 Mar 2017 11:37:55 +0000 (11:37 +0000)
commita50c4eb2a0fd42a3da0eea560876cb43afdb81f2
treef1b403bc7774b4541f8acdf79dbb746c7835236d
parent2c72e78ff54fda078f423384a5d5269e4c59ed4f
loader: use drmGetDevice[s]2 API

By this allows us to fetch the device list/info w/o the revision field.
At the moment retrieving the latter wakes up the device.

Note: kernel patch to resolve that should be in 4.10.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Tested-by: Mike Lothian <mike@fireburn.co.uk>
src/loader/loader.c