Commit 5f2f289b authored by Haihao Xiang's avatar Haihao Xiang

msdk: verify the driver name

We need to make sure the Intel graphics card is used in a dual GPU
system.

Fixes #895
parent e8fd000a
Pipeline #18655 passed with stages
in 34 minutes and 53 seconds
......@@ -94,7 +94,8 @@ get_device_id (void)
dev = (GUdevDevice *) l->data;
parent = g_udev_device_get_parent (dev);
if (strcmp (g_udev_device_get_subsystem (parent), "pci") != 0) {
if (strcmp (g_udev_device_get_subsystem (parent), "pci") != 0 ||
strcmp (g_udev_device_get_driver (parent), "i915") != 0) {
g_object_unref (parent);
continue;
}
......
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