From 0cd85e4adfdcdadf3a57016564277f704472d951 Mon Sep 17 00:00:00 2001 From: Sebastian Wick Date: Mon, 8 Jan 2024 15:52:09 +0100 Subject: [PATCH] cogl/half-float: Include SSE intrinsics The intel intrinsics (including SSE) are only included in the header if the arch is x86_64 which made the i686 build fail. Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3234 Fixes: 568506ecb ("cogl: Add half float implementation") Part-of: --- cogl/cogl/cogl-half-float.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cogl/cogl/cogl-half-float.c b/cogl/cogl/cogl-half-float.c index be2c48b81..26c3660e5 100644 --- a/cogl/cogl/cogl-half-float.c +++ b/cogl/cogl/cogl-half-float.c @@ -31,6 +31,13 @@ #include +#if defined(__SSE__) || \ + (defined(_M_IX86_FP) && (_M_IX86_FP >= 1)) || \ + (defined(_M_X64) && !defined(_M_ARM64EC)) +#include +#include +#endif + #include "cogl/cogl-half-float.h" #include "cogl/cogl-soft-float.h"