Re: [PATCH libdrm] libdrm: Fix drmNodeIsDRM() on DragonFly

2018-12-19 Thread Eric Engestrom
On Tuesday, 2018-12-18 20:11:27 +0100, Francois Tigeot wrote: > On Mon, Dec 17, 2018 at 06:09:47PM +, Emil Velikov wrote: > > On Tue, 11 Dec 2018 at 22:15, François Tigeot wrote: > > > > > > * There is no way to check if a device name is really a drm device > > > by looking it up in a virtua

Re: [PATCH libdrm] libdrm: Fix drmNodeIsDRM() on DragonFly

2018-12-18 Thread Francois Tigeot
On Mon, Dec 17, 2018 at 06:09:47PM +, Emil Velikov wrote: > On Tue, 11 Dec 2018 at 22:15, François Tigeot wrote: > > > > * There is no way to check if a device name is really a drm device > > by looking it up in a virtual filesystem like on Linux > > > > * The major device number is also dyn

Re: [PATCH libdrm] libdrm: Fix drmNodeIsDRM() on DragonFly

2018-12-17 Thread Emil Velikov
On Tue, 11 Dec 2018 at 22:15, François Tigeot wrote: > > * There is no way to check if a device name is really a drm device > by looking it up in a virtual filesystem like on Linux > > * The major device number is also dynamically allocated from a pool, > comparing it to a constant makes no se

[PATCH libdrm] libdrm: Fix drmNodeIsDRM() on DragonFly

2018-12-11 Thread François Tigeot
* There is no way to check if a device name is really a drm device by looking it up in a virtual filesystem like on Linux * The major device number is also dynamically allocated from a pool, comparing it to a constant makes no sense * In the absence of better ideas, just assume the device nam