summaryrefslogtreecommitdiff
path: root/src/util/half_float.h
diff options
context:
space:
mode:
authorKonstantin Seurer <konstantin.seurer@gmail.com>2023-06-27 13:24:08 +0200
committerMarge Bot <emma+marge@anholt.net>2023-06-28 18:56:20 +0000
commitc9a5cac4ffa441b46000c8be0ae1b5b1819da9c9 (patch)
tree6a71f15353e90c0ad77c4f93a927d35f5b094237 /src/util/half_float.h
parent189c7d6ff1581889c729b296ce769a21debb6b0b (diff)
util: Do not include immintrin.h in half_float.h
The files included are extremely large and hurt compile time of everything that inludes half_float.h directly or indirectly. Compile time of a fresh RADV build: before 32.477s 32.661s 32.625s after 25.116s 24.928s 25.114s v2: Include xmmintrin instead (Marek Olšák) after 25.552s 25.811s 25.678s Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23871>
Diffstat (limited to 'src/util/half_float.h')
-rw-r--r--src/util/half_float.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/half_float.h b/src/util/half_float.h
index eac6aafc945..779cf08bccd 100644
--- a/src/util/half_float.h
+++ b/src/util/half_float.h
@@ -32,7 +32,7 @@
#include "util/u_cpu_detect.h"
#if defined(USE_X86_64_ASM)
-#include <immintrin.h>
+#include <xmmintrin.h>
#endif
#ifdef __cplusplus