anv: do not open random render node(s)
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 1 Dec 2016 21:21:10 +0000 (21:21 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 15 Mar 2017 11:38:05 +0000 (11:38 +0000)
commitb1fb6e8d8c059598d08a64bbb90395ad9b14975d
tree7c5bd007a0550dc3466949c1972279e9324a9663
parent743315f2696d77bc731baefdc9433994d3a4cfb3
anv: do not open random render node(s)

drmGetDevices2() provides us with enough flexibility to build heuristics
upon. Opening a random node on the other hand will wake up the device,
regardless if it's the one we're interested or not.

v2: Rebase, explicitly require/check for libdrm
v3: Return VK_ERROR_INCOMPATIBLE_DRIVER for no devices (Ilia)
v4: Rebase

Cc: Jason Ekstrand <jason.ekstrand@intel.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> (v1)
Tested-by: Mike Lothian <mike@fireburn.co.uk>
configure.ac
src/intel/vulkan/anv_device.c