summaryrefslogtreecommitdiff
path: root/meson_options.txt
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2021-03-26 16:25:01 -0700
committerMarge Bot <eric+marge@anholt.net>2021-05-13 06:06:42 +0000
commit855ffa7c465205ec02558c7d2cbea8f04ea60112 (patch)
treee29ffc6c627dc10f220f297b3403c87f4f435495 /meson_options.txt
parent57721591dec9cd2a58cf6210ba11e99dfe6f0a66 (diff)
Default enable SSE2 on mesa builds.
With the idea of branching classic device support in to its own tree now would be a good time to also raise the minimum requirements to something that is more "modern" on x86. SSE2 was introduced in 2000(!) by default let's make it the minimum spec now All the old hardware that is moving to the maintenance branch will finally be out of the way. For the 64-bit side of the discussion there isn't much changed. * GCC already enables -msse and -msse2 by default * Same with clang * fpmath=sse might remove some extraneous x87 usage ** Clang implies fpmath=sse ALWAYS For the 32-bit side of things is where the exciting details change * GCC by default doesn't enable sse1 or sse2 ** Does all `float`, `double`, and `long double` math with x87 ** -msse2 enables sse2 and sse1, gcc still uses x87 even with those enabled ** -mfpmath=sse moves away from using x87 and instead uses sse1 and sse2 * Clang already default enables sse1/sse2 which then turns on their implied fpmath=sse What does this mean for users? On Linux raises the default minimum processor spec to SSE2 supporting CPUs * Intel requirements raise from P5 (1993) to Netburst (2000) * AMD requirements raise from Athlon(1999/2000) to Athlon 64 (2003) * Via requirements raise from C3(2001) to C7 (2005) What does it mean for package maintainers? For x86-64 distributions that have i386/i686 multilib, then nothing changes. You're already on a platform guaranteed to support SSE2. For i386/i686 distributions they will need to weigh their min spec against this. Not sure how many still support classic processors. Who is left out in the cold? * Intel Quark (2013) ** Embedded board, doesn't have a GPU, Technically has 1x PCIe 2.0 lane that someone could plug a GPU in to * Some older transmeta CPUs, but they had a followup that also had SSE2. ** Anyone hacking on these with a modern GPU? I'm guessing they know how to turn this option off Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9868>
Diffstat (limited to 'meson_options.txt')
-rw-r--r--meson_options.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson_options.txt b/meson_options.txt
index 37e5015d748..b5e51de5a14 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -463,7 +463,7 @@ option(
'sse2',
type : 'boolean',
value : true,
- description : 'use msse2 flag for mingw x86. Default: true',
+ description : 'use msse2 flag for x86. Uses sse/sse2 instead of x87. Default: true',
)
option(
'perfetto',