libdrm: drmGetMinorType: Add FreeBSD version
authorEmmanuel Vadot <manu@FreeBSD.Org>
Tue, 21 Jan 2020 16:47:09 +0000 (17:47 +0100)
committerEmmanuel Vadot <manu@FreeBSD.org>
Tue, 21 Apr 2020 17:25:36 +0000 (19:25 +0200)
commitc55a1e564cf6c9d42ce250af11101b7fc7e88a4e
tree2a806d60851c544d6b42cf26c477e2a8cc1c66c0
parent4fbcc9a6a7de37d710c7a2167f762eaa4aa5b0b4
libdrm: drmGetMinorType: Add FreeBSD version

Resolve the minor type based on the device node path.
The minor type is either in /dev/drm/X where X is the type or
in a Linux-compatible device node in /dev/dri/
This means we need the major number on FreeBSD so add it to the function
arguments.

Signed-off-by: Emmanuel Vadot <manu@FreeBSD.org>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
xf86drm.c