Try to open the /dev/dri/cardX device once, then only if it fails check the
authorEric Anholt <anholt@freebsd.org>
Thu, 8 Aug 2002 21:23:46 +0000 (21:23 +0000)
committerEric Anholt <anholt@freebsd.org>
Thu, 8 Aug 2002 21:23:46 +0000 (21:23 +0000)
commitd2f2b42f1d206fd248ada48ce2c498e31351ab33
tree318d984dcd9a1530e15dcccbbb39753c5fc635ca
parent977b420d5dc66db3d4335132861a1eff3747b49a
Try to open the /dev/dri/cardX device once, then only if it fails check the
    device number and recreate it if necessary. Fixes xf86drm.c to allow
    linux binaries to be used for emulation on FreeBSD.
libdrm/xf86drm.c