vulkan/wsi: use the drmGetDevice2() API
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 22 Oct 2018 16:43:03 +0000 (17:43 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 30 Oct 2018 16:35:50 +0000 (16:35 +0000)
commitc210d0c3b72ac426ee18b43f036e1a852a39950b
tree361ffb5a602614853590748063da5d41cf8b7995
parenta45b6fb45246f6b8e2b4a06977f199cc77452289
vulkan/wsi: use the drmGetDevice2() API

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/wsi: Use VK_EXT_pci_bus_info for DRM fd matching")
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/vulkan/wsi/wsi_common.c