swr: [rasterizer] Do not define _mm256_storeu2_m128i with icc.
authorVinson Lee <vlee@freedesktop.org>
Thu, 26 May 2016 04:09:10 +0000 (21:09 -0700)
committerVinson Lee <vlee@freedesktop.org>
Sat, 28 May 2016 21:26:54 +0000 (14:26 -0700)
Fix build error with icc.

  CXX      libswrAVX_la-swr_clear.lo
icpc: command line warning #10006: ignoring unknown option '-Wdelete-non-virtual-dtor'
In file included from ./rasterizer/jitter/jit_api.h(31),
                 from swr_context.h(30),
                 from swr_clear.cpp(24):
./rasterizer/common/os.h(135): error: expected an identifier
  void _mm256_storeu2_m128i(__m128i *hi, __m128i *lo, __m256i a)
       ^

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/rasterizer/common/os.h

index b97b00517388ec0339a79ceae18a107fd6642f57..370c619eef16ca313d3c6a56fe1ac198767601f5 100644 (file)
@@ -129,7 +129,7 @@ uint64_t __rdtsc()
 }
 #endif
 
-#ifndef __clang__
+#if !defined( __clang__) && !defined(__INTEL_COMPILER)
 // Intrinsic not defined in gcc
 static INLINE
 void _mm256_storeu2_m128i(__m128i *hi, __m128i *lo, __m256i a)