i965: Compile with -msse3
authorMatt Turner <mattst88@gmail.com>
Fri, 7 Jul 2017 04:31:05 +0000 (21:31 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 14 Jul 2017 23:54:43 +0000 (16:54 -0700)
All CPUs that can be paired with a GPU supported by i965_dri.so supports
SSE3. This allows us to ensure that some vectorized version of the tiled
memcpy path is enabled on 32-bit systems.

This also ensures that __builtin_ia32_clflush is always usable.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101774
Tested-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/Makefile.am

index ecc1e766f11c3f6816e1a8c8c90bbb4ac5d2cead..9293820c217e4df75e40d27def0bef077343bb4f 100644 (file)
@@ -42,7 +42,8 @@ AM_CFLAGS = \
        $(DEFINES) \
        $(VISIBILITY_CFLAGS) \
        $(LIBDRM_CFLAGS) \
-       $(VALGRIND_CFLAGS)
+       $(VALGRIND_CFLAGS) \
+       -msse3
 
 AM_CXXFLAGS = $(AM_CFLAGS)