Mesa (master): swr/rast: Fix build warnings when using the Intel compiler

Tim Rowley torowley at kemper.freedesktop.org
Thu Jul 13 13:51:03 UTC 2017


Module: Mesa
Branch: master
Commit: 4c185dd3b3348912a8809c1f13f713763263e505
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4c185dd3b3348912a8809c1f13f713763263e505

Author: Tim Rowley <timothy.o.rowley at intel.com>
Date:   Thu Jun 29 17:22:05 2017 -0500

swr/rast: Fix build warnings when using the Intel compiler

Reviewed-by: Bruce Cherniak <bruce.cherniak at intel.com>

---

 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 1964ef4702..07775e7b83 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




More information about the mesa-commit mailing list