swr: [rasterizer core] clang override for _mm_undefined*
authorTim Rowley <timothy.o.rowley@intel.com>
Tue, 10 May 2016 00:00:26 +0000 (18:00 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Thu, 19 May 2016 21:26:49 +0000 (16:26 -0500)
Not supported in older xcode versions.

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/core/utils.h

index 1c4780a527610bf35316da651f2491182df504f5..bf53c6964eec2e35f5b0f92e597870168a178737 100644 (file)
@@ -174,7 +174,7 @@ void vTranspose(__m128i &row0, __m128i &row1, __m128i &row2, __m128i &row3)
                      + __GNUC_MINOR__ * 100 \
                      + __GNUC_PATCHLEVEL__)
 
-#if defined(__GNUC__) && (GCC_VERSION < 40900)
+#if defined(__clang__) || (defined(__GNUC__) && (GCC_VERSION < 40900))
 #define _mm_undefined_ps _mm_setzero_ps
 #define _mm_undefined_si128 _mm_setzero_si128
 #if KNOB_SIMD_WIDTH == 8