loader: use drmGetDeviceNameFromFd2 from libdrm
authorGreg V <greg@unrelenting.technology>
Mon, 23 Oct 2017 20:20:40 +0000 (23:20 +0300)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 26 Oct 2017 14:11:35 +0000 (15:11 +0100)
commitdb8519a369261cdedda50852facc45616d4eba28
tree514aff3d1ed0d1ac42254c13fd74490b32afecbd
parent9f7ed60b3eae9d3d20805e79c9ab67674619e2cd
loader: use drmGetDeviceNameFromFd2 from libdrm

Reduce code duplication and automatically benefit from OS-specific
fixes to libdrm (e.g. in FreeBSD ports).

API was introduced with 2.4.74 and we already require 2.4.75 globally.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103283
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/loader/loader.c