loader_get_pci_id_for_fd() and loader_get_device_name_for_fd() now attempt all available strategies to identify the hardware, instead of conditionally compiling in a single test. The existing libudev and DRM approaches have been retained, and another simple alternative of looking up the answer in the /sys filesystem (available on Linux) is added.
v2: Break the patch into two independent commits. Disable the sysfs test by default (unless overridden at configure time). v3: Include /dev prefix in sysfs_get_device_name_for_fd(). Remove the --disable-libudev option. Conding style fixes. Gary Wong (2): loader: allow attempting more than one method of PCI identification. loader: add optional /sys filesystem method for PCI identification. configure.ac | 36 +++++++---- src/loader/loader.c | 172 +++++++++++++++++++++++++++++++++++++++++++++++----- 2 files changed, 181 insertions(+), 27 deletions(-) -- 1.9.2 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev