sparc-initvisuals.patch revision 1124
diff --git a/mi/micmap.c b/mi/micmap.c
index 41e0300..266d442 100644
--- a/mi/micmap.c
+++ b/mi/micmap.c
@@ -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, DepthPtr *depthp, int *nvisualp,
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)
{