Mesa (master): mesa: Wrap SSE4.1 code in #ifdef __SSE4_1__.

Matt Turner mattst88 at kemper.freedesktop.org
Thu Mar 6 23:46:52 UTC 2014


Module: Mesa
Branch: master
Commit: 8d3f739383fbdf671752fdec707f1c2b9b2aa6a3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8d3f739383fbdf671752fdec707f1c2b9b2aa6a3

Author: Matt Turner <mattst88 at gmail.com>
Date:   Tue Mar  4 21:11:38 2014 -0800

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 at lists.freedesktop.org>
Tested-by: David Heidelberger <david.heidelberger at ixit.cz>
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




More information about the mesa-commit mailing list