libdrm: drmGetDeviceNameFromFd: Fix FreeBSD variant
Fix the FreeBSD variant by using a regex that get the card/render number whenether it's a node in /dev/drm or /dev/dri. We then return the full /dev/dri/ version.
Fix: #41 (closed) Fixes: 6818a50b Signed-off-by: Emmanuel Vadot manu@FreeBSD.org
Edited by Emmanuel Vadot