summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorGeorge Kyriazis <[email protected]>2017-04-13 08:44:08 -0500
committerGeorge Kyriazis <[email protected]>2017-04-14 10:59:46 -0500
commit870760e02e7388455c4af4e15f9e4c7e680e4b4d (patch)
treea2aad86e12396789958e94c5ec1695278516894a /src/gallium/drivers
parente20eb91e2bfef045d6806838e6453bc6ddb2e238 (diff)
swr: add linux to scons build
Make swr compile for both linux and windows. Reviewed-by: Tim Rowley <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/swr/SConscript7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gallium/drivers/swr/SConscript b/src/gallium/drivers/swr/SConscript
index eca5dba8304..5e3784b51f4 100644
--- a/src/gallium/drivers/swr/SConscript
+++ b/src/gallium/drivers/swr/SConscript
@@ -17,11 +17,6 @@ if env['LLVM_VERSION'] < distutils.version.LooseVersion('3.9'):
env['swr'] = False
Return()
-if env['platform'] != 'windows':
- print "warning: swr scons build only supports windows: not building swr"
- env['swr'] = False
- Return()
-
env.MSVC2013Compat()
env = env.Clone()
@@ -205,7 +200,7 @@ envavx2.Append(CPPDEFINES = ['KNOB_ARCH=KNOB_ARCH_AVX2'])
if env['platform'] == 'windows':
envavx2.Append(CCFLAGS = ['/arch:AVX2'])
else:
- envavx2.Append(CCFLAGS = ['-mavx2'])
+ envavx2.Append(CCFLAGS = ['-mavx2', '-mfma', '-mbmi2', '-mf16c'])
swrAVX2 = envavx2.SharedLibrary(
target = 'swrAVX2',