From: Matt Turner Date: Wed, 5 Mar 2014 05:11:38 +0000 (-0800) Subject: mesa: Wrap SSE4.1 code in #ifdef __SSE4_1__. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d3f739383fbdf671752fdec707f1c2b9b2aa6a3;p=mesa.git 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" Tested-by: David Heidelberger Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71547 --- diff --git a/src/mesa/main/streaming-load-memcpy.c b/src/mesa/main/streaming-load-memcpy.c index d7147afdc5c..8427149c5cb 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 @@ -83,3 +84,5 @@ _mesa_streaming_load_memcpy(void *restrict dst, void *restrict src, size_t len) memcpy(d, s, len); } } + +#endif