2009-08-04 21:52:16 +02:00
|
|
|
Index: hw/xfree86/common/xf86AutoConfig.c
|
2012-04-20 11:32:05 +02:00
|
|
|
===================================================================
|
|
|
|
--- hw/xfree86/common/xf86AutoConfig.c.orig
|
2009-08-04 21:52:16 +02:00
|
|
|
+++ hw/xfree86/common/xf86AutoConfig.c
|
2012-12-07 11:51:17 +01:00
|
|
|
@@ -267,26 +267,26 @@ listPossibleVideoDrivers(char *matches[]
|
|
|
|
if (i < (nmatches - 1))
|
|
|
|
i = xf86PciMatchDriver(matches, nmatches);
|
|
|
|
#endif
|
|
|
|
+
|
|
|
|
+#if defined(__linux__)
|
|
|
|
+ matches[i++] = xnfstrdup("modesetting");
|
|
|
|
+#endif
|
2009-06-05 23:08:21 +02:00
|
|
|
/* Fallback to platform default hardware */
|
|
|
|
if (i < (nmatches - 1)) {
|
|
|
|
#if defined(__i386__) || defined(__amd64__) || defined(__hurd__)
|
2012-04-20 11:32:05 +02:00
|
|
|
- matches[i++] = xnfstrdup("vesa");
|
|
|
|
+ matches[i++] = xnfstrdup("fbdev");
|
2009-06-05 23:08:21 +02:00
|
|
|
#elif defined(__sparc__) && !defined(sun)
|
2012-04-20 11:32:05 +02:00
|
|
|
matches[i++] = xnfstrdup("sunffb");
|
2009-06-05 23:08:21 +02:00
|
|
|
#endif
|
2012-12-07 11:51:17 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
-#if defined(__linux__)
|
|
|
|
- matches[i++] = xnfstrdup("modesetting");
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
#if !defined(sun)
|
|
|
|
/* Fallback to platform default frame buffer driver */
|
|
|
|
if (i < (nmatches - 1)) {
|
2009-06-05 23:08:21 +02:00
|
|
|
#if !defined(__linux__) && defined(__sparc__)
|
2012-04-20 11:32:05 +02:00
|
|
|
matches[i++] = xnfstrdup("wsfb");
|
2009-06-05 23:08:21 +02:00
|
|
|
#else
|
2012-04-20 11:32:05 +02:00
|
|
|
- matches[i++] = xnfstrdup("fbdev");
|
|
|
|
+ matches[i++] = xnfstrdup("vesa");
|
2009-06-05 23:08:21 +02:00
|
|
|
#endif
|
|
|
|
}
|
2012-04-20 11:32:05 +02:00
|
|
|
#endif /* !sun */
|