Re: [Nouveau] [libdrm 06/13] nouveau: introduce object to represent the kernel client

2015-11-26 Thread Emil Velikov
On 26 November 2015 at 07:14, Ben Skeggs wrote: > --- a/nouveau/nouveau.c > +++ b/nouveau/nouveau.c > +int > +nouveau_drm_new(int fd, struct nouveau_drm **pdrm) > +{ > + struct nouveau_drm *drm; > + drmVersionPtr ver; > + > +#ifdef DEBUG > + debug_init(getenv("NOUVEAU_LIBDRM_DE

[Nouveau] [libdrm 06/13] nouveau: introduce object to represent the kernel client

2015-11-25 Thread Ben Skeggs
From: Ben Skeggs Because NVIF intentionally lacks some of the paths necessary to be compatible with various mistakes we've made over the years, libdrm needs to know whether a client has been updated and that it's safe to make use of the new kernel interfaces. Clients still using nouveau_device_o