summaryrefslogtreecommitdiffstats
path: root/src/loader/loader.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/loader/loader.c')
-rw-r--r--src/loader/loader.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/loader/loader.c b/src/loader/loader.c
index bb0c392cf7c..fdcd6eca80e 100644
--- a/src/loader/loader.c
+++ b/src/loader/loader.c
@@ -378,14 +378,11 @@ loader_get_device_name_for_fd(int fd)
}
char *
-loader_get_driver_for_fd(int fd, unsigned driver_types)
+loader_get_driver_for_fd(int fd)
{
int vendor_id, chip_id, i, j;
char *driver = NULL;
- if (!driver_types)
- driver_types = _LOADER_GALLIUM | _LOADER_DRI;
-
if (!loader_get_pci_id_for_fd(fd, &vendor_id, &chip_id)) {
#if HAVE_LIBDRM
@@ -410,9 +407,6 @@ loader_get_driver_for_fd(int fd, unsigned driver_types)
if (vendor_id != driver_map[i].vendor_id)
continue;
- if (!(driver_types & driver_map[i].driver_types))
- continue;
-
if (driver_map[i].predicate && !driver_map[i].predicate(fd))
continue;