[PATCH] xfree86: add modesetting driver to fallback list on Linux

Dave Airlie airlied at gmail.com
Sun May 6 09:36:45 PDT 2012


From: Dave Airlie <airlied at redhat.com>

Add the modesetting driver to the fallback list on Linux, after vesa
before fbdev.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 hw/xfree86/common/xf86AutoConfig.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/hw/xfree86/common/xf86AutoConfig.c b/hw/xfree86/common/xf86AutoConfig.c
index 43c746b..d0eb0af 100644
--- a/hw/xfree86/common/xf86AutoConfig.c
+++ b/hw/xfree86/common/xf86AutoConfig.c
@@ -270,6 +270,10 @@ listPossibleVideoDrivers(char *matches[], int nmatches)
 #endif
     }
 
+#if defined(__linux__)
+    matches[i++] = xnfstrdup("modesetting");
+#endif
+
 #if !defined(sun)
     /* Fallback to platform default frame buffer driver */
     if (i < (nmatches - 1)) {
-- 
1.7.7.6



More information about the xorg-devel mailing list