swr/rast: Fix build warnings when using the Intel compiler
authorTim Rowley <timothy.o.rowley@intel.com>
Thu, 29 Jun 2017 22:22:05 +0000 (17:22 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Thu, 13 Jul 2017 13:47:10 +0000 (08:47 -0500)
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/common/simdlib_types.hpp

index 1964ef47027a7a81d52e52c9371a31a4962822c4..07775e7b83f7d36f8f1c12c1a7525ad8e53aabbb 100644 (file)
@@ -293,7 +293,7 @@ namespace SIMDImpl
         using __mmask16 = uint16_t;
 #endif
 
-#if SIMD_ARCH >= SIMD_ARCH_AVX512
+#if defined(__INTEL_COMPILER) || (SIMD_ARCH >= SIMD_ARCH_AVX512)
 #define SIMD_ALIGNMENT_BYTES 64
 #else
 #define SIMD_ALIGNMENT_BYTES 32