Re: [Mesa-dev] [PATCH] vulkan/wsi: use the drmGetDevice2() API

2018-10-24 Thread Emil Velikov
On Mon, 22 Oct 2018 at 18:13, Jason Ekstrand wrote: > > On Mon, Oct 22, 2018 at 12:10 PM Emil Velikov > wrote: >> >> From: Emil Velikov >> >> On older kernels, the drmGetDevice() call will wake up all the GPUs >> on the system, while fetching the PCI revision. >> >> Use the 2 version of the API

Re: [Mesa-dev] [PATCH] vulkan/wsi: use the drmGetDevice2() API

2018-10-22 Thread Jason Ekstrand
On Mon, Oct 22, 2018 at 12:10 PM Emil Velikov wrote: > From: Emil Velikov > > On older kernels, the drmGetDevice() call will wake up all the GPUs > on the system, while fetching the PCI revision. > > Use the 2 version of the API and pass flags == 0, so we don't fetch the > device PCI revision, s

[Mesa-dev] [PATCH] vulkan/wsi: use the drmGetDevice2() API

2018-10-22 Thread Emil Velikov
From: Emil Velikov On older kernels, the drmGetDevice() call will wake up all the GPUs on the system, while fetching the PCI revision. Use the 2 version of the API and pass flags == 0, so we don't fetch the device PCI revision, since we don't need that information. Fixes: baa38c144f6 ("vulkan/w