loader: add a libdrm case for loader_get_device_name_for_fd
authorJonathan Gray <jsg@jsg.id.au>
Mon, 21 Dec 2015 05:39:55 +0000 (16:39 +1100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 21 Apr 2016 13:41:41 +0000 (14:41 +0100)
commit28e3ae344be1c49f50a521792966e0d98510075c
tree52eacabc35867214da8b66a4866e027cdf736e5c
parent5d09394fb119ba68e735750eaf4d8590b8a6fed6
loader: add a libdrm case for loader_get_device_name_for_fd

Use dev_node_from_fd() with HAVE_LIBDRM to provide an implmentation
of loader_get_device_name_for_fd() for non-linux systems that
use libdrm but don't have udev or sysfs.

Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/loader/loader.c