open-src/xserver/xorg/sparc-initvisuals.patch
changeset 1124 7bc7e624f965
parent 1088 1c99106ccbe0
child 1276 52f85727ce94
equal deleted inserted replaced
1123:4678f8c1d429 1124:7bc7e624f965
     1 diff -Nurp -x '*~' -x '*.orig' mi/micmap.c mi/micmap.c
     1 diff --git a/mi/micmap.c b/mi/micmap.c
     2 --- mi/micmap.c	2010-06-10 07:07:55.000000000 -0700
     2 index 41e0300..266d442 100644
     3 +++ mi/micmap.c	2010-09-03 16:45:35.359696561 -0700
     3 --- a/mi/micmap.c
       
     4 +++ b/mi/micmap.c
     4 @@ -494,6 +494,11 @@ maskShift (Pixel p)
     5 @@ -494,6 +494,11 @@ maskShift (Pixel p)
     5   * the set which can be used with this version of cfb.
     6   * the set which can be used with this version of cfb.
     6   */
     7   */
     7  
     8  
     8 +#if defined(__sparc__) || defined(__sparc)
     9 +#if defined(__sparc__) || defined(__sparc)
    11 +
    12 +
    12 +
    13 +
    13  Bool
    14  Bool
    14  miInitVisuals(VisualPtr *visualp, DepthPtr *depthp, int *nvisualp,
    15  miInitVisuals(VisualPtr *visualp, DepthPtr *depthp, int *nvisualp,
    15  		int *ndepthp, int *rootDepthp, VisualID *defaultVisp,
    16  		int *ndepthp, int *rootDepthp, VisualID *defaultVisp,
    16 @@ -513,6 +518,13 @@ miInitVisuals(VisualPtr *visualp, DepthP
    17 @@ -513,6 +518,13 @@ miInitVisuals(VisualPtr *visualp, DepthPtr *depthp, int *nvisualp,
    17      int		*preferredCVCs, *prefp;
    18      int		*preferredCVCs, *prefp;
    18      int		first_depth;
    19      int		first_depth;
    19  
    20  
    20 +#if defined(__sparc__) || defined(__sparc)
    21 +#if defined(__sparc__) || defined(__sparc)
    21 +    if (miInitVisualsProc) {
    22 +    if (miInitVisualsProc) {