Re: [Mesa-dev] [PATCH 3/3] egl: Implement EGL_EXT_device_{base, query, enumeration}

2017-05-04 Thread Eric Anholt
Adam Jackson writes: > On Wed, 2017-05-03 at 12:38 -0700, Eric Anholt wrote: >> > Adam Jackson writes: >> > +#ifdef HAVE_LIBDRM >> > +/* XXX kind of copypasta of drmCompareBusInfo */ >> > +static int >> > +dri2_bus_info_equal(drmDevicePtr a, drmDevicePtr b) >>

Re: [Mesa-dev] [PATCH 3/3] egl: Implement EGL_EXT_device_{base, query, enumeration}

2017-05-04 Thread Adam Jackson
On Wed, 2017-05-03 at 12:38 -0700, Eric Anholt wrote: > > Adam Jackson writes: > > +#ifdef HAVE_LIBDRM > > +/* XXX kind of copypasta of drmCompareBusInfo */ > > +static int > > +dri2_bus_info_equal(drmDevicePtr a, drmDevicePtr b) > > +{ > > +if (a == NULL || b == NULL) > > +

Re: [Mesa-dev] [PATCH 3/3] egl: Implement EGL_EXT_device_{base, query, enumeration}

2017-05-03 Thread Eric Anholt
Adam Jackson writes: > From: Jonny Lamb > > This is a rebase/squash/rewrite of a series Jonny had sent long ago. The > major change is implementing this in terms of the drmDevice API. Both > relevant piglits go from skip to pass on i965. Just some

[Mesa-dev] [PATCH 3/3] egl: Implement EGL_EXT_device_{base, query, enumeration}

2017-05-03 Thread Adam Jackson
From: Jonny Lamb This is a rebase/squash/rewrite of a series Jonny had sent long ago. The major change is implementing this in terms of the drmDevice API. Both relevant piglits go from skip to pass on i965. Signed-off-by: Adam Jackson ---