mesa: Wrap SSE4.1 code in #ifdef __SSE4_1__.
authorMatt Turner <mattst88@gmail.com>
Wed, 5 Mar 2014 05:11:38 +0000 (21:11 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 6 Mar 2014 23:46:54 +0000 (15:46 -0800)
Because people insist on doing things like explicitly disabling SSE 4.1.

Cc: "10.0 10.1" <mesa-stable@lists.freedesktop.org>
Tested-by: David Heidelberger <david.heidelberger@ixit.cz>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71547

src/mesa/main/streaming-load-memcpy.c

index d7147afdc5c436a8563ab366cb4e62e00d76e57a..8427149c5cbd256ef7037a54b42b70431f4a7a12 100644 (file)
@@ -26,6 +26,7 @@
  *
  */
 
+#ifdef __SSE4_1__
 #include "main/macros.h"
 #include "main/streaming-load-memcpy.h"
 #include <smmintrin.h>
@@ -83,3 +84,5 @@ _mesa_streaming_load_memcpy(void *restrict dst, void *restrict src, size_t len)
       memcpy(d, s, len);
    }
 }
+
+#endif