open-src/xserver/xorg/sparc-initvisuals.patch
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Mon, 14 Mar 2011 15:37:30 -0700
changeset 1088 1c99106ccbe0
parent 851 d428083dbbdd
child 1124 7bc7e624f965
permissions -rw-r--r--
6983602 Xorg 1.9 integration [PSARC/2011/008]

diff -Nurp -x '*~' -x '*.orig' mi/micmap.c mi/micmap.c
--- mi/micmap.c	2010-06-10 07:07:55.000000000 -0700
+++ mi/micmap.c	2010-09-03 16:45:35.359696561 -0700
@@ -494,6 +494,11 @@ maskShift (Pixel p)
  * the set which can be used with this version of cfb.
  */
 
+#if defined(__sparc__) || defined(__sparc)
+_X_EXPORT miInitVisualsProcPtr miInitVisualsProc = NULL;
+#endif /* __sparc__ */
+
+
 Bool
 miInitVisuals(VisualPtr *visualp, DepthPtr *depthp, int *nvisualp,
 		int *ndepthp, int *rootDepthp, VisualID *defaultVisp,
@@ -513,6 +518,13 @@ miInitVisuals(VisualPtr *visualp, DepthP
     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) 
     {