Skip to content
Commit 1c8d2b73 authored by Emmanuel Vadot's avatar Emmanuel Vadot Committed by Emmanuel Vadot
Browse files

libdrm: drmNodeIsDRM: Add FreeBSD variant



FreeBSD devfs have on the gly generated major minor so we cannot use them
to test if the device is a drm node.
Instead get the devfs node name and test if it is in a subdirectory "drm/"
or "dri/".
Historycally DRM device on FreeBSD are created in /dev/drm/ and link are
present in /dev/dri/ for compatibility reason.

Signed-off-by: default avatarEmmanuel Vadot <manu@FreeBSD.org>
Reviewed-by: default avatarEric Engestrom <eric@engestrom.ch>
Reviewed-by: default avatarEmil Velikov <emil.velikov@collabora.com>
parent 1f8ada80
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment