summaryrefslogtreecommitdiff
path: root/libre/xorg-server-libre/autoconfig-nvidia-libre.patch
blob: 688b495e152704a3d22b79e986bd4257928c3663 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff -Nur xorg-server-1.11.99.902.orig/hw/xfree86/common/xf86pciBus.c xorg-server-1.11.99.902/hw/xfree86/common/xf86pciBus.c
--- xorg-server-1.11.99.902.orig/hw/xfree86/common/xf86pciBus.c	2012-02-10 10:10:37.583014924 +0000
+++ xorg-server-1.11.99.902/hw/xfree86/common/xf86pciBus.c	2012-02-10 11:16:07.148971317 +0000
@@ -1144,7 +1144,21 @@
         int idx = 0;
 
 #ifdef __linux__
-        driverList[idx++] = "nouveau";
+	    switch (dev->device_id)
+		{
+		/* NV1 - Diamond Edge 3D */
+		case 0x0008:
+		case 0x0009:
+		    driverList[idx++] = "vesa";
+		    break;
+               /* NV3 - Riva 128 */
+               case 0x0018:
+                   driverList[idx++] = "nv";
+                   break;
+		default:
+		    driverList[idx++] = "nouveau";
+		    break;
+		}
 #endif
         driverList[idx++] = "nv";
         break;