util: fix SSE-version needed for double opcodes
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Sun, 1 Sep 2019 08:05:12 +0000 (10:05 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 2 Sep 2019 12:45:45 +0000 (12:45 +0000)
This code generates CVTSD2SI, which requires SSE2. So let's fix the
required SSE-version.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Fixes: 5de29ae (util: try to use SSE instructions with MSVC and 32-bit gcc)
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/util/rounding.h

index fd343ab929b34e4e2e745e8f91d1be6fe1e7bf4d..8e302921c9d00add8585f4649cc86daa54800e8c 100644 (file)
@@ -116,7 +116,7 @@ _mesa_lroundevenf(float x)
 static inline long
 _mesa_lroundeven(double x)
 {
-#if defined(__SSE__) || defined(_MSC_VER)
+#if defined(__SSE2__) || defined(_MSC_VER)
 #if LONG_MAX == INT64_MAX
    return _mm_cvtsd_si64(_mm_load_sd(&x));
 #elif LONG_MAX == INT32_MAX