[Mesa-dev] [PATCH] mesa: Wrap SSE4.1 code in #ifdef __SSE4_1__.
Matt Turner
mattst88 at gmail.com
Tue Mar 4 21:12:51 PST 2014
Because people insist on doing things like explicitly disabling SSE 4.1.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71547
---
src/mesa/main/streaming-load-memcpy.c | 3 +++
1 file changed, 3 insertions(+)
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
--
1.8.3.2
More information about the mesa-dev
mailing list