mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 16:00:08 +01:00
meson: Enable SSE4.1 for MSVC
Modern MSVC always supports compiling with the SSE4.1 intrinsics with no additional command line options, but doesn't have any options for auto-vectorizing into SSE4.1. Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Reviewed-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16840>
This commit is contained in:
parent
ad0d39efed
commit
2d04206673
1 changed files with 25 additions and 23 deletions
10
meson.build
10
meson.build
|
|
@ -1260,9 +1260,13 @@ if host_machine.system() == 'windows'
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if host_machine.cpu_family().startswith('x86') and cc.get_argument_syntax() != 'msvc'
|
sse41_args = []
|
||||||
|
with_sse41 = false
|
||||||
|
if host_machine.cpu_family().startswith('x86')
|
||||||
pre_args += '-DUSE_SSE41'
|
pre_args += '-DUSE_SSE41'
|
||||||
with_sse41 = true
|
with_sse41 = true
|
||||||
|
|
||||||
|
if cc.get_id() != 'msvc'
|
||||||
sse41_args = ['-msse4.1']
|
sse41_args = ['-msse4.1']
|
||||||
|
|
||||||
if host_machine.cpu_family() == 'x86'
|
if host_machine.cpu_family() == 'x86'
|
||||||
|
|
@ -1285,9 +1289,7 @@ if host_machine.cpu_family().startswith('x86') and cc.get_argument_syntax() != '
|
||||||
sse41_args += '-mstackrealign'
|
sse41_args += '-mstackrealign'
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
else
|
endif
|
||||||
with_sse41 = false
|
|
||||||
sse41_args = []
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Check for GCC style atomics
|
# Check for GCC style atomics
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue