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). Gary Wong (2): loader: allow attempting more than one method of PCI identification. loader: add optional /sys filesystem method for PCI identification. configure.ac | 51 ++++++++++++---- src/loader/loader.c | 173 +++++++++++++++++++++++++++++++++++++++++++++++----- 2 files changed, 195 insertions(+), 29 deletions(-) -- 1.9.2 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev