[PATCH] xfree86: add nouveau as the first automatic driver for NVIDIA hardware

Anssi Hannula anssi.hannula at iki.fi
Tue Apr 19 19:01:24 PDT 2011


Add nouveau as the first driver for NVIDIA hardware when driver
autoconfiguration is done, as it is more capable than nv.

nv is also kept in the list as it supports more platforms and because
some old cards are not supported by nouveau.

Signed-off-by: Anssi Hannula <anssi.hannula at iki.fi>
---
 hw/xfree86/common/xf86pciBus.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/hw/xfree86/common/xf86pciBus.c b/hw/xfree86/common/xf86pciBus.c
index 447b192..fd6aae5 100644
--- a/hw/xfree86/common/xf86pciBus.c
+++ b/hw/xfree86/common/xf86pciBus.c
@@ -1123,7 +1123,8 @@ videoPtrToDriverList(struct pci_device *dev,
 	    break;
 	case 0x102b:		    driverList[0] = "mga";	break;
 	case 0x10c8:		    driverList[0] = "neomagic"; break;
-	case 0x10de: case 0x12d2:   driverList[0] = "nv";	break;
+	case 0x10de: case 0x12d2:   driverList[0] = "nouveau";
+				    driverList[1] = "nv";       break;
 	case 0x1106:		    driverList[0] = "openchrome"; break;
         case 0x1b36:		    driverList[0] = "qxl"; break;
 	case 0x1163:		    driverList[0] = "rendition"; break;
-- 
1.7.3



More information about the xorg-devel mailing list