6844102 missing miInitVisualsProc in Xorg 1.6 nv_116
authorCharmaine Lee <Charmaine.Lee@Sun.COM>
Thu, 21 May 2009 16:41:26 -0700
changeset 713 2fd471ebe605
parent 712 771b9ca1c8f6
child 714 40970550f06a
6844102 missing miInitVisualsProc in Xorg 1.6
open-src/xserver/xorg/patch-list
open-src/xserver/xorg/sparc-initvisuals.patch
--- a/open-src/xserver/xorg/patch-list	Thu May 21 15:12:11 2009 -0700
+++ b/open-src/xserver/xorg/patch-list	Thu May 21 16:41:26 2009 -0700
@@ -37,4 +37,4 @@
 6721634.patch
 xpstubs.patch
 dixmods-deps.patch
-
+sparc-initvisuals.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/open-src/xserver/xorg/sparc-initvisuals.patch	Thu May 21 16:41:26 2009 -0700
@@ -0,0 +1,29 @@
+diff -ur mi/micmap.c.orig mi/micmap.c
+--- mi/micmap.c.orig	Thu May 21 21:55:01 2009
++++ mi/micmap.c	Thu May 21 21:58:03 2009
+@@ -497,6 +497,11 @@
+  * the set which can be used with this version of cfb.
+  */
+ 
++#if defined(__sparc__) || defined(__sparc)
++miInitVisualsProcPtr miInitVisualsProc = NULL;
++#endif /* __sparc__ */
++
++
+ _X_EXPORT Bool
+ miInitVisuals(VisualPtr *visualp, DepthPtr *depthp, int *nvisualp,
+ 		int *ndepthp, int *rootDepthp, VisualID *defaultVisp,
+@@ -516,6 +521,13 @@
+     int		*preferredCVCs, *prefp;
+     int		first_depth;
+ 
++#if defined(__sparc__) || defined(__sparc)
++    if (miInitVisualsProc) {
++       return (miInitVisualsProc(visualp, depthp, nvisualp, ndepthp,
++               rootDepthp, defaultVisp, sizes, bitsPerRGB, preferredVis));
++    }
++#endif /* __sparc__ */
++
+     /* none specified, we'll guess from pixmap formats */
+     if (!miVisuals) 
+     {