Re: use DRM_IOCTL_GET_PCIINFO in libdrm

2016-11-23 Thread Mark Kettenis
> Date: Wed, 23 Nov 2016 11:50:49 +1100 > From: Jonathan Gray > > On Tue, Nov 22, 2016 at 09:29:03PM +0100, Mark Kettenis wrote: > > > Date: Sat, 19 Nov 2016 19:31:18 +1100 > > > From: Jonathan Gray > > > > > > Support libdrm functions required for Mesa versions

Re: use DRM_IOCTL_GET_PCIINFO in libdrm

2016-11-22 Thread Jonathan Gray
On Tue, Nov 22, 2016 at 09:29:03PM +0100, Mark Kettenis wrote: > > Date: Sat, 19 Nov 2016 19:31:18 +1100 > > From: Jonathan Gray > > > > Support libdrm functions required for Mesa versions >= 13. > > > > On linux this information is pulled out of a psuedo filesystem, here the >

Re: use DRM_IOCTL_GET_PCIINFO in libdrm

2016-11-22 Thread Mark Kettenis
> Date: Sat, 19 Nov 2016 19:31:18 +1100 > From: Jonathan Gray > > Support libdrm functions required for Mesa versions >= 13. > > On linux this information is pulled out of a psuedo filesystem, here the > new DRM_IOCTL_GET_PCIINFO ioctl is used for the same. > > Only primary drm

use DRM_IOCTL_GET_PCIINFO in libdrm

2016-11-19 Thread Jonathan Gray
Support libdrm functions required for Mesa versions >= 13. On linux this information is pulled out of a psuedo filesystem, here the new DRM_IOCTL_GET_PCIINFO ioctl is used for the same. Only primary drm nodes are handled, render and control nodes which we don't have aren't. This also only