[Mesa-dev] [PATCH v2 14/19] swr: [rasterizer core] clang override for _mm_undefined*

Tim Rowley timothy.o.rowley at intel.com
Tue May 17 22:36:36 UTC 2016


Not supported in older xcode versions.
---
 src/gallium/drivers/swr/rasterizer/core/utils.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/swr/rasterizer/core/utils.h b/src/gallium/drivers/swr/rasterizer/core/utils.h
index 1c4780a..bf53c69 100644
--- a/src/gallium/drivers/swr/rasterizer/core/utils.h
+++ b/src/gallium/drivers/swr/rasterizer/core/utils.h
@@ -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
-- 
1.9.1



More information about the mesa-dev mailing list