swr: Fix GCC 4.9 checks.
authorVinson Lee <vlee@freedesktop.org>
Sat, 1 Feb 2020 09:12:32 +0000 (01:12 -0800)
committerVinson Lee <vlee@freedesktop.org>
Thu, 6 Feb 2020 03:39:13 +0000 (19:39 -0800)
Fixes: f0a22956be48 ("swr/rast: _mm*_undefined_* implementations for gcc<4.9")
Fixes: e21fc2c62527 ("swr/rast: non-regex knob fallback code for gcc < 4.9")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Jan Zielinski <jan.zielinski@intel.com>
src/gallium/drivers/swr/rasterizer/codegen/templates/gen_knobs.cpp
src/gallium/drivers/swr/rasterizer/common/os.h

index 1ef83ad10d116305887f9a772907ff2e19d582df..b073f73e3a0169a378ecabd5008b28825a8391c6 100644 (file)
@@ -43,7 +43,7 @@
 //========================================================
 void KnobBase::autoExpandEnvironmentVariables(std::string& text)
 {
-#if (__GNUC__) && (GCC_VERSION < 409000)
+#if (__GNUC__) && (GCC_VERSION < 40900)
     // <regex> isn't implemented prior to gcc-4.9.0
     // unix style variable replacement
     size_t start;
index c4ee00bc91dc2580a0cc32588586133be4b428b9..a52bc0e0db60b7d61db72218766798659fe4c9dc 100644 (file)
@@ -184,7 +184,7 @@ static INLINE void _mm256_storeu2_m128i(__m128i* hi, __m128i* lo, __m256i a)
 #endif
 
 // gcc prior to 4.9 doesn't have _mm*_undefined_*
-#if (__GNUC__) && (GCC_VERSION < 409000)
+#if (__GNUC__) && (GCC_VERSION < 40900)
 #define _mm_undefined_si128 _mm_setzero_si128
 #define _mm256_undefined_ps _mm256_setzero_ps
 #endif