summaryrefslogtreecommitdiff
path: root/lib/mesa/src/util/u_math.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2023-11-02 04:34:57 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2023-11-02 04:34:57 +0000
commit32aeb3c41fedbbd7b11aacfec48e8f699d16bff0 (patch)
treefc5893a490729ebf6b87b83eebf5d4ebfdfccf27 /lib/mesa/src/util/u_math.c
parent286ec9d289bada8abb84753c461cfa3432866e98 (diff)
Import Mesa 23.1.9
Diffstat (limited to 'lib/mesa/src/util/u_math.c')
-rw-r--r--lib/mesa/src/util/u_math.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/mesa/src/util/u_math.c b/lib/mesa/src/util/u_math.c
index cbeb1324c..d6e37f713 100644
--- a/lib/mesa/src/util/u_math.c
+++ b/lib/mesa/src/util/u_math.c
@@ -27,11 +27,11 @@
-#include "pipe/p_config.h"
+#include "util/detect.h"
#include "util/u_math.h"
#include "util/u_cpu_detect.h"
-#if defined(PIPE_ARCH_SSE)
+#if DETECT_ARCH_SSE
#include <xmmintrin.h>
/* This is defined in pmmintrin.h, but it can only be included when -msse3 is
* used, so just define it here to avoid further. */
@@ -77,7 +77,7 @@ util_fpstate_get(void)
{
unsigned mxcsr = 0;
-#if defined(PIPE_ARCH_SSE)
+#if DETECT_ARCH_SSE
if (util_get_cpu_caps()->has_sse) {
mxcsr = _mm_getcsr();
}
@@ -95,7 +95,7 @@ util_fpstate_get(void)
unsigned
util_fpstate_set_denorms_to_zero(unsigned current_mxcsr)
{
-#if defined(PIPE_ARCH_SSE)
+#if DETECT_ARCH_SSE
if (util_get_cpu_caps()->has_sse) {
/* Enable flush to zero mode */
current_mxcsr |= _MM_FLUSH_ZERO_MASK;
@@ -117,7 +117,7 @@ util_fpstate_set_denorms_to_zero(unsigned current_mxcsr)
void
util_fpstate_set(unsigned mxcsr)
{
-#if defined(PIPE_ARCH_SSE)
+#if DETECT_ARCH_SSE
if (util_get_cpu_caps()->has_sse) {
_mm_setcsr(mxcsr);
}