aboutsummaryrefslogtreecommitdiffstats
path: root/main/xorg-server/autoconfig-nvidia.patch
blob: d15d36dafb033328cd609b27b7a38004bad9fb19 (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
27
--- a/hw/xfree86/common/xf86pciBus.c
+++ b/hw/xfree86/common/xf86pciBus.c
@@ -1144,7 +1144,23 @@
         int idx = 0;
 
 #if defined(__linux__) || defined(__NetBSD__)
-        driverList[idx++] = "nouveau";
+	    switch (dev->device_id)
+		{
+		/* NV1 */
+		case 0x0008:
+		case 0x0009:
+		    driverList[idx++] = "vesa";
+		    break;
+		/* NV3 */
+		case 0x0018:
+		case 0x0019:
+		    driverList[idx++] = "nouveau";
+		    break;
+		default:
+		    driverList[idx++] = "nouveau";
+		    driverList[idx++] = "nvidia";
+		    break;
+		}
 #endif
         driverList[idx++] = "nv";
         break;