xf86-video-intel: src/sna/compiler.h
Chris Wilson
ickle at kemper.freedesktop.org
Wed Apr 6 18:00:15 UTC 2016
src/sna/compiler.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 4d220adcaddd64f86f810693c361dbb093076858
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Wed Apr 6 18:44:07 2016 +0100
sna: Mark sse2 routines as "fast"
Trying to unify all the target attributes to chase down:
blt.c: In function ‘memcpy_from_tiled_x__swizzle_0__sse2’:
blt.c:345:1: error: inlining failed in call to always_inline
‘memcpy_sse64xN’: target specific option mismatch
memcpy_sse64xN(uint8_t *dst, const uint8_t *src, int bytes)
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/sna/compiler.h b/src/sna/compiler.h
index a1634b3..0f3775e 100644
--- a/src/sna/compiler.h
+++ b/src/sna/compiler.h
@@ -59,8 +59,8 @@
#define HAS_GCC(major, minor) defined(__GNUC__) && (__GNUC__ > (major) || __GNUC__ == (major) && __GNUC_MINOR__ >= (minor))
#if HAS_GCC(4, 5)
-#define sse2 __attribute__((target("sse2,fpmath=sse")))
-#define sse4_2 __attribute__((target("sse4.2,sse2,fpmath=sse")))
+#define sse2 fast __attribute__((target("sse2,fpmath=sse")))
+#define sse4_2 fast __attribute__((target("sse4.2,sse2,fpmath=sse")))
#endif
#if HAS_GCC(4, 6) && defined(__OPTIMIZE__)
More information about the xorg-commit
mailing list