open-src/driver/xf86-video-nv/7163065.patch
author Niveditha Rau <Niveditha.Rau@Oracle.COM>
Fri, 04 May 2012 14:47:54 -0700
changeset 1282 d31e0afd0923
permissions -rw-r--r--
7163065 Xorg 1.12 s11u1_14 crash on startup

--- configure.ac	Thu May  3 12:58:53 2012
+++ configure.ac	Thu May  3 13:00:23 2012
@@ -61,6 +61,10 @@
 XORG_DRIVER_CHECK_EXT(XV, videoproto)
 XORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto)
 
+PKG_CHECK_EXISTS([xorg-server >= 1.12.0],
+                 [AC_DEFINE([HAVE_XORG_SERVER_1_12_0], 1,
+                 [Has version 1.12.0 or greater of the Xserver])])
+
 # Obtain compiler/linker options for the driver dependencies
 PKG_CHECK_MODULES(XORG, [xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES])
 PKG_CHECK_MODULES(XEXT, [xextproto >= 7.0.99.1],
--- src/nv_driver.c	Mon Jul 19 15:53:18 2010
+++ src/nv_driver.c	Thu May  3 13:01:56 2012
@@ -1543,7 +1543,11 @@
 	xf86FreeInt10(pNv->pInt);
 	return FALSE;
     }
-    
+
+#ifdef HAVE_XORG_SERVER_1_12_0
+    vgaHWSetStdFuncs(VGAHWPTR(pScrn));
+#endif
+
     /* We use a programmable clock */
     pScrn->progClock = TRUE;