[Mesa-dev] [PATCH 0/2] loader: allow alternative methods for PCI identification.

Gary Wong gtw at gnu.org
Tue May 20 18:38:50 PDT 2014


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


More information about the mesa-dev mailing list