[Mesa-dev] [PATCH 5/6] swr/rast: Fix build warnings when using the Intel compiler

Tim Rowley timothy.o.rowley at intel.com
Wed Jul 12 15:38:30 UTC 2017


---
 src/gallium/drivers/swr/rasterizer/common/simdlib_types.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/swr/rasterizer/common/simdlib_types.hpp b/src/gallium/drivers/swr/rasterizer/common/simdlib_types.hpp
index 1964ef4..07775e7 100644
--- a/src/gallium/drivers/swr/rasterizer/common/simdlib_types.hpp
+++ b/src/gallium/drivers/swr/rasterizer/common/simdlib_types.hpp
@@ -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
-- 
2.7.4



More information about the mesa-dev mailing list