summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/streaming-load-memcpy.c
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2014-03-04 21:11:38 -0800
committerMatt Turner <mattst88@gmail.com>2014-03-06 15:46:54 -0800
commit8d3f739383fbdf671752fdec707f1c2b9b2aa6a3 (patch)
treea63ab1d39e365ede2cbf2ac66fbcdcea4227e27b /src/mesa/main/streaming-load-memcpy.c
parentc10896b593720457e99a731e9493ce8d6c497fab (diff)
downloadexternal_mesa3d-8d3f739383fbdf671752fdec707f1c2b9b2aa6a3.zip
external_mesa3d-8d3f739383fbdf671752fdec707f1c2b9b2aa6a3.tar.gz
external_mesa3d-8d3f739383fbdf671752fdec707f1c2b9b2aa6a3.tar.bz2
mesa: Wrap SSE4.1 code in #ifdef __SSE4_1__.
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
Diffstat (limited to 'src/mesa/main/streaming-load-memcpy.c')
-rw-r--r--src/mesa/main/streaming-load-memcpy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/streaming-load-memcpy.c b/src/mesa/main/streaming-load-memcpy.c
index d7147af..8427149 100644
--- a/src/mesa/main/streaming-load-memcpy.c
+++ b/src/mesa/main/streaming-load-memcpy.c
@@ -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