2021-01-12 08:12:01 +08:00
|
|
|
diff --git a/src/gallium/drivers/swr/meson.build b/src/gallium/drivers/swr/meson.build
|
2021-06-30 07:08:28 +08:00
|
|
|
index 11ea7d3f43e..f34e88b1eec 100644
|
2021-01-12 08:12:01 +08:00
|
|
|
--- a/src/gallium/drivers/swr/meson.build
|
|
|
|
+++ b/src/gallium/drivers/swr/meson.build
|
2021-06-30 07:08:28 +08:00
|
|
|
@@ -213,7 +213,7 @@ endif
|
2021-01-12 08:12:01 +08:00
|
|
|
|
|
|
|
if with_swr_arches.contains('skx')
|
|
|
|
swr_skx_args = cpp.first_supported_argument(
|
|
|
|
- '-march=skylake-avx512', '-target-cpu=x86-skylake', '-xCORE-AVX512',
|
|
|
|
+ '-march=skylake-avx512', '-target-cpu=x86-skylake', '-xCORE-AVX512', '/arch:AVX512',
|
|
|
|
)
|
|
|
|
if swr_skx_args == []
|
|
|
|
error('Cannot find SKX support for swr.')
|
2021-06-30 07:08:28 +08:00
|
|
|
@@ -252,7 +252,7 @@ endif
|
|
|
|
|
|
|
|
if with_swr_arches.contains('knl')
|
|
|
|
swr_knl_args = cpp.first_supported_argument(
|
|
|
|
- '-march=knl', '-target-cpu=mic-knl', '-xMIC-AVX512',
|
|
|
|
+ '-march=knl', '-target-cpu=mic-knl', '-xMIC-AVX512', '/arch:AVX512',
|
|
|
|
)
|
|
|
|
if swr_knl_args == []
|
|
|
|
error('Cannot find KNL support for swr.')
|