diff options
author | Vinson Lee <[email protected]> | 2020-02-01 01:12:32 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2020-02-05 19:39:13 -0800 |
commit | deb2bbf57ec1d0660dd85b7080bf5ebeb10e8768 (patch) | |
tree | 95ed8bfd8a72970326aea2348a29ed3924c9349a /src/gallium/drivers/swr | |
parent | 205ce0bea5e14a855a86f8b9662ba34cdd372280 (diff) |
swr: Fix GCC 4.9 checks.
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 <[email protected]>
Reviewed-by: Jan Zielinski <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/codegen/templates/gen_knobs.cpp | 2 | ||||
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/common/os.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_knobs.cpp b/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_knobs.cpp index 1ef83ad10d1..b073f73e3a0 100644 --- a/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_knobs.cpp +++ b/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_knobs.cpp @@ -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; diff --git a/src/gallium/drivers/swr/rasterizer/common/os.h b/src/gallium/drivers/swr/rasterizer/common/os.h index c4ee00bc91d..a52bc0e0db6 100644 --- a/src/gallium/drivers/swr/rasterizer/common/os.h +++ b/src/gallium/drivers/swr/rasterizer/common/os.h @@ -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 |