Guard MMX get_fast_path() with pixman_have_mmx()
authorSøren Sandmann <sandmann@redhat.com>
Fri, 7 Dec 2007 23:59:54 +0000 (18:59 -0500)
committerSøren Sandmann <sandmann@redhat.com>
Fri, 7 Dec 2007 23:59:54 +0000 (18:59 -0500)
pixman/pixman-pict.c

index 1cb4a9e..26b4fce 100644 (file)
@@ -1718,7 +1718,9 @@ pixman_image_composite (pixman_op_t      op,
            !maskRepeat;
 
 #ifdef USE_MMX
-       info = get_fast_path (mmx_fast_paths, op, pSrc, pMask, pDst, pixbuf);
+       info = NULL;
+       if (pixman_have_mmx())
+           info = get_fast_path (mmx_fast_paths, op, pSrc, pMask, pDst, pixbuf);
        if (!info)
 #endif
            info = get_fast_path (c_fast_paths, op, pSrc, pMask, pDst, pixbuf);