summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann <soren.sandmann@gmail.com>2014-05-30 16:50:35 -0400
committerKeith Packard <keithp@keithp.com>2014-06-02 11:26:35 -0700
commit63c48de63becdee680e90cb2363984c2f8f77fd1 (patch)
tree1a4114b085e05b0fb416c0d7cbaab95d2f6ee05f
parentab47ec9636b21a7f542d2e8612834915e7c8cc64 (diff)
xfree86: Add "modesetting" to list of fallback drivers
To make X -configure work properly, the output of fixup_video_driver_list() should be in order of preference. Otherwise, the config file may use the incorrect driver for some devices. In particular, the drivers that work for all (or many) devices need to be last in the list. Since the modesetting driver works for many devices, it needs to be considered a fallback driver. Signed-off-by: Søren Sandmann <ssp@redhat.com> Acked-by: Daniel Stone <daniels@collabora.com> Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--hw/xfree86/common/xf86Config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c
index 2adef44c3..481674de2 100644
--- a/hw/xfree86/common/xf86Config.c
+++ b/hw/xfree86/common/xf86Config.c
@@ -519,7 +519,7 @@ xf86InputDriverlistFromConfig(void)
static void
fixup_video_driver_list(const char **drivers)
{
- static const char *fallback[4] = { "fbdev", "vesa", "wsfb", NULL };
+ static const char *fallback[5] = { "modesetting", "fbdev", "vesa", "wsfb", NULL };
const char **end, **drv;
const char *x;
int i;