Commit 6b255d80 authored by David Redondo's avatar David Redondo 🏎
Browse files

gpu: Only scan pci devices

Massively improves the startup performance.


(cherry picked from commit 65c605e8)
parent 782dbe81
......@@ -34,6 +34,7 @@ void LinuxBackend::start()
auto enumerate = udev_enumerate_new(m_udev);
udev_enumerate_add_match_property(enumerate, "ID_PCI_CLASS_FROM_DATABASE", "Display controller");
udev_enumerate_add_match_subsystem(enumerate, "pci");
udev_enumerate_scan_devices(enumerate);
int gpuCounter = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment