[PATCH libdrm 5/5] xf86drm: implement an OpenBSD specific drmGetDevice

2016-11-30 Thread Emil Velikov
On 30 November 2016 at 00:00, Jonathan Gray wrote: > On Tue, Nov 29, 2016 at 08:03:58PM +, Emil Velikov wrote: >> On 26 November 2016 at 00:40, Jonathan Gray wrote: >> > This avoids walking all of /dev and directly maps the fd to a path to a >> > primary node. >> > >> I realise that the code

[PATCH libdrm 5/5] xf86drm: implement an OpenBSD specific drmGetDevice

2016-11-30 Thread Jonathan Gray
On Tue, Nov 29, 2016 at 08:03:58PM +, Emil Velikov wrote: > On 26 November 2016 at 00:40, Jonathan Gray wrote: > > This avoids walking all of /dev and directly maps the fd to a path to a > > primary node. > > > I realise that the code is pretty ugly/bad/etc, but I would stay way > from similar

[PATCH libdrm 5/5] xf86drm: implement an OpenBSD specific drmGetDevice

2016-11-29 Thread Emil Velikov
On 26 November 2016 at 00:40, Jonathan Gray wrote: > This avoids walking all of /dev and directly maps the fd to a path to a > primary node. > I realise that the code is pretty ugly/bad/etc, but I would stay way from similar optimisations. As-is it will just work as you guys get support for render

[PATCH libdrm 5/5] xf86drm: implement an OpenBSD specific drmGetDevice

2016-11-26 Thread Jonathan Gray
This avoids walking all of /dev and directly maps the fd to a path to a primary node. Signed-off-by: Jonathan Gray --- xf86drm.c | 41 + 1 file changed, 41 insertions(+) diff --git a/xf86drm.c b/xf86drm.c index 2a60b2e..a4b2506 100644 --- a/xf86drm.c +++