summaryrefslogtreecommitdiffstats
path: root/src/loader/pci_id_driver_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/loader/pci_id_driver_map.c')
-rw-r--r--src/loader/pci_id_driver_map.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/loader/pci_id_driver_map.c b/src/loader/pci_id_driver_map.c
index 3c4657fd014..8b2079e4354 100644
--- a/src/loader/pci_id_driver_map.c
+++ b/src/loader/pci_id_driver_map.c
@@ -25,6 +25,7 @@ int is_nouveau_vieux(int fd);
#ifdef HAVE_LIBDRM
+#include <stdlib.h>
#include <xf86drm.h>
#include <nouveau_drm.h>
@@ -45,7 +46,8 @@ int
is_nouveau_vieux(int fd)
{
int chipset = nouveau_chipset(fd);
- return chipset > 0 && chipset < 0x30;
+ return (chipset > 0 && chipset < 0x30) ||
+ (chipset < 0x40 && getenv("NOUVEAU_VIEUX") != NULL);
}
#else