Mesa (master): scons: Generate SSE2 floating-point arithmetic.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Wed Nov 26 20:31:20 UTC 2014
Module: Mesa
Branch: master
Commit: aef3a01d579214664cf2da58b0e4e1daf325a37e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=aef3a01d579214664cf2da58b0e4e1daf325a37e
Author: José Fonseca <jfonseca at vmware.com>
Date: Tue Nov 25 22:15:40 2014 +0000
scons: Generate SSE2 floating-point arithmetic.
- SSE2 is available on all x86 processors we care about.
- It's recommended by Intel:
https://software.intel.com/en-us/blogs/2012/09/26/gcc-x86-performance-hints
- And has been the default since MSVC 2012:
http://msdn.microsoft.com/en-us/library/7t5yh4fd(v=vs.110).aspx
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Roland Scheidegger <sroland at vmware.com>
---
scons/gallium.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scons/gallium.py b/scons/gallium.py
index fe800fa..8e2090b 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -390,7 +390,7 @@ def generate(env):
ccflags += [
'-mstackrealign', # ensure stack is aligned
'-msse', '-msse2', # enable SIMD intrinsics
- #'-mfpmath=sse',
+ '-mfpmath=sse', # generate SSE floating-point arithmetic
]
if platform in ['windows', 'darwin']:
# Workaround http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37216
@@ -469,7 +469,7 @@ def generate(env):
]
if env['machine'] == 'x86':
ccflags += [
- #'/arch:SSE2', # use the SSE2 instructions
+ '/arch:SSE2', # use the SSE2 instructions (default since MSVC 2012)
]
if platform == 'windows':
ccflags += [
More information about the mesa-commit
mailing list